HeaderView
Description
The Header view displays the Splunk header.
Documentation
Library path
Properties
Name | Default value | Description |
id | | Required. The unique ID for this control. |
appbar | true | Indicates whether to display the app bar. |
Methods
Name | Description |
render | Draws 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