DVUI

BoolFieldOptions

Options for displaying a text field.

Fields

#
display:FieldOptions.DisplayMode
FieldOptions.DisplayMode
label:?[]const u8
?[]const u8
customDisplayFn:?*const fn ([]const u8, *anyopaque, bool, *dvui.Alignment) void
?*const fn ([]const u8, *anyopaque, bool, *dvui.Alignment) void
default_expanded:?bool
?bool
widget_type:union(enum) { // true/false/null dropdown. dropdown: void, // keep displaying true until manually reset (for read-only values) manual_reset: void, // show true then fade to false (for read-only value) trigger_on: bool, // show as checkbox checkbox: void, }
union(enum) { // true/false/null dropdown. dropdown: void, // keep displaying true until manually reset (for read-only values) manual_reset: void, // show true then fade to false (for read-only value) trigger_on: bool, // show as checkbox checkbox: void, }