angular-tag-cloud-module
angular-tag-cloud-module copied to clipboard
let cloud elements specify html content
The cloud should accepts inputs with a specified html
-object. In that case the link
-object will be ignored (a you can set it in the given object for html
).
For Example:
data = [
{
text: 'My Text for this item',
weight: 10,
link: 'http://google.de'
html: {
element: 'span',
class: 'my-class my-class-2',
id: 'custom-el-html',
attr1: null,
attr2: 'myValue',
// ...
}
},
// ...
]
should produce something like this:
<a href="http://google.de">
<span class="my-class my-class-2"
id="custom-el-html"
attr1
attr2="myValue">
My Text for this item
</span>
</a>
I'm guessing since this is an enhancement that currently an id can't be set for each tag?
This enhancement has never been implemented? How would I be able to add a class specific for certain tags and a 'filtered' class for tags after they have been clicked? thx
You are right, currently this isn't implemented. There is currently no way to achieve your goal. Feel free to contribute- I will be happy to review.
Unfortunately I won't be able to implement it by myself the next time.