render
static
void
render
(
id
,
items
,
[func]
)
Renders TagCloud
- Parameters:
-
id <String>the id of the DOM container -
items <Array>an Array in the form "WORD:WEIGHT" (sample:["Internet:11", "Facebook:42", "Twitter:2", "Google:40"]) -
[func] <Function>an optional callback fired on the "onclick" event on each tag. As each tag is placed in an anchor, the anchor itself will be passed on the callback.
- Returns:
void