Basic #
This is the most basic usage of RegatePrice.
Regate.RegatePrice.init({
id: 'basic-example',
name: 'Price',
})@Html.Raw(RegatePrice.Build("Price"))Value #
With value property you can set an initial value for your textbox.
Regate.RegatePrice.init({
id: 'value-example',
name: 'Price',
value: 1234567890,
})@Html.Raw(RegatePrice.Build("Price", 1234567890))Required #
You can required your field with isRequired property.
Regate.RegatePrice.init({
id: 'required-example',
name: 'Price',
isRequired: true,
})@Html.Raw(RegatePrice.Build("Price", isRequired: true))