Base input class

Description

The base input class used for Splunk form inputs. This class is not designed to be subclassed directly.

Library path

Properties common to all views

Name

Default value

Description

id Required. The unique ID for this control.
manageridnullThe ID of the search manager to bind this view to.
settingsThe properties of the view. See the methods below to get and set values.

Methods common to all views

Name

Description

renderDraws the control to the screen. Called on newly-constructed views for the view to be in a defined state. Called only when you create the view manually.
settings.get( property )Returns the value of property for the current component.
settings.set( propertyvalue )Sets the value of property to the specified value for the current component.

Example constructor

require([
    "splunkjs/mvc/checkboxview",
    "splunkjs/mvc/simplexml/ready!"
], function(CheckboxView) {

    // Instantiate components
    new CheckboxView({
        id: "example-checkbox",
        default: false,
        el: $("#mycheckboxview")
    }).render();

});