Share via


ActionSet class

Displays a set of actions.

Extends

Element

Constructors

ActionSet(Action[])

Properties

actions

The array of Action elements to show.

type

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.area

the area of a Layout.AreaGrid layout in which an element should be displayed.

height

Specifies the height of the element.

horizontalAlignment

controls how the element should be horizontally aligned.

id

A unique identifier associated with the item

isVisible

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 true, draw a separating line at the top of the element.

spacing

Controls the amount of spacing between this element and the preceding element.

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.

Methods

addActions(Action[])
withOptions(ActionSetOptions)

Inherited Methods

withFallback(Element$1 | "drop" | Omit<string, "drop">)
withGridArea(string)
withHeight("auto" | "stretch" | Omit<string | number, "auto" | "stretch">)
withHorizontalAlignment(HorizontalAlignment)
withId(string)
withIsVisible(boolean)
withLang(string)
withRequire(string, string)
withRequires(Record<string, string>)
withSeperator(boolean)
withSpacing(Spacing)
withTargetWidth(TargetWidth)

Constructor Details

ActionSet(Action[])

new ActionSet(actions: Action[])

Parameters

actions

Action[]

Property Details

actions

The array of Action elements to show.

actions: Action[]

Property Value

Action[]

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

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[])

function addActions(value: Action[]): ActionSet

Parameters

value

Action[]

Returns

withOptions(ActionSetOptions)

function withOptions(value: ActionSetOptions): ActionSet

Parameters

Returns

Inherited Method Details

withFallback(Element$1 | "drop" | Omit<string, "drop">)

function withFallback(value: Element$1 | "drop" | Omit<string, "drop">): ActionSet

Parameters

value

Element | "drop" | Omit<string, "drop">

Returns

Inherited From Element.withFallback

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

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)

function withSpacing(value: Spacing): ActionSet

Parameters

value
Spacing

Returns

Inherited From Element.withSpacing

withTargetWidth(TargetWidth)

function withTargetWidth(value: TargetWidth): ActionSet

Parameters

value
TargetWidth

Returns

Inherited From Element.withTargetWidth