Enables rendering of integer configuration properties
Supported Data Types
int
Scripted Extension Configuration XML
<property id="propertyId" labelResourceName="nameResource" descriptionResourceName="descriptionResource" dataType="int" template="int" presentationDivisor="1" inputType="number" min="" max="" step="" rangeTicks="0" rangeLabel="True" />
Plugin Configuration C#
var property = new Property
{
Id = "propertyId",
LabelResourceName = "nameResource",
DescriptionResourceName = "descriptionResource",
DataType = "int",
Template = "int",
Options = new NameValueCollection
{
{ "presentationDivisor", "1" },
{ "inputType", "number" },
{ "min", "" },
{ "max", "" },
{ "step", "" },
{ "rangeTicks", "0" },
{ "rangeLabel", "True" }
}
};Options
| Name | Description | Default | Options |
|---|---|---|---|
| presentationDivisor | The actual value will be divided by this amount for viewing and editing. | 1 | |
| inputType | Input type | number | number, range |
| min | Minimum value accepted | ||
| max | Maximum value accepted | ||
| step | A stepping interval to use when using up and down arrows or range slider | ||
| rangeTicks | When using a range, the number of ticks to render | 0 | |
| rangeLabel | When using a range, whether or not to include a label indicating the current value | True |