File

projects/components/widgets/containers/accordion/src/accordion.directive.doc.ts

Description

The wmAccordion directive defines the Accordion widget.

Index

Methods
Inputs

Methods

onChange
onChange($event: Event, widget: any, newPaneIndex: number, oldPaneIndex: number)

Callback function which will be triggered when an accordion pane is selected.

Parameters :
Name Type Optional Description
$event Event No

DOM event on which call back is triggered.

widget any No

Instance of the accordion widget.

newPaneIndex number No

The current selected accordion pane index.

oldPaneIndex number No

The previously selected accordion pane index.

Returns : void

Inputs

class
Type : string

Class of the widget.

closeothers
Type : boolean
Default value : true

This property used to allow multiple accordion panes to be visible parallelly.

defaultpaneindex
Type : number
Default value : 0

This property sets the default active accordion pane on load of widget based on provided index.

Bindable: true

name
Type : string

Name of the accordion widget.

show
Type : boolean
Default value : true

This property will be used to show/hide the accordion widget on the web page.

Bindable: true

tabindex
Type : number
Default value : 0

This property specifies the tab order of the accordion Widget.

results matching ""

    No results matching ""