jQCloud icon indicating copy to clipboard operation
jQCloud copied to clipboard

Passing in <ul> of <li>tags</li>

Open rickydazla opened this issue 12 years ago • 3 comments

These are truly beautiful clouds! I was wondering whether you have ever thought about somehow applying this function to an unordered list of tags (ideally where the number of times a tag is repeated would determine its relative weight)? I think this would make them truly useful clouds too..

rickydazla avatar Nov 21 '11 03:11 rickydazla

This is a really good idea. Alternatively, one could pass a html list with unique values, specifying the relative weight of each <li> in a data-weight attribute. Or even omit that, if one assigns weight classes manually.

lucaong avatar Nov 21 '11 09:11 lucaong

@TheDuke - I'm thinking about usages for this when I mention using the number of times a tag is repeated. If your blog or ecommerce software can loop through and print all of the tags related to an article, product or whatever into a list... plugin your script and BINGO! Yo've got a tag cloud for all of your blog articles' tags or all of your online store's products' tags. This would be AMAZING!

In my case I wouldn't be able to manually assign the data-weight attribute as I don't necessarily even know (that is, remember!) what all of the tags are.

rickydazla avatar Nov 21 '11 20:11 rickydazla

I would like to see the wrapping tag element being configurable. This would allow for generation of spans or lists as wished. Also, this would allow to apply the TinySort plugin within the afterCloudRender callback once the cloud has finished rendering. Passing another configuration parameter for the desired tag should be pretty easy and fast implemented.

What do you think?

itbra avatar Mar 08 '14 15:03 itbra