HeaderView

The Header view with the app bar

Description

Deprecated. The Header view displays the Splunk header.

Library path

Properties

Name

Default value

Description

id Required. The unique ID for this control.
appbartrueIndicates whether to display the app bar.
settingsThe properties of the view. See the methods below to get and set values.
splunkbartrueIndicates whether to display the Splunk bar.

Methods

Name

Description

renderDraws 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( propertyvalue )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();

});