Constructor
new Panel(store, css, position)
Create a panel
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
store |
object | NSPIT store |
|
css |
object | Properties used both in SCSS and in JS |
|
position |
'left' | 'right' |
left
|
Panel position |
Members
activeTab
Get active tab
activeTab
Set active tab
open
Get open/close panel status
open
Set open/close panel status
Methods
changeContent(contentId, store, callback)
Change panel content
Parameters:
| Name | Type | Description |
|---|---|---|
contentId |
string | Panel content id |
store |
object | NSPIT store |
callback |
function | Callback for changing panel content |
closePanel(callback)
Close panel
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
function | Callback for closing panel |
initializeContent(contentId)
Initialize panel content
Parameters:
| Name | Type | Description |
|---|---|---|
contentId |
string | Panel content id |
openPanel()
Open panel