Ionic2 - checkbox multiple=false through code


#1

How can I set a dynamic checkbox to only one out of multiple options?
I tried adding multiple : false into the constructor on top of the linked example but it fails. I took it from the ionic2 api.

Multiple options works as shown here.

How do I limit to multiple=false programmatically?

Argument of type '{ subTitle: string; message: string; multiple: boolean; inputs: { name: string; label: string; ty...' is not assignable to parameter of type 'AlertOptions'. Object literal may only specify known properties, and 'multiple' does not exist in type 'AlertOptions’.