HeaderView

Description
Deprecated. The Header view displays the Splunk header.
Library path
Properties
Name | Default value | Description |
id | | Required. The unique ID for this control. |
appbar | true | Indicates whether to display the app bar. |
settings | | The properties of the view. See the methods below to get and set values. |
splunkbar | true | Indicates whether to display the Splunk bar. |
Methods
Name | Description |
render | Draws the control 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/headerview",
"splunkjs/mvc/simplexml/ready!"
], function(HeaderView) {
// Instantiate components
new HeaderView({
id: "example-header",
el: $("#myheaderview")
}).render();
});