Dave Keane
Dave Keane

Reputation: 737

Custom elements inside ion-select-option Ionic 4

<ion-select-option *ngFor="let make of makes" [value]="make?.code">
  {{make?.name}}<span class="change-stuff">example</span>
</ion-select-option>

I want to be able to have a span or div with some css inside the ion-select-option is this possible? For example the text example I might want to have a green background or some other custom style

Upvotes: 2

Views: 321

Answers (1)

Pizzicato
Pizzicato

Reputation: 1621

I'm afraid this cannot be done, for now. Here you can check a GitHub issue in which someone asks exactly for that functionality.

It seems that it will be included in Ionic 6.

Upvotes: 0

Related Questions