Class: ConditionComponent

ConditionComponent

Methods

getInputElement(index){InputUI}

Get input element.

Parameters:
Name Type Default Description
index Number 0

Index an array of elements.

Returns: {InputUI}

getInputElements(){Array}

Get input elements.

Returns: {Array}

getMenuItemDescriptor(){Object}

Get menu object descriptor.

Returns: {Object}

getSelectElement(){SelectUI}

Get select element.

Returns: {SelectUI}

getState(){Object}

Export state of the component (get selected filter and filter arguments).

Returns: {Object} Returns object where command key keeps used condition filter and args key its arguments.

reset()

Reset elements to their initial state.

setState(value)

Set state of the component.

Parameters:
Name Type Description
value Object

State to restore.

updateState(condition, column)

Update state of component.

Parameters:
Name Type Description
condition Object

Object with keys:

  • command Object, Command object with condition name as key property.
  • args Array, Condition arguments.
column

Physical column index.