Type Alias: ToggleProps
ToggleProps =
object
Defined in: jsx.ts:328
Props for the Toggle virtual element.
Used to declaratively add toggles to an AdwToggleGroup.
Example
<AdwToggleGroup>
<x.Toggle id="view-list" iconName="view-list-symbolic" />
<x.Toggle id="view-grid" iconName="view-grid-symbolic" />
<x.Toggle id="view-flow" label="Flow" />
</AdwToggleGroup>
Properties
enabled?
optionalenabled:boolean
Defined in: jsx.ts:338
Whether the toggle is enabled
iconName?
optionaliconName:string|null
Defined in: jsx.ts:334
Icon name to display
id?
optionalid:string|null
Defined in: jsx.ts:330
Optional identifier for accessing toggle by id instead of index
label?
optionallabel:string|null
Defined in: jsx.ts:332
Label text to display
tooltip?
optionaltooltip:string
Defined in: jsx.ts:336
Tooltip text (supports Pango markup)
useUnderline?
optionaluseUnderline:boolean
Defined in: jsx.ts:340
Whether underline in label indicates mnemonic