Topic: How can i add my HTML tags with headings
rajat7707 free asked 4 years ago
Expected behavior Want To Add Sorting Icon :- const columns = [ { label: Customer Tag , field: 'Customer_Tag', sort: 'asc', width: 150, attributes: {className :"fas fa-sort"} }, { label: 'Discount Type', field: 'Discount_Type', sort: 'asc', width: 270 }, { label: 'Discount Condition', field: 'Discount_Condition', sort: 'asc', width: 200 }, { label: 'Enable/Disable', field: 'status', sort: 'disabled', width: 100 }, { label: 'Action', field: 'action', sort: 'disabled', width: 100 }, ];
Actual behavior
Not Working
Resources (screenshots, code snippets etc.)
Piotr Glejzer staff answered 4 years ago
Hi,
you have to use quotes to do this.
http://i.imgur.com/OP5pZPB.png
Best,
Piotr
rajat7707 free commented 4 years ago
I tried it but sorry it did not work for me so i use HTML Entities for It. Like This :- { label: Customer Tag ⇵, field: 'tag_name', sort: 'asc', width: 270 },
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Free
- Premium support: No
- Technology: MDB React
- MDB Version: 4.25.0
- Device: Laptop
- Browser: Chrome
- OS: Window 10
- Provided sample code: No
- Provided link: No