Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49313

Ion-select custom item

$
0
0

We use IonSelect (ion-select: Select One or Multiple Value Boxes or Placeholders) and would love to customize the IonSelectOption item content. But when we place any extra html/components inside the IonSelectOption, nothing gets rendered in the item except for simple text:

<IonSelectOption
       className='da-select-item' 
       key={item[valueExpr]} 
       value={item[valueExpr]}
>
   <span className='da-select-item-text'>
      {item[displayExpr]}
   </span>
</IonSelectOption>

The span never gets rendered, nor any other html we try to put into the IonSelectOption component. Anyone knows how to render custom html inside the IonSelectOption?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49313

Trending Articles