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

The condition object.

Name Type Description
command object

The command object with condition name as key property.

args Array

An array of values to compare.

column number

Physical column index.

Class: ConditionComponent