Topic: Secondary text as HTML in select (with solution)
gianlucagiacometti pro premium priority asked 2 years ago
Expected behavior
The secondary text in select should accept html code
Actual behavior
The secondary text in select is plain text
Resources (screenshots, code snippets etc.)
You just need to change in pro/select/templates.js:
< function getSecondaryTextTemplate(text) {
< const span = element('span');
< Manipulator.addClass(span, 'select-option-secondary-text');
< const textContent = document.createTextNode(text);
< span.appendChild(textContent);
< return span;
< }
with:
> function getSecondaryTextTemplate(text) {
> const span = element('span');
> Manipulator.addClass(span, 'select-option-secondary-text');
> span.innerHTML = text;
> return span;
> }
kpienkowska staff answered 2 years ago
We will discuss this within our team and may introduce this in our package in the future.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 5.0.0
- Device: All
- Browser: All
- OS: All
- Provided sample code: No
- Provided link: No