TogglePanesService
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
| Param | Type | Details |
|---|---|---|
| panesId | string | The id of the toggle panes component where the callback is being fired. |
| callback | Function | The function to be called when the cancel event is fired. |
| scope | Object | The $scope object for unsubscribing to the event when the scope is destroyed. |
TogglePanesService.onTogglePane('MyPaneId', function (paneNumber) {
console.log('Pane has been toggled to ' + paneNumber);
}, $scope);
TogglePanesService.togglePane('MyPaneId', 1);
| Param | Type | Details |
|---|---|---|
| panesId | string | The id of the toggle panes component to fire the toggle against. |
| paneNumber | number | The number of the pane to switch to (0 based so the first pane is 0, the second pane is 1 etc.). |
TogglePanesService.togglePane('MyPaneId', 1);
Was this page helpful?