ActionSet class
Displays a set of actions.
- Extends
-
Element
Constructors
Action |
Inherited Properties
fallback | Describes what to do when an unknown item is encountered or the requires of this or any children can't be met. |
grid. |
the area of a |
height | Specifies the height of the element. |
horizontal |
controls how the element should be horizontally aligned. |
id | A unique identifier associated with the item |
is |
If false, this item will be removed from the visual tree. |
lang | The locale associated with the element. |
requires | A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered. |
separator | When |
spacing | Controls the amount of spacing between this element and the preceding element. |
target |
Controls for which card width the element should be displayed. If targetWidth isn't specified, the element is rendered at all card widths. Using targetWidth makes it possible to author responsive cards that adapt their layout to the available horizontal space. |
Inherited Methods
Constructor Details
ActionSet(Action[])
Property Details
actions
type
type: "ActionSet"
Property Value
"ActionSet"
Inherited Property Details
fallback
Describes what to do when an unknown item is encountered or the requires of this or any children can't be met.
fallback?: Element$1 | "drop" | Omit<string, "drop">
Property Value
Element | "drop" | Omit<string, "drop">
Inherited From Element.fallback
grid.area
the area of a Layout.AreaGrid
layout in which an element should be displayed.
grid.area?: string
Property Value
string
Inherited From Element.grid.area
height
Specifies the height of the element.
height?: "auto" | "stretch" | Omit<string | number, "auto" | "stretch">
Property Value
"auto" | "stretch" | Omit<string | number, "auto" | "stretch">
Inherited From Element.height
horizontalAlignment
controls how the element should be horizontally aligned.
horizontalAlignment?: null | HorizontalAlignment
Property Value
null | HorizontalAlignment
Inherited From Element.horizontalAlignment
id
A unique identifier associated with the item
id?: string
Property Value
string
Inherited From Element.id
isVisible
If false, this item will be removed from the visual tree.
isVisible?: boolean
Property Value
boolean
Inherited From Element.isVisible
lang
The locale associated with the element.
lang?: string
Property Value
string
Inherited From Element.lang
requires
A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.
requires?: Record<string, string>
Property Value
Record<string, string>
Inherited From Element.requires
separator
When true
, draw a separating line at the top of the element.
separator?: boolean
Property Value
boolean
Inherited From Element.separator
spacing
Controls the amount of spacing between this element and the preceding element.
spacing?: Spacing
Property Value
Inherited From Element.spacing
targetWidth
Controls for which card width the element should be displayed. If targetWidth isn't specified, the element is rendered at all card widths. Using targetWidth makes it possible to author responsive cards that adapt their layout to the available horizontal space.
targetWidth?: TargetWidth
Property Value
Inherited From Element.targetWidth
Method Details
addActions(Action[])
withOptions(ActionSetOptions)
Inherited Method Details
withFallback(Element$1 | "drop" | Omit<string, "drop">)
withGridArea(string)
function withGridArea(value: string)
Parameters
- value
-
string
Inherited From Element.withGridArea
withHeight("auto" | "stretch" | Omit<string | number, "auto" | "stretch">)
function withHeight(value: "auto" | "stretch" | Omit<string | number, "auto" | "stretch">): ActionSet
Parameters
- value
-
"auto" | "stretch" | Omit<string | number, "auto" | "stretch">
Returns
Inherited From Element.withHeight
withHorizontalAlignment(HorizontalAlignment)
function withHorizontalAlignment(value: HorizontalAlignment): ActionSet
Parameters
- value
- HorizontalAlignment
Returns
Inherited From Element.withHorizontalAlignment
withId(string)
function withId(value: string): ActionSet
Parameters
- value
-
string
Returns
Inherited From Element.withId
withIsVisible(boolean)
function withIsVisible(value: boolean): ActionSet
Parameters
- value
-
boolean
Returns
Inherited From Element.withIsVisible
withLang(string)
function withLang(value: string): ActionSet
Parameters
- value
-
string
Returns
Inherited From Element.withLang
withRequire(string, string)
function withRequire(key: string, value: string): ActionSet
Parameters
- key
-
string
- value
-
string
Returns
Inherited From Element.withRequire
withRequires(Record<string, string>)
function withRequires(value: Record<string, string>): ActionSet
Parameters
- value
-
Record<string, string>
Returns
Inherited From Element.withRequires
withSeperator(boolean)
function withSeperator(value: boolean): ActionSet
Parameters
- value
-
boolean
Returns
Inherited From Element.withSeperator
withSpacing(Spacing)
withTargetWidth(TargetWidth)
function withTargetWidth(value: TargetWidth): ActionSet
Parameters
- value
- TargetWidth
Returns
Inherited From Element.withTargetWidth