EnableDelete: Boolean
The EnableDelete property determines whether tabs can be deleted.
If the property is set to True, the tab title includes the icon clicking which deletes the tab. By default the property is set to False.
To execute the example, the page must contain the TabControl component named tabcontrol (see Example of Creating the TabControl Component). Enable deletion and add the TabControl.TabDeleted:tabcontrol.setEnableDelete(true) event handler.
tabcontrol.TabDeleted.add(function ()
{
confirm("Do you want to delete the tab?")
})
After executing the example the icons appear in the tabs. Clicking these icons shows a confirmation dialog box with the following text: Do you want to delete the tab?.
See also: