Select multiple - check all

In a multiple select, is there a way to add a “Select All” button or something?

Hi , try this solution : Ion-select with "select all" option

Thanks. While this seems like a nice solution, it creates weird cases, like shown there.

I was wondering more if there is a way to add a button like the cancel and ok buttons