vue/base

runSync(func[, scope])

Runs the function in syncronous mode.

Warning

Avoid using this at all cost!

Note

This will not flush the Vue internal queue, thus some action may actually not be syncronous because they are already queued (and we have not means to flush it manually).

Arguments:
  • func (Function) – The function to be run.
  • scopy (Object) – The scope (this) to run the function on.
syncVuewFrags(vueInstances)
Moves a list of (single node) vue instance behind the fragment start node - if any.
Arguments:
  • vueInstances (Array|Object) – An collection of vue instances (usually obtained from $refs).
compProxy(base, keys)

Generates a mixin of computed properties that delegate their access to a object contained withing the instance.

Note

Setting value that were previously unset is done in a manner that support their detection within the Vue framework.

Arguments:
  • base (String) – The name of the object that the access should be delegated to.
  • keys (Array[String]) – The name of the properties to be delegated to the objecet.
  • keysFunc (Array[String]) – The name of the properties to be delegated to the objecet, if these are functions they will be called for generation of dynamic properties.
Returns:

The object in Vue mixin style.

Return type:

Object (Vue mixin)

update(target, source[, clean])

Recursively updates a target with data from source, with Vue data interactivity.

Arguments:
  • Object (source) – The object to be updated.
  • Object – The object with the update template.
  • Bool (clean) – Clean all key from the target that are not in source. Essentially a Vue aware deep copy.
mixin itemsAcc)()

Provides access to the instances that correspond with the configs with the same key.

get(key)

Retrieves a MenuItem() for the corresponding entry in items.

Arguments:
  • key (String) – The key of entry.
Returns:

The entry for the key.

Return type:

MenuItem

set(key, config)

Sets the config for for a given key. This is the only valid way to create a new MenuEntry().

Arguments:
  • key (String) – The key of the entry.
del(key)

Removes an item for items. This is the only valid way to delete a MenuEntry().

Arguments:
  • key (String) – The key of the entry.
read-onlylength
Type:Number

The number of entries in items.