HeaderView

The Header view with the app bar

Description

The Header view displays the Splunk header.

Documentation

Library path

Properties

Name

Default value

Description

id Required. The unique ID for this control.
appbartrueIndicates whether to display the app bar.

Methods

Name

Description

renderDraws the control to the screen. Called only when you create the control manually in JavaScript.

Example (Django tag)

{% header id="example-header" %}

Example (JavaScript)

<script>
    var deps = [
        "splunkjs/ready!",
        "splunkjs/mvc/headerview"
    ];
    require(deps, function(mvc) {
        var HeaderView = require("splunkjs/mvc/headerview");

        // Instantiate components
        new HeaderView({
            id: "example-header",
            el: $("#myheaderview")
        }).render();

    });
</script>

Code examples