sparc - v1.0.1
    Preparing search index...

    A ViewSwitcher is mean to control a set of views, like a sub router. Handles content change and can be used for carousels or forms with multiple screens

    Type Parameters

    • K extends string

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _children: View[]
    _containerSelector?: string
    _currentChild: View
    _currentViewName: K
    _viewKeys: Record<K, number>
    isHTMD: true

    Discriminator to identify classes that implement this interface

    isHTMDComponent

    Accessors

    • get containerSelector(): undefined | string

      A css selector to specify where the element should be rendered When nesting elements, the parent should be responsible for assigning the containerSelector on its children

      Returns undefined | string

    • set containerSelector(selector: string): void

      A css selector to specify where the element should be rendered When nesting elements, the parent should be responsible for assigning the containerSelector on its children

      Parameters

      • selector: string

      Returns void

    Methods