How can i add my HTML tags with headings

web
mobile

Topic: How can i add my HTML tags with headings

rajat7707 asked 2 months 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 2 months ago

Hi,

you have to use quotes to do this.

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

Best,
Piotr


rajat7707 commented 2 months 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.
Status

Resolved

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: React
  • MDB Version: 4.25.0
  • Device: Laptop
  • Browser: Chrome
  • OS: Window 10
  • Provided sample code: No
  • Provided link: No
Tags
Related topics