Getting Data In

Django bindings, header: appbar has no effect? (Splunk Enterprise 6.1)

arkadyz1
Builder

I'm starting to experiment Splunk Web Framework. Following some tutorials, trying to tweak things here and there. One of the strange things I noticed: a documented appbar (can be true of false) property of HeaderView has no effect on the appearance - appbar is always present.

Here is the beginning of my .html file:

{% extends "splunkdj:base_with_basic_styles.html" %}
{% load splunkmvc %}

{% block content %}
    <div id="my-header">
        {% header id="inner-header" appbar="False" %}
    </div>
    <div id="barchart"></div>
    <div id="message-area"></div>
{% endblock content%}

I tried specifying "true" and "false" as appbar values with various capitalizations - the appbar is simply always there. I know I can change that by inheriting from different base_*.html(the first line - with "extends") but then I will always have footer which I might not want, and overall I want a better degree of freedom. Any ideas?

0 Karma
1 Solution

arkadyz1
Builder

Found an answer - specify 0 or 1 as a value there. Not enough information on that in the docs, but the default described as "true" misleads one into believing that it's boolean.

So this

{% header id="inner-header" appbar=0 %}

produced the expected result :).

View solution in original post

0 Karma

arkadyz1
Builder

Found an answer - specify 0 or 1 as a value there. Not enough information on that in the docs, but the default described as "true" misleads one into believing that it's boolean.

So this

{% header id="inner-header" appbar=0 %}

produced the expected result :).

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...