Skip to main content

Interface: AutoSizeOptions

Defined in: host/components/IMyopComponent.ts:29

Options for observeAutoSize method

Properties

explicitHeight?

optional explicitHeight: string | number

Defined in: host/components/IMyopComponent.ts:43

Explicit height set by host - if defined, don't auto-size height


explicitWidth?

optional explicitWidth: string | number

Defined in: host/components/IMyopComponent.ts:41

Explicit width set by host - if defined, don't auto-size width


forceAutoSize?

optional forceAutoSize: boolean

Defined in: host/components/IMyopComponent.ts:45

Force auto-size even if container has dimensions


loaderMinHeight?

optional loaderMinHeight: number

Defined in: host/components/IMyopComponent.ts:47

Min height used by loader to detect collapse (default: 50)


maxHeight?

optional maxHeight: string | number

Defined in: host/components/IMyopComponent.ts:39

Maximum height constraint


maxWidth?

optional maxWidth: string | number

Defined in: host/components/IMyopComponent.ts:35

Maximum width constraint


minHeight?

optional minHeight: string | number

Defined in: host/components/IMyopComponent.ts:37

Minimum height constraint


minWidth?

optional minWidth: string | number

Defined in: host/components/IMyopComponent.ts:33

Minimum width constraint


onSizeChange()?

optional onSizeChange: (result) => void

Defined in: host/components/IMyopComponent.ts:31

Callback called with size info whenever size changes

Parameters

result

AutoSizeResult

Returns

void