File

projects/components/src/widgets/common/accordion/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

Class of the widget.

Type : string

closeothers

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

Type : boolean

Default value : true

defaultpaneindex

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

Bindable: true

Type : number

Default value : 0

name

Name of the accordion widget.

Type : string

show

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

Bindable: true

Type : boolean

Default value : true

tabindex

This property specifies the tab order of the accordion Widget.

Type : number

Default value : 0

result-matching ""

    No results matching ""