EnableDelete: Boolean;
The EnableDelete property determines whether tabs can be deleted.
Available value:
true. Tabs can be deleted. The Delete button is displayed in the tab header.
false. Tabs cannot be deleted.
To execute the example, the page must contain the TabControl component named tabcontrol (see Example of Creating the TabControl Component). Enable deletion and add a handler for the TabControl.TabDeleted event:
tabcontrol.setEnableDelete(true);
tabcontrol.TabDeleted.add(function ()
{
confirm("Delete tab?")
})
After executing the example the Delete icons are displayed on the tabs. Clicking these icons shows a confirmation dialog box with the following text: Delete tab?.
See also: