BCheck
BCheck gestisce un valore booleano con binding Blazor. Può essere mostrato come checkbox o come switch.
Parametri principali
Value,ValueChanged,ValueExpression.SwitchStyle: abilita lo stile switch.SwitchStyleAutoSize: adatta automaticamente lo switch.AriaLabel,Width,Height.CtlNextFocus: controllo a cui spostare il focus.
Esempio
<BCheck Id="chkAttivo"
AriaLabel="Stato attivo"
SwitchStyle="true"
@bind-Value="modello.Attivo" />
Altri casi: BCheck.Examples.md.
<!-- BEGIN GENERATED API -->
Riferimento API completo
Identità
Namespace:
B.BWeb.BControlsAssembly:
BFrameworkWebControlsTipo:
classClasse base:
BBaseJSControlInterfacce:
IAsyncDisposable,IComponent,IHandleAfterRender,IHandleEventSorgente API: versione
5.0.1
Dichiarazione
public class BCheck : BBaseJSControl, IComponent, IHandleEvent, IHandleAfterRender, IAsyncDisposable
Costruttori
BCheck()
Campi pubblici
Nessun campo pubblico dichiarato.
Proprietà
| Proprietà | Tipo | Accesso |
|---|---|---|
AriaLabel |
string |
get/set |
CssClassCheck |
string |
get/set |
CssClassContainerCheck |
string |
get/set |
CssClassContainerSwitch |
string |
get/set |
CssClassSlider |
string |
get/set |
CssClassSliderRound |
string |
get/set |
CtlNextFocus |
string |
get/set |
Height |
string |
get/set |
StyleInputCheck |
string |
get/set |
SwitchStyle |
bool |
get/set |
SwitchStyleAutoSize |
bool |
get/set |
Value |
bool |
get/set |
ValueChanged |
EventCallback<bool> |
get/set |
ValueExpression |
Expression<Func<bool>> |
get/set |
Width |
string |
get/set |
Callback Blazor
ValueChanged:EventCallback<bool>
Eventi CLR
Nessun evento CLR pubblico dichiarato.
Metodi
Task SetCtlNextFocus(string ctlId)Task SetFocus()Task SetSwitchStyle(bool AsSwitch)
Tipi annidati pubblici
Nessun tipo annidato pubblico.
Membri B-Arts ereditati
Proprietà da
BBaseControl:string ClientId { get; }Proprietà da
BBaseControl:string CssClass { get; set; }Proprietà da
BBaseControl:bool Disabled { get; set; }Proprietà da
BBaseControl:EventCallback<bool> DisabledChanged { get; set; }Proprietà da
BBaseControl:string Id { get; set; }Proprietà da
BBaseControl:string Style { get; set; }Proprietà da
BBaseControl:int TabIndex { get; set; }Proprietà da
BBaseControl:bool Visible { get; set; }Proprietà da
BBaseControl:EventCallback<bool> VisibleChanged { get; set; }Metodo da
BBaseControl:Task SetDisabled(bool disabled)Metodo da
BBaseControl:Task SetVisible(bool visible)Metodo da
BBaseJSControl:void BJSControlIsInitialized()Metodo da
BBaseJSControl:ValueTask DisposeAsync()
