TabTextEditing: function (sender, args: Object);
sender. Event source.
args. Event information.
The TabTextEditing event occurs on exiting the tab header edit mode, even if the header has not been changed.
Available values of the args parameter:
TabIndex. Index of the edited tab.
Caption. Header of the edited tab.
To call the event on exiting the tab header edit mode on when the header is changed, use the TabControl.TabTextEdited event.
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: