com.sweaxizone.metro
    Preparing search index...

    Class TilePlus

    The TilePlus class may have instances attached to a Tiles component for additional control and testing methods.

    With it you can:

    • Check or uncheck tiles
    • Determine the number of inline groups available for a given width.

    Hierarchy

    • SAEventTarget
      • TilePlus
    Index

    Constructors

    • Returns TilePlus

    Properties

    "[EventRecord]": {}

    Methods

    • Sets whether a tile is checked or not.

      Parameters

      • tile: string
      • value: boolean

      Returns void

    • Type Parameters

      • K extends
            | "setChecked"
            | "checkAll"
            | "uncheckAll"
            | "getInlineGroupsAvailableResult"
            | "getInlineGroupsAvailable"
      • C extends new (type: K) => EventResult
      • EventResult extends
            | Event
            | CustomEvent<{ id: string; value: boolean }>
            | CustomEvent<{ requestId: string; width: string }>
            | CustomEvent<{ requestId: string; value: number }>

      Parameters

      • type: K
      • constructor: C

      Returns boolean

    • Type Parameters

      • K extends
            | "setChecked"
            | "checkAll"
            | "uncheckAll"
            | "getInlineGroupsAvailableResult"
            | "getInlineGroupsAvailable"
      • C extends new (type: K, options: O) => EventResult
      • O
      • EventResult extends
            | Event
            | CustomEvent<{ id: string; value: boolean }>
            | CustomEvent<{ requestId: string; width: string }>
            | CustomEvent<{ requestId: string; value: number }>

      Parameters

      • type: K
      • constructor: C
      • options: O

      Returns boolean

    • Parameters

      • event: Event

      Returns boolean

    • Returns the number of inline groups available for the given width (either in px or rem).

      Note Applies to a vertical layout only.

      Parameters

      • width: string

      Returns Promise<number>

    • Type Parameters

      • K extends
            | "setChecked"
            | "checkAll"
            | "uncheckAll"
            | "getInlineGroupsAvailableResult"
            | "getInlineGroupsAvailable"

      Parameters

      • type: K
      • listener: (e: {}[K] extends Event ? any[any] : never) => void | undefined
      • Optionaloptions: boolean | SAOffEventOptions

      Returns void

    • Parameters

      • type: string
      • listener: (e: Event) => void | undefined
      • Optionaloptions: boolean | SAOffEventOptions

      Returns void

    • Type Parameters

      • K extends
            | "setChecked"
            | "checkAll"
            | "uncheckAll"
            | "getInlineGroupsAvailableResult"
            | "getInlineGroupsAvailable"

      Parameters

      • type: K
      • listener: (e: {}[K] extends Event ? any[any] : never) => void | undefined
      • Optionaloptions: boolean | SAOnEventOptions

      Returns void

    • Parameters

      • type: string
      • listener: (e: Event) => void | undefined
      • Optionaloptions: boolean | SAOnEventOptions

      Returns void