new Ab.grid.MiniConsole(controlId, configObject)
JavaScript API Reference/Ab.grid.MiniConsole object
new Ab.grid.MiniConsole(controlId, configObject)
The constructor sets up a data structure in memory that is used to build the MiniConsole (Smart Search console), it does not actually modify the DOM to place a grid in the page.
Parameters:
-
controlId
(String): identifier matching the id of a DOM element in the page (typically a<span>
or<div>
) to which the resulting grid will be appended -
configObject
(JS object): collection of configuration parameters for setting up the report. A map whose keys are used to set up the component. In addition to the properties listed for theReportGrid
constructor this configuration object can set:
-
indexColumnId
(optional string): the id, in table-dot-column form, of the column on which the report is initially indexed; -
restriction
(optional JS object): anAb.view.Restriction
object that limits (in addition to any filter values) the data presented in the report; -
filterValues
(optional array of JS objects): a collection of objects with propertiesfieldName
andfieldValue
that will be inserted into the MiniConsole’s filter inputs for the respective columns.