Skip to content

@jimka/typescript-ui / layout / AccordionConstraints

Class: AccordionConstraints

Defined in: src/typescript/lib/layout/AccordionConstraints.ts:11

Layout constraints for child components added to an Accordion container. Provides the header label and initial open state for each collapsible section.

Extends

Constructors

new AccordionConstraints()

ts
new AccordionConstraints(label: string, initiallyOpen?: boolean): AccordionConstraints

Defined in: src/typescript/lib/layout/AccordionConstraints.ts:23

Parameters

label

string

Text displayed in the section header.

initiallyOpen?

boolean

Whether the section starts expanded. Defaults to false.

Returns

AccordionConstraints

Overrides

LayoutConstraints.constructor

Properties

anchor?

ts
optional anchor: null | AnchorType = null;

Defined in: src/typescript/lib/layout/LayoutConstraints.ts:17

Inherited from

LayoutConstraints.anchor


closeable?

ts
optional closeable: boolean;

Defined in: src/typescript/lib/layout/LayoutConstraints.ts:21

Inherited from

LayoutConstraints.closeable


data?

ts
optional data: any;

Defined in: src/typescript/lib/layout/LayoutConstraints.ts:20

Inherited from

LayoutConstraints.data


description?

ts
optional description: null | string = null;

Defined in: src/typescript/lib/layout/LayoutConstraints.ts:15

Inherited from

LayoutConstraints.description


fill?

ts
optional fill: null | FillType = null;

Defined in: src/typescript/lib/layout/LayoutConstraints.ts:16

Inherited from

LayoutConstraints.fill


ignoreParentInsets?

ts
optional ignoreParentInsets: boolean = false;

Defined in: src/typescript/lib/layout/LayoutConstraints.ts:19

Inherited from

LayoutConstraints.ignoreParentInsets


initiallyOpen?

ts
optional initiallyOpen: boolean;

Defined in: src/typescript/lib/layout/AccordionConstraints.ts:17

Whether the section starts expanded. Defaults to false if omitted.


label

ts
label: string;

Defined in: src/typescript/lib/layout/AccordionConstraints.ts:14

Text displayed in the section's header button.


name?

ts
optional name: null | string = null;

Defined in: src/typescript/lib/layout/LayoutConstraints.ts:14

Inherited from

LayoutConstraints.name


placement?

ts
optional placement: Placement;

Defined in: src/typescript/lib/layout/LayoutConstraints.ts:18

Inherited from

LayoutConstraints.placement


weight?

ts
optional weight: number;

Defined in: src/typescript/lib/layout/LayoutConstraints.ts:22

Inherited from

LayoutConstraints.weight