w2sidebar.update

Quick refresh of a node if possible
update(id, options)
id string, id of the sidebar node
node object, node object
Returns object of items it could not apply. If object is empty, all was possible to apply.

Description

The update method is similar to .set(), but much faster. If it can find and update the node (both in nodes array and on the screen) without fully refreshing it (and its subnode), it will do so. It will retrun options that it could not apply:
The id argument is the id of the node and options is an object that contains new node properties. Below is the list of properties you can quickly update: If you defined the sidebar in the following way: You can update sidebar node:

See Also

set() - which tries to update node by calling update() method and if it fails, it will fully update the node (just the node, not sidebar).

User Comments

comments powered by Disqus