add Method

Adds an object to the favorites.

add(node, infoText, [iconURL]);

 

Parameter

Description

node

The node to add to the favorites

infoText

The information to display alongside the favorite item in the favorites page

iconURL

Optional, default: undefined

A URL for an icon to display alongside the favorite item in the favorites page