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 |
|---|---|---|
| name | string | The ID of the modal to remove. |
ModalService.close(name);
| Param | Type | Details |
|---|---|---|
| name | string | The name of the modal, if null the callback will fire whenever a modal is closed |
| 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. |
ModalService.onClose('MyModal', function (modalId) {
console.log('Modal: 'modalId + ' has been closed');
}, $scope);
ModalService.close('my_modal');
| Param | Type | Details |
|---|---|---|
| modal | string | The modal object. |
ModalService.register(modal);
| Param | Type | Details |
|---|---|---|
| name | string | The ID of the modal to remove. |
ModalService.show(name);
| Param | Type | Details |
|---|---|---|
| name | string | The ID of the modal to remove. |
ModalService.unregister(name);
Was this page helpful?