Enables rendering of selectable configuration properties
Supported Data Types
string, int, double, url, html, guid, date, datetime, time, custom, unit, color, urllist
Scripted Extension Configuration XML
<property id="propertyId" labelResourceName="nameResource" descriptionResourceName="descriptionResource" dataType="string" template="select" renderValueLabelAsHtml="false" showHtmlWhenSelected="false" labelWidth="200" labelTemplate="" propertiesToShow="" propertiesToHide="" labelTemplate="" />
Plugin Configuration C#
var property = new Property { Id = "propertyId", LabelResourceName = "nameResource", DescriptionResourceName = "descriptionResource", DataType = "string", Template = "select", Options = new NameValueCollection { { "renderValueLabelAsHtml", "false" }, { "showHtmlWhenSelected", "false" }, { "labelWidth", "200" }, { "labelTemplate", "" }, { "propertiesToShow", "" }, { "propertiesToHide", "" }, { "labelTemplate", "" } } };
Options
Name | Description | Default | Options |
---|---|---|---|
renderValueLabelAsHtml | When true, renders the label as HTML instead of text. | false | true, false |
showHtmlWhenSelected | When true, renders the HTML when showing the selected value. | false | true, false |
labelWidth | When specified, sets the width of labels rendered as HTML | 200 | |
labelTemplate | When specified, labels are rendered into this template by replacing the {label} token. | ||
propertiesToShow | Comma-separated list of property IDs to show when this value is selected. | ||
propertiesToHide | Comma-separated list of property IDs to hide when this value is selected. | ||
labelTemplate | When specified, this value's label is rendered into this template by replacing the {label} token. |