Table of Contents

Class Number

Namespace
Dynamicweb.CoreUI.Editors.Inputs
Assembly
Dynamicweb.CoreUI.dll

Represents a number input editor

public class Number : InputBaseWithMinAndMax<double?>
Inheritance
Number
Derived
Inherited Members
Extension Methods

Properties

ShowResetButton

public bool ShowResetButton { get; set; }

Property Value

bool

Step

public double? Step { get; set; }

Property Value

double?

Methods

ValueAsGlobalString()

public string ValueAsGlobalString()

Returns

string

ValueInheritedAsGlobalString()

Formats ValueInherited for the value-inherited attribute, shared by Editors.Inputs.Number.cshtml and Editors.Inputs.ValueConversion.cshtml so the two can't drift apart - the client's Helpers.EnableResetEditorUpdate compares this string against the editor's live value as plain text, so any difference in how the same number formats here silently re-breaks the Restore button. Uses plain invariant-culture ToString(), not a fixed decimal-place format: the latter ("0.##########") rounds to 10 decimal places rather than 10 significant digits - it mismatches the client's toPrecision(10) rounding once the integer part has more than a couple of digits, and collapses small magnitudes like 2e-11 to the literal string "0", discarding the value entirely.

public string? ValueInheritedAsGlobalString()

Returns

string
To top