I’m showing an alert (AlertController) in Ionic2 with checkboxes. Each checkbox represent a subcategory, except the first one that is All Subcategories. I want that when I check the first option, all others lose the checked flag, and, on the other hand, if I check another option the first one loses the checked flag.
From what I see in the docs http://ionicframework.com/docs/v2/components/#alert-checkbox there’s nothing like that.
The object with the alert information is an AlertOptions that has an inputs property that is an array of AlertInputOptions. Both can be imported from ionic-angular. The AlertInputOptions interface is:
interface AlertInputOptions {
type?: string;
name?: string;
placeholder?: string;
value?: string;
label?: string;
checked?: boolean;
disabled?: boolean;
id?: string;
}
I don’t see any property to handle that, like an onChange: (checked: boolean) => void event handler function, an Observable or something like that. I also don’t see it in the AlertController class nor in the AlertOptions interface.
From what I see, I think that it isn’t possible yet, but I want to know if this will be implemented and when (at least vaguely), because otherwise I can’t implement the functionality that I want.
Thanks in advance.



