TextEditing: function (sender, args: Object);
sender. Event source.
args. Event information. Available arguments: TabIndex - gets index of the edited tab Caption - gets title of the edited tab.
The TextEditing event is fired on exiting the tab title edit mode, even if the title has not been changed.
To execute the example, the HTML page must contain the TabControl component named tabcontrol (see Example of Creating the TabControl Component). Enable tab titles editing and handle the TextEditing event:
// Enable titles editing tabcontrol.setEnableEdit(true); // Handle the EnableEditing event tabcontrol.TextEditing.add(function (sender, args) { console.log("Index of the edited tab: " + args.TabIndex); console.log("Title of the edited tab: " + args.Caption); });
After executing the example after user edits title of any tab the browser console shows index and title of the edited tab:
Index of the edited tab: 4
Title of the edited tab: Filler
See also: