Description
The BcInputText component is a customizable text input field with optional features like password masking, copy to clipboard, and focus control.
Parameters
PlaceHolder
string?
The placeholder text displayed inside the input field.
Password
bool
Determines whether the input field should be treated as a password field.
ShowPencil
bool
Indicates whether a pencil icon should be displayed for focus setting.
ShowCopy
bool
Indicates whether a copy icon should be displayed to copy the text.
ActionBefore
RenderFragment?
A render fragment to insert content before the input field.
ActionAfter
RenderFragment?
A render fragment to insert content after the input field.
InputClass
string?
Additional CSS classes to apply to the input element.
Methods
Copies the current text value to the clipboard.
Sets focus on the input field.
Toggles between showing and hiding the password field.
Settings
Password
Set the inputs to type 'password'
Disabled
Set the inputs to 'disabled'
Read Only
Set the inputs to 'readonly'
ShowCopyToClipboard
Enables the copy text to Clipboard button'
ShowPencil
Enables the Pen button to set focus to the input'
Default
The default StylesColorFormatingState
Success
The success StylesColorFormatingState
Warning
The warning StylesColorFormatingState
Error
The error StylesColorFormatingState