LayoutView

Description

The Layout view is used in an HTML dashboard to manage the chrome and layout of the page:

    Note  The Layout view replaces the Header and Footer views.

Library path

Properties

Name

Default value

Description

id Required. The unique ID for this control.
hideAppBarfalseHides the app bar.
hideAppsListfalseHides the app list in the Splunk bar.
hideChromefalseRenders only the main content, hiding the app bar, Splunk bar, and footer.
hideFooterfalseHides the footer.
hideSplunkBarfalseHides the Splunk bar.
layout"scrolling"The type of page layout ( fixed | scrolling ).

Example

        . . .

        //
        // SPLUNK LAYOUT
        //

        $('header').remove();
        new LayoutView({
            "hideAppBar": false, 
            "hideAppsList": true, 
            "hideChrome": false, 
            "hideSplunkBar": false, 
            "hideFooter": true,
            "layout": "fixed"
        })
            .render()
            .getContainerElement()
            .appendChild($('.dashboard-body')[0]);

        . . .