Application Framework Reference

Splunk API

getWindowDimensions()

The getWindowDimensions() method gets the inner dimensions of the current window.

Synopsis

dims = Splunk.util.getWindowDimensions()

Return Value

Object

JSON-formatted height and width. Example: { 'height': 600, 'width': 800 }

Example

   var dimensions = Splunk.util.getWindowDimensions();
 

See Also

Splunk.Search.sendToView()