I need to create the multiple checkbox select box that have grouping label inside the box.
Example
-Appetizer:
.Salad
.etc
-Main Course:
.Steak
.etc
-Desert:
.Ice Cream
.etc
This is my code:
<ion-select [(ngModel)]="food" multiple="true">
<ion-label>Toppings</ion-label> <!-- I want to create group label in here -->
<ion-option>Bacon</ion-option>
<ion-option>Black Olives</ion-option>
<ion-option>Extra Cheese</ion-option>
<ion-option>Mushrooms</ion-option>
<ion-option>Pepperoni</ion-option>
<ion-option>Sausage</ion-option>
</ion-select>
How to create the grouping label inside the ion-select? Thanks…
I cannot believe, than one cannot create groups. I find cool the design of ion-select. If one programms a normal Select (for groups) and ion-select for others, would it be not strange/weird? Is there a way to introduce some special class to a ion-option and then using CSS remove/change the ion-option properties (for example: to hide the radio button, to change the size of the option) in order to customize the ion-select?