PP.TS.Ui.ValidationRulesPanel(settings: Object);
settings. JSON object that contains values of class properties.
The ValidationRulesPanel constructor creates an instance of the ValidationRulesPanel class.
To execute the example, the HTML page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component). Create validation rules panel and add in to the workbook side panel:
// Get workbook model var workbook = workbookBox.getSource(); // Create a validation rule panel var validationRulesPanel = new PP.TS.Ui.ValidationRulesPanel({ ViewType: PP.Ui.NavigationItem, Title: "Validation rules" }); // Set data source validationRulesPanel.setSource(workbook); // Add the created panel to workbook properties panel workbookBox.getPropertyBarView().addMasterPanel(validationRulesPanel); // Display the validation rule panel and expand it validationRulesPanel.show(); validationRulesPanel.expand(); // Refresh the panel validationRulesPanel.refresh();
A validation rules panel is created as the result of example execution. Next this panel is added to the workbook side panel, shown, expanded and updated:
See also: