Class: ObjPropListEditor

Kekule.Widget. ObjPropListEditor

Methods

collapseAllRows()

Collapse all rows in editor.
Source:

collapseRow(row)

Collapse row with sub properties.
Parameters:
Name Type Description
row HTMLElement
Source:

expandAllRows(cascade)

Expand all rows in editor.
Parameters:
Name Type Description
cascade Bool
Source:

expandRow(row)

Expand row with sub properties.
Parameters:
Name Type Description
row HTMLElement
Source:

getActiveRowCascadeKey() → {String}

Returns cascade key of current selected row.
Source:
Returns:
Type
String

getObjPropValue(obj, propName) → {Variant}

Returns property or field value of object.
Parameters:
Name Type Description
obj Object A plain object or instance of ObjectEx.
propName String
Source:
Returns:
Type
Variant

getObjsPropValue(objects, propName) → {Variant}

Returns property value of multiple objects. If all objects have the same property value, this value will be returned. Otherwise this method will return undefined.
Parameters:
Name Type Description
objects Array
propName String
Source:
Returns:
Type
Variant

getRowCascadeKey(row) → {String}

Returns key name like 'parentPropName.childPropName'.
Parameters:
Name Type Description
row HTMLElement
Source:
Returns:
Type
String

isOperHistoryAvailable() → {Bool}

Check if operation history can be used.
Source:
Returns:
Type
Bool

isRowExpandable(row) → {Bool}

Check if a row has sub properties and can be expanded.
Parameters:
Name Type Description
row HTMLElement
Source:
Returns:
Type
Bool

isRowExpanded(row)

Check if a row with sub properties is expanded.
Parameters:
Name Type Description
row HTMLElement
Source:

redo()

Redo a property setting operation.
Source:

toggleRowExpandState(row)

Expand a collapsed row or collapse an expanded row.
Parameters:
Name Type Description
row HTMLElement
Source:

undo()

Undo a property setting operation.
Source:

updateAll()

Force to update object inspector rows based on current objects.
Source:

Events

propertyChange

Invoked when the active row edit is finished and property is changed. Event param of it has field: {propertyInfo, propertyEditor, oldValue, newValue}.
Source: