close Dynamic tab on Delete keydown event
Hello,
Product: Customer Service Application
Version: 8.3
We would like to apply the design pattern for tabs with automatic activation (similar to the example linked here: https://www.w3.org/TR/wai-aria-practices-1.1/examples/tabs/tabs-1/tabs.html ) to our Tab Group. More specifically, we want to replicate the actions of the Delete key so that what the tab has focus and the user presses the Delete key on the keyboard, it removes the currently focused tab from the tab list.
I can bind an event handler to Delete keydown event, but I am unsure of what event handler to execute to close the Dynamic tab properly. Is there any Pega ootb functions that can be called within a script to close the tab?
$(document).ready(function(){ $('.tab-li').keydown(function(e) { if(e.keyCode == 46) { //function that closes current tab } }); });
Hello,
Product: Customer Service Application
Version: 8.3
We would like to apply the design pattern for tabs with automatic activation (similar to the example linked here: https://www.w3.org/TR/wai-aria-practices-1.1/examples/tabs/tabs-1/tabs.html ) to our Tab Group. More specifically, we want to replicate the actions of the Delete key so that what the tab has focus and the user presses the Delete key on the keyboard, it removes the currently focused tab from the tab list.
I can bind an event handler to Delete keydown event, but I am unsure of what event handler to execute to close the Dynamic tab properly. Is there any Pega ootb functions that can be called within a script to close the tab?
$(document).ready(function(){ $('.tab-li').keydown(function(e) { if(e.keyCode == 46) { //function that closes current tab } }); });