Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DivContainer

Hierarchy

Index

Properties

Optional CSSStyles

CSSStyles: CssStyles

Matches the CSS style key and its available values.

Optional ariaHidden

ariaHidden: boolean

Corresponds to the aria-hidden accessibility attribute for this component

Optional ariaLabel

ariaLabel: string

Corresponds to the aria-label accessibility attribute for this component

Optional ariaRole

ariaRole: string

Corresponds to the role accessibility attribute for this component

Optional ariaSelected

ariaSelected: boolean

Corresponds to the aria-selected accessibility attribute for this component

Optional clickable

clickable: boolean

Indicates whether the element is clickable

Optional display

display: DisplayType

Corresponds to the display CSS property for the element

Optional enabled

enabled: boolean

Whether the component is enabled in the DOM

Optional height

height: string | number

Readonly id

id: string

Readonly items

items: Component[]

A copy of the child items array. This cannot be added to directly - components must be created using the create methods instead

onDidClick

onDidClick: Event<any>

An event called when the div is clicked

Readonly onValidityChanged

onValidityChanged: Event<boolean>

Event fired to notify that the component's validity has changed

Optional overflowY

overflowY: string

Matches the overflow-y CSS property and its available values.

Optional position

position: PositionType

The position CSS property. Empty by default. This is particularly useful if laying out components inside a FlexContainer and the size of the component is meant to be a fixed size. In this case the position must be set to 'absolute', with the parent FlexContainer having 'relative' position. Without this the component will fail to correctly size itself

Readonly valid

valid: boolean

Whether the component is valid or not

Optional width

width: string | number

Optional yOffsetChange

yOffsetChange: number

Setting the scroll based on the y offset This is used when its child component is webview

Methods

addItem

  • Creates a child component and adds it to this container. Adding component to multiple containers is not supported

    Parameters

    Returns void

addItems

  • Creates a collection of child components and adds them all to this container

    Parameters

    Returns void

clearItems

  • clearItems(): void
  • Removes all child items from this container

    Returns void

focus

  • focus(): Thenable<void>
  • Focuses the component.

    Returns Thenable<void>

insertItem

  • Creates a child component and inserts it to this container. Returns error given invalid index Adding component to multiple containers is not supported

    Parameters

    • component: Component

      the component to be added

    • index: number

      the index to insert the component to

    • Optional itemLayout: DivItemLayout

    Returns void

removeItem

  • Parameters

    • component: Component

      Removes a component from this container

    Returns boolean

setLayout

  • Defines the layout for this container

    Parameters

    Returns void

updateCssStyles

  • updateCssStyles(cssStyles: CssStyles): Thenable<void>
  • Updates the specified CSS Styles and notifies the UI

    Parameters

    Returns Thenable<void>

    Thenable that completes once the update has been applied to the UI

updateProperties

  • updateProperties(properties: {}): Thenable<void>
  • Sends any updated properties of the component to the UI

    Parameters

    • properties: {}
      • [key: string]: any

    Returns Thenable<void>

    Thenable that completes once the update has been applied in the UI

updateProperty

  • updateProperty(key: string, value: any): Thenable<void>
  • Sends an updated property of the component to the UI

    Parameters

    • key: string
    • value: any

    Returns Thenable<void>

    Thenable that completes once the update has been applied in the UI

validate

  • validate(): Thenable<boolean>
  • Run the component's validations

    Returns Thenable<boolean>

Generated using TypeDoc