Is there a way to render HTML inside Select secondary text?


Topic: Is there a way to render HTML inside Select secondary text?

Jordan Mack pro asked 2 years ago

Expected behavior

I am looking to render an HTML "a" tag inside of mdb Select secondary text:

let op = new Option("Budget 123", "143");
op.setAttribute("data-mdb-secondary-text", "<a href="#">Update Budget</a>");
op.disabled = true;

Actual behavior

html is parsed as string

Resources (screenshots, code snippets etc.)


kpienkowska staff answered 2 years ago

We do not support that feature.

If you need to custom solution you can use input with dropdown and put whatever you want there. But that is not a pre-made alternative.


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 6.0.0
  • Device: Intel x86
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No