HTML in the text field?
See original GitHub issueThanks 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:
- Created 6 years ago
- Reactions:1
- Comments:10 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
@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.