TemplateNodeType Enumeration |
Type of Template Node as used in
NodeType.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public enum TemplateNodeType
Public Enumeration TemplateNodeType
Members
| Member name | Value | Description |
---|
| Text | 1 | Content is literal text, no field references found. |
| Caption | 2 | Content is a Field Caption. This indicates that the Caption prefix was found. |
| DisplayText | 3 | Content is a Field's DisplayText. This indicates that no TemplateNodeMarker prefix was found. |
| RawValue | 4 | Content is a Field's raw value. This indicates that the RawValue prefix was found. |
| ImmediateEdit | 5 |
Content is a Field's value when readonly, and HTML for performing an Immediate Edit, where supported.
This indicates that the ImmediateEdit prefix was found.
|
| NavLink | 6 |
Content is the field's navigation link, active only when the navigation is supported (e.g. per target page permissions).
This indicates that the NavLink prefix was found.
|
| Template | 7 |
Content is the expanded content of the referenced template.
This indicates that the Template prefix was found.
A template node may optionally include a set of name/value pairs used in expanding the inner template.
Any name/value pairs provided will override the corresponding of name/value pairs provided to the outer template.
The syntax for a template reference is %<template-name>[:name1=value1;name2=value2...] (wrapped in
an outer [[]] or {{}}). A colon is used to separate the optional name/value list, a semi-color separates each
name/value pair, and an equals sign separates each name from its value.
|
| Numeric | 8 |
Content is a Field's raw value or "0" if the raw value is null or a blank string.
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.
This indicates that the Numeric prefix was found.
|
| HasValue | 9 |
Content is "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).
This indicates that the HasValue prefix was found.
|
See Also