Options
All
  • Public
  • Public/Protected
  • All
Menu

Generates a tab list element and its child tab elements with all required ARIA attributes. All tab elements have an aria-controls attribute that references the associated tab panel.

The tab panels controlled by the tab list are made known by objects of type Panel. Because the tab panels are referenced from the tab elements, the tab panel elements need only an id attribute and role=tabpanel tabindex=0.

Once created, a component provides the externally invocable methods described below.

Hierarchy

  • Vue
    • AashTablist

Index

Constructors

constructor

  • new AashTablist(options?: ThisTypedComponentOptionsWithArrayProps<Vue, object, object, object, never>): AashTablist
  • new AashTablist(options?: ThisTypedComponentOptionsWithRecordProps<Vue, object, object, object, object>): AashTablist
  • new AashTablist(options?: ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<string, any>>): AashTablist

Vue Component Properties

Readonly id

id: string

The id attribute of the generated top level HTML element

initialPanels

initialPanels: Panel[]

The initial panels

l10n

l10n: undefined | ((label: string) => string)

A function invoked with a label as argument before the label is rendered

Other Properties

Readonly $attrs

$attrs: Record<string, string>

Readonly $children

$children: Vue[]

$createElement

$createElement: CreateElement

Readonly $data

$data: Record<string, any>

$delete

$delete: { (object: object, key: string | number): void; <T>(array: T[], key: number): void }

Type declaration

    • (object: object, key: string | number): void
    • <T>(array: T[], key: number): void
    • Parameters

      • object: object
      • key: string | number

      Returns void

    • Type parameters

      • T

      Parameters

      • array: T[]
      • key: number

      Returns void

Readonly $el

$el: Element

Readonly $isServer

$isServer: boolean

Readonly $listeners

$listeners: Record<string, Function | Function[]>

Readonly $options

$options: ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<string, any>>

Readonly $parent

$parent: Vue

Readonly $props

$props: Record<string, any>

Readonly $refs

$refs: {}

Type declaration

  • [key: string]: Vue | Element | Vue[] | Element[]

Readonly $root

$root: Vue

Readonly $scopedSlots

$scopedSlots: {}

Type declaration

  • [key: string]: NormalizedScopedSlot | undefined

$set

$set: { <T>(object: object, key: string | number, value: T): T; <T>(array: T[], key: number, value: T): T }

Type declaration

    • <T>(object: object, key: string | number, value: T): T
    • <T>(array: T[], key: number, value: T): T
    • Type parameters

      • T

      Parameters

      • object: object
      • key: string | number
      • value: T

      Returns T

    • Type parameters

      • T

      Parameters

      • array: T[]
      • key: number
      • value: T

      Returns T

Readonly $slots

$slots: {}

Type declaration

  • [key: string]: VNode[] | undefined

Readonly $ssrContext

$ssrContext: any

Readonly $vnode

$vnode: VNode

config

config: VueConfiguration

panels

panels: Panel[] = ...

selected

selected: any = null

version

version: string

Accessors

isVertical

  • get isVertical(): boolean

Methods

$destroy

  • $destroy(): void

$emit

$forceUpdate

  • $forceUpdate(): void

$mount

  • $mount(elementOrSelector?: string | Element, hydrating?: boolean): AashTablist

$nextTick

  • $nextTick(callback: () => void): void
  • $nextTick(): Promise<void>

$off

  • $off(event?: string | string[], callback?: Function): AashTablist

$on

  • $on(event: string | string[], callback: Function): AashTablist

$once

  • $once(event: string | string[], callback: Function): AashTablist

$watch

  • $watch(expOrFn: string, callback: (n: any, o: any) => void, options?: WatchOptions): () => void
  • $watch<T>(expOrFn: () => T, callback: (n: T, o: T) => void, options?: WatchOptions): () => void
  • Parameters

    • expOrFn: string
    • callback: (n: any, o: any) => void
        • (n: any, o: any): void
        • Parameters

          • n: any
          • o: any

          Returns void

    • Optional options: WatchOptions

    Returns () => void

      • (): void
      • Returns void

  • Type parameters

    • T

    Parameters

    • expOrFn: () => T
        • (): T
        • Returns T

    • callback: (n: T, o: T) => void
        • (n: T, o: T): void
        • Parameters

          • n: T
          • o: T

          Returns void

    • Optional options: WatchOptions

    Returns () => void

      • (): void
      • Returns void

Private _label

  • _label(panel: Panel): any

Private _onKey

  • _onKey(event: KeyboardEvent): void

Private _selectedPanel

  • _selectedPanel(): [null | Panel, number]

Private _setupTabpanel

  • _setupTabpanel(panel: Panel): void

addPanel

  • addPanel(panel: Panel): void

compile

  • compile(template: string): { staticRenderFns: (() => VNode)[]; render: any }

component

  • component(id: string): VueConstructor<Vue>
  • component<VC>(id: string, constructor: VC): VC
  • component<Data, Methods, Computed, Props>(id: string, definition: AsyncComponent<Data, Methods, Computed, Props>): ExtendedVue<Vue, Data, Methods, Computed, Props>
  • component<Data, Methods, Computed, PropNames>(id: string, definition?: ThisTypedComponentOptionsWithArrayProps<Vue, Data, Methods, Computed, PropNames>): ExtendedVue<Vue, Data, Methods, Computed, Record<PropNames, any>>
  • component<Data, Methods, Computed, Props>(id: string, definition?: ThisTypedComponentOptionsWithRecordProps<Vue, Data, Methods, Computed, Props>): ExtendedVue<Vue, Data, Methods, Computed, Props>
  • component<PropNames>(id: string, definition: FunctionalComponentOptions<Record<PropNames, any>, PropNames[]>): ExtendedVue<Vue, {}, {}, {}, Record<PropNames, any>>
  • component<Props>(id: string, definition: FunctionalComponentOptions<Props, RecordPropsDefinition<Props>>): ExtendedVue<Vue, {}, {}, {}, Props>
  • component(id: string, definition?: ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<string, any>>): ExtendedVue<Vue, {}, {}, {}, {}>
  • Parameters

    • id: string

    Returns VueConstructor<Vue>

  • Type parameters

    • VC: VueConstructor<Vue, VC>

    Parameters

    • id: string
    • constructor: VC

    Returns VC

  • Type parameters

    • Data

    • Methods

    • Computed

    • Props

    Parameters

    • id: string
    • definition: AsyncComponent<Data, Methods, Computed, Props>

    Returns ExtendedVue<Vue, Data, Methods, Computed, Props>

  • Type parameters

    • Data

    • Methods

    • Computed

    • PropNames: string = never

    Parameters

    • id: string
    • Optional definition: ThisTypedComponentOptionsWithArrayProps<Vue, Data, Methods, Computed, PropNames>

    Returns ExtendedVue<Vue, Data, Methods, Computed, Record<PropNames, any>>

  • Type parameters

    • Data

    • Methods

    • Computed

    • Props

    Parameters

    • id: string
    • Optional definition: ThisTypedComponentOptionsWithRecordProps<Vue, Data, Methods, Computed, Props>

    Returns ExtendedVue<Vue, Data, Methods, Computed, Props>

  • Type parameters

    • PropNames: string

    Parameters

    • id: string
    • definition: FunctionalComponentOptions<Record<PropNames, any>, PropNames[]>

    Returns ExtendedVue<Vue, {}, {}, {}, Record<PropNames, any>>

  • Type parameters

    • Props

    Parameters

    • id: string
    • definition: FunctionalComponentOptions<Props, RecordPropsDefinition<Props>>

    Returns ExtendedVue<Vue, {}, {}, {}, Props>

  • Parameters

    • id: string
    • Optional definition: ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<string, any>>

    Returns ExtendedVue<Vue, {}, {}, {}, {}>

delete

  • delete(object: object, key: string | number): void
  • delete<T>(array: T[], key: number): void

directive

  • directive(id: string, definition?: DirectiveOptions | DirectiveFunction): DirectiveOptions

extend

  • extend<Data, Methods, Computed, PropNames>(options?: ThisTypedComponentOptionsWithArrayProps<Vue, Data, Methods, Computed, PropNames>): ExtendedVue<Vue, Data, Methods, Computed, Record<PropNames, any>>
  • extend<Data, Methods, Computed, Props>(options?: ThisTypedComponentOptionsWithRecordProps<Vue, Data, Methods, Computed, Props>): ExtendedVue<Vue, Data, Methods, Computed, Props>
  • extend<PropNames>(definition: FunctionalComponentOptions<Record<PropNames, any>, PropNames[]>): ExtendedVue<Vue, {}, {}, {}, Record<PropNames, any>>
  • extend<Props>(definition: FunctionalComponentOptions<Props, RecordPropsDefinition<Props>>): ExtendedVue<Vue, {}, {}, {}, Props>
  • extend(options?: ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<string, any>>): ExtendedVue<Vue, {}, {}, {}, {}>
  • Type parameters

    • Data

    • Methods

    • Computed

    • PropNames: string = never

    Parameters

    • Optional options: ThisTypedComponentOptionsWithArrayProps<Vue, Data, Methods, Computed, PropNames>

    Returns ExtendedVue<Vue, Data, Methods, Computed, Record<PropNames, any>>

  • Type parameters

    • Data

    • Methods

    • Computed

    • Props

    Parameters

    • Optional options: ThisTypedComponentOptionsWithRecordProps<Vue, Data, Methods, Computed, Props>

    Returns ExtendedVue<Vue, Data, Methods, Computed, Props>

  • Type parameters

    • PropNames: string = never

    Parameters

    • definition: FunctionalComponentOptions<Record<PropNames, any>, PropNames[]>

    Returns ExtendedVue<Vue, {}, {}, {}, Record<PropNames, any>>

  • Type parameters

    • Props

    Parameters

    • definition: FunctionalComponentOptions<Props, RecordPropsDefinition<Props>>

    Returns ExtendedVue<Vue, {}, {}, {}, Props>

  • Parameters

    • Optional options: ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<string, any>>

    Returns ExtendedVue<Vue, {}, {}, {}, {}>

filter

  • filter(id: string, definition?: Function): Function

mixin

  • mixin(mixin: VueConstructor<Vue> | ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<string, any>>): VueConstructor<Vue>
  • Parameters

    • mixin: VueConstructor<Vue> | ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<string, any>>

    Returns VueConstructor<Vue>

mounted

  • mounted(): void

nextTick

  • nextTick<T>(callback: () => void, context?: T): void
  • nextTick(): Promise<void>

observable

  • observable<T>(obj: T): T

onPanelsChange

  • onPanelsChange(newValue: any): void

removePanel

  • removePanel(panelId: string): void

selectPanel

  • selectPanel(panelId: string): void

set

  • set<T>(object: object, key: string | number, value: T): T
  • set<T>(array: T[], key: number, value: T): T

use

  • use<T>(plugin: PluginObject<T> | PluginFunction<T>, options?: T): VueConstructor<Vue>
  • use(plugin: PluginObject<any> | PluginFunction<any>, ...options: any[]): VueConstructor<Vue>

Generated using TypeDoc