getStyleListBoxItems(): PP.Ui.ListItem;
The getTableStyleListBoxItems method returns list of cell styles on the Table ribbon tab.
Executing the example requires that HTML page contains the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component). Go to the Table ribbon tab of the workbook. Change table cell style to neutral:
// Get ribbon var ribbon = workbookBox.getRibbonView(); // Get the Table tab var tableCatView = ribbon.getTableCategory(); // Get cell styles var styleList = tableCatView.getStyleListBoxItems(); // Set neutral style for table cells var items = styleList[3]; var selItem = items.getParent(); selItem.setSelectedItem(items);
After executing the example. table cell style changed to neutral.
See also: