The molecules class.

Hierarchy (view full)

Implements

  • IMolecules

Properties

avatars: Avatars

The avatars molecule

chartBar: ChartBar

The chart bar molecule

chartDonut: ChartDonut

The chart donut molecule

chartLine: ChartLine

The chart line molecule

chartPie: ChartPie

The chart pie molecule

chartProgress: ChartProgress

The chart progress molecule

chips: Chips

The chips molecule

dropdowns: Dropdowns

The dropdowns molecule

images: Images

The images molecule

key: string

The unique key for the node. It is unique from all other nodes in the ThemeBuilder

modal: Modal

The modal molecule

name: string

The name of the node, which is unique relative to it's siblings

popovers: Popovers

The popovers molecule

sliders: Sliders

The sliders molecule

smallButtons: SmallButtons

The small buttons molecule

spacing: Spacing

The spacing molecule

standardButtons: StandardButtons

The standard buttons molecule

standardCards: Cards

The standard cards molecule

toasts: Toasts

The toasts molecule

Methods

  • Determine if this node is enabled. A node is enabled if all other nodes on which this node depends have been initialized.

    Returns boolean

    True if enabled, or false otherwise.

  • Determine if this node is initialized.

    If this node is a property, it is initialized if it is not required to have a value, or if it is required and has either a default or non-default value.

    Returns boolean

    True if initialized, or false otherwise.

  • Remove a listener by name.

    Parameters

    • name: string

      The name of the listener to remove

    Returns void

  • Set a listener on this node

    Parameters

    • name: string

      The name of the listener.

    • callback: EventCallback

      The callback to call when an event occurs.

    • OptionaleventTypes: EventType[]

      The types of events to wait for. If none are specified, listen for all events.

    Returns ListenerSubscription

    The ListenerSubscription which should be canceled to stop listening.