Marker Fields |
The TemplateNodeMarker type exposes the following members.
Name | Description | |
---|---|---|
Caption |
An ampersand ("&") marker prefix indicates that the marker should be substituted with the IField caption
(see TemplateNodeType.Caption).
| |
HasValue |
An equals-sign ("=") marker prefix indicates that the marker should be substituted with "1" or "" (empty string)
depending on whether or not the field's DisplayText has a non-null/non-blank value.
This marker is appropriate for use in show-if and show-if-eval expressions such as data-showif="{{=desc_html}}"
where the related content would be shown if, and only if, the desc_html field had some non-null/non-blank value. Similarly, a
data-showif-eval="!'{{=desc_html}}'" can be used to show related content if, and only if, the desc_html IS null/blank.
Note the use of ticks in the show-if-eval case since the negative case results in an empty string meaning that the expression will
resolve to either '1' (when true), or '' (when false).
| |
ImmediateEdit |
A plus sign ("+") marker prefix indicates that the marker should be substituted with the IField ImmediateEdit HTML
(see TemplateNodeType.ImmediateEdit).
| |
NavLink |
A slash ("/") marker prefix indicates that the marker should be substituted with the IField NavLink HTML
(see TemplateNodeType.NavLink).
| |
Numeric |
A number-sign/pound/hash ("#") marker prefix indicates that the marker should be substituted with the IField raw value
(see TemplateNodeType.RawValue) unless that value is null or blank in which case zero "0" should be used.
This marker is appropriate for use in show-if-eval expressions such as "{{#is_disabled}}==0" where a null value for is_disabled would
evaluate to "==0" with the "*" marker, but "0==0" with the "#" marker.
| |
RawValue |
An asterisk ("*") marker prefix indicates that the marker should be substituted with the IField raw value
(see TemplateNodeType.RawValue).
| |
Template |
A percent ("%") marker prefix indicates that marker identifies an inner template that should be expanded and that expanded content used to replace the marker.
(see TemplateNodeType.Template). This usage differs from most other markers where the marker identifies a mapper field.
Note that at this time only one level of template nesting is supported.
|