Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

let cloud elements specify html content #9

Open
d-koppenhagen opened this issue Mar 6, 2017 · 3 comments
Open

let cloud elements specify html content #9

d-koppenhagen opened this issue Mar 6, 2017 · 3 comments

Comments

@d-koppenhagen
Copy link
Owner

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>
@map72
Copy link

map72 commented Nov 10, 2017

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

@ToonBo
Copy link

ToonBo commented Jan 25, 2022

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

@d-koppenhagen
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants