Constructor Summary
| Public Constructor | ||
| public |
constructor(id: String, options: Object) constructor |
|
Method Summary
| Public Methods | ||
| public |
clearSelection(): Null clear the selected items |
|
| public |
collapse the item |
|
| public |
return the item's data |
|
| public |
sets the item's status |
|
| public |
expand the item |
|
| public |
sets or gets the selected item |
|
Public Constructors
public constructor(id: String, options: Object) source
constructor
Params:
| Name | Type | Attribute | Description |
| id | String | panelbar id |
|
| options | Object | config params |
|
| options.dataSource | Object | the data source of the widget which is used to render panelbar, a javascript array. |
|
| options.dataSource.text | String | item's text |
|
| options.dataSource.imageUrl | String | item's image |
|
| options.expandMode | String | expand mode: 1 "single" 2 "multiple" (default: "multiple") |
|
| options.template | String | template for node rendering |
Emit:
triggers when a user selects or cancels a selected node (callback function format: CALLBACK_NAME(e) e.item selected item) |
Public Methods
public collapse(item: String): Object source
collapse the item
Params:
| Name | Type | Attribute | Description |
| item | String | an item that needs collapse(jQuery selector) |
public dataItem(item: String): Object source
return the item's data
Params:
| Name | Type | Attribute | Description |
| item | String | Dom element(jQuery selector) |
Reference
Source