jsbeans

jsbeans  1.0.0

jsbeans > jsbeans > jsbeans.TagCloud
Search:
 
Filters

static Class jsbeans.TagCloud

Pure javascript implementation of Tag cloud

Methods

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


Copyright © 2016 Francesco Mele. All rights reserved.