getContentRendered();
The getContentRendered method returns whether items of the View tool ribbon tab are drawn.
The method returns True if elements are drawn, otherwise it returns False.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Check if elements of the View tool ribbon tab are drawn. If the elements are not drawn, render them:
// Get view of the View tab var category = expressBox.getRibbonView().getViewCategory(); // Check if elements are drawn if (category.getContentRendered()) { console.log("Tab elements are drawn"); } else { console.log("Tab elements are not drawn"); category.renderContent(); }
As a result the console displays a message about checking if elements are drawn:
Tab elements are not drawn
Elements of the View tab will be drawn after calling the ViewCatView.renderContent method:
See also: