Difference between revisions of "ResourceTemplatePropertyNumber"
Nguyenduyan (talk | contribs) |
Nguyenduyan (talk | contribs) |
||
Line 19: | Line 19: | ||
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=TypeInformation|HasGetter=1|Description=Get information about this class.}} | {{CGscriptProperties_Template|ReturnType=TypeInformation|Name=TypeInformation|HasGetter=1|Description=Get information about this class.}} | ||
}} | }} | ||
+ | |||
=== <span style="color:#DF8621">'''Examples'''</span> === | === <span style="color:#DF8621">'''Examples'''</span> === | ||
<source lang="javascript"> | <source lang="javascript"> | ||
+ | |||
+ | </source> | ||
+ | <br><source lang="javascript"> | ||
</source> | </source> |
Revision as of 06:20, 16 November 2016
ResourceTemplatePropertyNumber
A numeric property on a resource template
Constructors
- (string label "Set label", bool required "Set required", string description "Set description", ResourceTemplate resourceTemplate "ResourceTemplate property gets added to") - Create new numeric property
Methods
Properties
- string Description { get; set; } - Get/set Description
- bool IsDecimal { get; set; } - Get/set IsDecimal
- string Label { get; set; } - Get/set Label
- number MaxValue { get; set; } - Get/set MaxValue, -1 if unset
- number MinValue { get; set; } - Get/set MinValue, -1 if unset
- string ObjectTypeName { get; } - The name of the type of object.
- bool Required { get; set; } - Get/set Required
- TypeInformation TypeInformation { get; } - Get information about this class.