Table of Contents
setText Method 

Sets the item's text.

Syntax
JavaScript
 NavigationItem.setText(text)

Parameters

text
The new item text.
Remarks

Uses this function to change item text.

Tip:  Changing item text may causes the containing item group to resize because by default menu group tries to shrink to the minimum width that fits all the menu items. You can explicitly set NavigationItemGroup.Width property to prevent automatic resizing.

You can not change item text unless the text part is rendered. For example, trying to change item text for an image only menu item will fail.

See Also