- Home
- /
- Design
- /
- DMBFormBuilder
- /
- Color inputs
Color Input Fields
InputSpecialFieldBuilderExtensions documentationColorFieldBuilderFor configures TextFieldBuilder as a browser-native color selector with the same presentation and disabled-state behavior as other fields.
Code Examples
ColorInputFields.cshtml
@Html.ColorFieldBuilderFor(m => m.Color).Render()
@Html.ColorFieldBuilderFor(m => m.FloatingColor).SetLabelPresentation(FormLabelPresentation.Floating).Render()
@Html.ColorFieldBuilderFor(m => m.InlineColor).SetLabelPresentation(FormLabelPresentation.Inline).Render()
@Html.ColorFieldBuilderFor(m => m.GroupColor).SetLabelPresentation(FormLabelPresentation.Group).SetGroupIcon("bi bi-palette").Render()
@Html.ColorFieldBuilderFor(m => m.HiddenColor).SetLabelPresentation(FormLabelPresentation.Hidden).Render()
@Html.ColorFieldBuilderFor(m => m.DisabledColor).SetDisabled().Render()
Session Consent : Consent to use session for this website