TabControl.TabTextEditing

Syntax

TabTextEditing: function (sender, args: Object);

Parameters

sender. Event source.

args. Event information.

Description

The TabTextEditing event occurs on exiting the tab header edit mode, even if the header has not been changed.

Comments

Available values of the args parameter:

To call the event on exiting the tab header edit mode on when the header is changed, use the TabControl.TabTextEdited event.

Example

Executing the example requires that the HTML page contains the TabControl component named tabontrol (see Example of Creating the TabControl Component). Enable tab headers editing and handle the TabTextEditing event:

// Enable headers editing
tabcontrol.setEnableEdit(true);
// Handle the EnableEditing event
tabcontrol.TabTextEditing.add(function (sender, args) {
    console.log("Index of edited tab: " + args.TabIndex);
    console.log("Header of edited tab: " + args.Caption);
});

After executing the example, after user edits header of any tab, the browser console displays index and header of the edited tab:

Index of edited tab: 4

Header of edited tab: Filler

See also:

TabControl