WidgetFactory<TModel>.Switch() Method
Creates a Switch control.
Namespace: DevExtreme.AspNet.Mvc.Factories
Assembly: DevExtreme.AspNet.Core.dll
Declaration
public SwitchBuilder Switch()
Returns
Type | Description |
---|---|
SwitchBuilder | An instance of SwitchBuilder. |
Remarks
This method creates a SwitchBuilder class instance whose members can be used to specify Switch options.
@(Html.DevExtreme().Switch() // create a Switch
// call methods to specify control options
)
See Also