- Description:
Javascript module for deleting a database as a preset.
- Source:
- Copyright:
- 2022 Amaia Anabitarte
- 2022 Amaia Anabitarte
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Javascript module for deleting a database as a preset.
Members
(static, constant) init
- Description:
Initialize module
- Source:
Initialize module
Methods
(async, inner) deletePreset(dataId, presetName) → {promise}
- Description:
Delete site user preset.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
dataId |
int | The id of the current database activity. |
presetName |
string | The preset name to delete. |
Returns:
Resolved with the result and warnings of deleting a preset.
- Type
- promise
(inner) deletePresetConfirm(deleteOption)
- Description:
Show the confirmation modal to delete the preset.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
deleteOption |
HTMLElement | the element to delete. |
(inner) registerEventListeners()
- Description:
Register events for delete preset option in action menu.
- Source: