The grid settings atom.

Hierarchy

Properties

grid: PropertyNumberSelectable

The grid or spacing property

key: string

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

name: string

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

required: boolean

Is this a required atom?

Methods

  • Return the keys of all properties which are required and not initialized.

    Returns

    Returns the keys of all properties which are required and not initialized.

    Returns string[]

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

    Returns

    True if enabled, or false otherwise.

    Returns boolean

  • 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

    True if initialized, or false otherwise.

    Returns boolean

  • Remove a listener by name.

    Parameters

    • name: string

      The name of the listener to remove

    Returns void

  • Set a listener on this node

    Returns

    The ListenerSubscription which should be canceled to stop listening.

    Parameters

    • name: string

      The name of the listener.

    • callback: EventCallback

      The callback to call when an event occurs.

    • Optional eventTypes: EventType[]

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

    Returns ListenerSubscription

  • Store persistently the state of the design system.

    Returns Promise<void>

Generated using TypeDoc