angular-tag-cloud-module icon indicating copy to clipboard operation
angular-tag-cloud-module copied to clipboard

let cloud elements specify html content

Open d-koppenhagen opened this issue 7 years ago • 3 comments

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>

d-koppenhagen avatar Mar 06 '17 07:03 d-koppenhagen

I'm guessing since this is an enhancement that currently an id can't be set for each tag?

map72 avatar Nov 10 '17 22:11 map72

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

ToonBo avatar Jan 25 '22 18:01 ToonBo

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.

d-koppenhagen avatar Jan 26 '22 20:01 d-koppenhagen