Extends
Members
v
Sets the new component value to a JSON object.
- Accessor of: ve.ObjectEditor
from_binding
Internal .from_binding setter for handling .options.from_binding. Accepts a string literal that is then parsed to a variable reference.
.to_binding counterparts are manually handled child-side.
- Accessor of: ve.Component
- Overrides:
- Source:
limit
Tests the current this.limit by calling this.limit_function(this.v, this). Otherwise resolves to true if no .options.limit is set.
- Accessor of: ve.Component
- Overrides:
- Source:
name
Returns the visual name of the present ve.Component,
- Accessor of: ve.Component
- Overrides:
- Source:
Methods
_generateRecursive(arg0_current_data, arg1_current_key, arg2_depth, arg3_parent_object, arg4_parent_path) → {ve.HierarchyDatatype}
Generates HTML recursively for the current component.
- Private method of: ve.ObjectEditor
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_current_data |
any
|
|
arg1_current_key |
string
|
|
arg2_depth |
number
|
|
arg3_parent_object |
Array.<any>
|
Object
|
|
arg4_parent_path |
string
|
Returns:
- Type:
-
ve.HierarchyDatatype
_getType(arg0_value) → {string}
Returns the type of a JSON-valid primitive.
- Private method of: ve.ObjectEditor
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_value |
any
|
Returns:
- Type:
-
string
_handleReorder(arg0_v, arg1_e)
Handles the reordering of an element within the ve.Hierarchy of an ObjectEditor.
- Private method of: ve.ObjectEditor
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_v |
Object
|
|
arg1_e |
Object
|
_moveArrayItem(arg0_array, arg1_old_index, arg2_new_index) → {Array.<any>}
Moves an array item inside an array within ObjectEditor.
- Private method of: ve.ObjectEditor
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_array |
Array.<any>
|
|
arg1_old_index |
number
|
|
arg2_new_index |
number
|
Returns:
- Type:
-
Array.<any>
_openAddModal(arg0_target_obj)
Opens a modal for adding a new variable type to the Object.
- Private method of: ve.ObjectEditor
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_target_obj |
Object
|
_openChangeTypeModal(arg0_target_object, arg1_key)
Opens a modal to change an existing key type in the Object.
- Private method of: ve.ObjectEditor
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_target_object |
Object
|
|
arg1_key |
string
|
_renameObjectKey(arg0_obj, arg1_old_key, arg2_new_key)
Renames an Object key.
- Private method of: ve.ObjectEditor
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_obj |
Object
|
|
arg1_old_key |
string
|
|
arg2_new_key |
string
|
refresh()
Refreshes the given ve.ObjectEditor to be in sync with the JSON object passed in.
- Method of: ve.ObjectEditor
addComponent()
Adds the current component to this.parent_el should it exist.
- Method of: ve.Component
- Overrides:
- Source:
bind(arg0_container_el)
Manually binds/mounts the present ve.Component into the visual DOM.
- Method of: ve.Component
- Overrides:
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_container_el |
HTMLElement
|
copy() → {ve.Component}
Copies the current component and returns a new instance of it.
- Method of: ve.Component
- Overrides:
- Source:
Returns:
- Type:
-
ve.Component
fireFromBinding()
Pseudo-setter from binding. Fires only upon program-driven changes to .v directly, which means that this has to be monitored manually component-side in set v(). This should always come last in set v().
- Method of: ve.Component
- Overrides:
- Source:
fireToBinding()
Pseudo-setter to binding. Fires only upon user-driven changes, which means that this has to be monitored manually component-side.
- Method of: ve.Component
- Overrides:
- Source:
gc()
Adds the current component to the garbage collector.
- Method of: ve.Component
- Overrides:
- Source:
removeComponent()
Removes the current component from this.parent_el should it exist.
- Method of: ve.Component
- Overrides:
- Source:
setOwner(arg0_value, arg1_owner_array)
Sets the root parent and ownership tree. Influences this.parent_el, this.owner, this.owners.
- Method of: ve.Component
- Overrides:
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_value |
||
arg1_owner_array |
setValueFromObject(arg0_object, arg1_object)
Destructures Object values and transfers them into the .v instance fields of each Vercengen component.
- Method of: ve.Component
- Overrides:
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_object |
Object
|
The Vercengen object to transfer to. |
arg1_object |
Object
|
The other object to transfer from. |