PP.Rds.Ui.FindSettingsDialog(settings);
settings. JSON object that contains values of class properties.
The FindSettingsDialog constructor creates an instance of the FindSettingsDialog class.
To execute this example, the page must contain the DictionaryBox component named dictionaryBox (see Example of creating the DictionaryBox component ). Get the tree of dictionary elements. Determine the object of search settings dialog box. Get dialog box settings, disable case sensitivity and set changed dialog box settings. Show the search settings dialog box:
// Get dictionary data area var area = dictionaryBox.getDataArea(); // Get the tree of dictionary elements var tree = area.getActiveDictTree(); // Determine the object of the search settings dialog box var fsd = new PP.Rds.Ui.FindSettingsDialog({ Source: tree.getSource(), // Data source }); // Get dialog box settings var filterSettings = fsd.getFilterSettings(); // Disable case sensitiveness filterSettings.caseSensitive = false; // Set dialog box settings fsd.setFilterSettings(filterSettings); // Show the dialog fsd.showDialog();
The search settings dialog box is shown as a result:
See also: