IntegralUI Web

Documentation and API Reference

dataFields

Specifies an object that map the fields names from data source to the ones used by the Accordion.

Parameters

Variable

Type

Details

content(default: 'content')

String

Specifies the name of a property in your data source which represents a DOM element used as group content panel

dataSource(default: null)

Array

Specifies an array of group objects used as data source

headerContent(default: 'content')

String

Specifies the name of a property in your data source which represents a DOM element used as group header

icon(default: 'icon')

String

Specifies the name of a property in your data source which represents a DOM element used as group icon

id(default: 'id')

String

Specifies the name of a property in your data source which represents an unique identifier for an group

text(default: 'text')

String

Specifies the name of a property in your data source which represents an group header title

Property Value

An object with field names from a custom data source. Except for dataSource which is an array of objects, all other variables are the names inside of the array.

Remarks

This property is accessed through 'dataFields' option of Accordion widget.

Version Information

Supported in: v1.0.

Example

In this example the Accordion widget has dataFields set to a custom object used to map data felds from local data source. Using the names of data fields in this object, the Accordion will become automatically populated with data stored in the array.