How can i add my HTML tags with headings


Topic: How can i add my HTML tags with headings

rajat7707 asked 5 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 5 years ago

Hi,

you have to use quotes to do this.

http://i.imgur.com/OP5pZPB.png

Best,
Piotr


rajat7707 commented 5 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 },


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue
  • User: 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
Tags