Indicates that this property is a number and should be rendered as a number editor in the back office.

[AttributeUsage]
public sealed class NumberEditorAttribute: IContentPropertyAttribute
Inheritance:
ObjectAttributeNumberEditorAttribute
Implements:
IContentPropertyAttribute

Constructors

NumberEditorAttribute()

Properties

Decimals Sets the maximum number of decimal places for non-integer types accepted for the input.
Width Sets the width of the editor in pixels. Use the WidthAttribute instead to set width by CSS string. Default width is 100%.
Prefix Specifies an optional prefix that will be displayed to the left of the input.
Suffix Specifies an optional suffix that will be displayed to the right of the input.
Align Specifies the horizontal alignment for the input field. Default for numeric editors is align right.

Methods

Apply(ContentPropertyDefinition)