Application Framework Reference

Splunk API

getCurrentDisplayView()

The getCurrentDisplayView() method gets the current displayView name, which is the view label stored in the DOM.

Synopsis

name = Splunk.util.getCurrentDisplayView()

Return Value

String

Current displayView name if different from the view name. Otherwise, the current view name.

Example

var displayView = Splunk.util.getCurrentDisplayView();
 

See Also

getCurrentApp()
getCurrentView()
getCurrentViewConfig()