BcInputNumber
Description
The BcInputNumber component is a numeric input field that supports optional features like copy-to-clipboard, increment and decrement buttons, and range restrictions.
Parameters
PlaceHolder
string?
The placeholder text displayed inside the input field.
ActionBefore
RenderFragment?
A render fragment to insert content before the input field.
ActionAfter
RenderFragment?
A render fragment to insert content after the input field.
ContainerClass
string?
Additional CSS classes for the container element.
Step
T
The step value to increment or decrement the number.
Min
T?
The minimum allowable value for the input.
Max
T?
The maximum allowable value for the input.
ShowCopy
bool
Indicates whether a copy icon should be displayed to copy the value.
ShowSpinButtons
bool
Indicates whether increment and decrement buttons should be displayed.
Methods
Increases the input value by the step amount, ensuring it does not exceed the maximum limit.
Decreases the input value by the step amount, ensuring it does not go below the minimum limit.
Copies the current input value to the clipboard.
Settings
Disabled
Set the inputs to 'disabled'
Read Only
Set the inputs to 'readonly'
Show Spin Buttons
Set the inputs to the Spin Buttons
ShowCopyToClipboard
Enables the copy text to Clipboard button'
Default
The default StylesColorFormatingState
Success
The success StylesColorFormatingState
Warning
The warning StylesColorFormatingState
Error
The error StylesColorFormatingState