SearchControlsView

Description
The SearchControls view manages the controls for a search.
Library path
splunkjs/mvc/searchcontrolsview
Properties
Name | Default value | Description |
id | | Required. The unique ID for this control. |
managerid | null | The ID of the search manager to bind this view to. |
settings | | The properties of the view. See the methods below to get and set values. |
Methods
Name | Description |
render | Draws the view to the screen. Called only when you create the view manually. |
settings.get( property ) | Returns the value of property for the current component. |
settings.set( property, value ) | Sets the value of property to the specified value for the current component. |
Example
require([
"splunkjs/mvc/searchcontrolsview",
"splunkjs/mvc/simplexml/ready!"
], function(SearchControlsView) {
// Instantiate components
new SearchControlsView({
id: "example-searchcontrols",
managerid: "example-search",
el: $("#mysearchcontrolsview")
}).render();
});