Templates
Features
Feature 1
Default Value
General
Copy
"appearance: {
...
"templates": {
"loading": "<div role=\"progressbar\" aria-valuemin=\"0\" aria-valuemax=\"100\" class=\"progress-circle progress-indeterminate progress-lg\"></div>" "actorError": "<div class=\"pad-responsive alert dls-red\" role=\"alert\"><span class=\"icon dls-icon-warning-filled margin-1-r\"></span><span>$message;</span></div><hr/>" "uploading": "<div role=\"progressbar\" aria-valuemin=\"0\" aria-valuemax=\"100\" aria-valuenow=\"$progress;\" class=\"progress-bar\"><div class=\"progress-track count-width\"></div></div>"
}
}
$message;
and $progress;
are the placeholder.
Available template keys are loading
, actorError
, recordError
, uploadActorError
, uploadRecordError
, and uploading.
Status
Release Available | Status | Framework Name |
---|---|---|
3.2 | Current | TBC |
View Template
Default Value
General
- Both read-only queue view and read-only card view support view template.
"appearance": { "templates": { "record": "<div class=\"name heading-1\">$this.attr(Name);</div><div class=\"revenure\">$this.attr(AnnualRevenue, currency);</div><div class=\"date\">expires on $this.attr(SLAExpirationDate__c, date, 'MM/DD/Y');</div>" }, … }
Status
Release Available | Status | Framework Name |
---|---|---|
3.3 | Current | TBC |
View Template with Conditions
Default Value
General
- Record template supports conditions
"appearance": { "templates": { "record": [{ "template": "<div class=\"flex flex-justify-between\"><span>$this.attr(Name);</span><span>$this.attr(BodyLength, number, ' |KB|');</span></div>", "condition": "$this.attr(BodyLength); < 1000000" }, { "template": "<div><div class=\"flex flex-justify-between\"><span>$this.attr(Name);</span><span>$this.attr(BodyLength, number, ' |KB|');</span></div><div><span class=\"dls-color-warning\">This document is missing some information.</span></div></div>", "condition": "$this.attr(BodyLength); >= 1000000" }] }}
Status
Release Available | Status | Framework Name |
---|---|---|
3.3 | Current | TBC |