Home
NexoPOS

ns-settings-change-tab

This javascript hook action is triggered every time a tab changes on the ns-settings.vue component. That action provides an object that has includes: the actual tab object, the vue component, and the tab identifier.

This action can be used to add a specific behavior to a specific settings page.

Here is how you'll use this action.

<script type="text/javascript">
document.addEventListener( 'DOMContentLoaded', () => {
    nsHooks.addAction( 'ns-settings-change-tab', 'my-hook-identifier', ({ tab, instance, identifier }) => {
        // add your custom behaviour here...
    })
});
</script>