Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


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.)


Kamila Pieńkowska 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

  • ForumUser: 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