question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HTML in the text field?

See original GitHub issue

Thanks very much for this component!

I would like to add font-icons for different levels, but the HTML tags show as values. Is there a way around this? The code is currently doing something like this:

new TreeviewItem({text: '<i class="fa fa-cog"></i> ' + subTree.text, value: subTree.value, collapsed: true, children: children});

Is there a templating mechanism for each item, by any chance?

Thanks again, -dqj

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
leovo2708commented, May 5, 2017

@vanchisel I added more functions in this component but maybe my demo didn’t show up these. I will try to update my demo in next time.

1reaction
queejiecommented, May 4, 2017

@vanchisel In the absence of help here I’ve switched over to using angular2-tree. That module has extensive templating that allows for complex node displays.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML Forms
The <form> element is a container for different types of input elements, such as: text fields, checkboxes, radio buttons, submit buttons, etc.
Read more >
<input type="text"> - HTML: HyperText Markup Language | MDN
<input> elements of type text create basic, single-line inputs. You should use them anywhere you want the user to enter a single-line value...
Read more >
How to Make an HTML Text Box [Examples]
HTML text box input refers to a single-line text field in a form. You can create one with an input element with a...
Read more >
HTML - Text Fields
A text field is placed on a web page using the <input> tag, with the type attribute set with a value of "text"....
Read more >
HTML Text Input
To create an HTML text input field, you use the HTML <input> tag. You add type="text" in order to make it a text...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found