Multiple select - Override button handlers


#1

Hello. I’m trying to override the behaviour of OK button on a multiple select component passing the [selectOptions]. The title and subtitle get overriden, but the buttons and the enableBackdropDismiss settings are ignored.
Anyone can help? Thanks in advance.

this.selectOptions = {
			title: 'Pizza Toppings',
			subTitle: 'Select your toppings',
			buttons: [
				{
					text: 'Cancel',
					role: 'cancel',
					handler: () => {
						console.log('Cancel clicked');
					}
				},
				{
					text: 'Buy',
					handler: () => {
						console.log('Buy clicked');
					}
				}
			],
			enableBackdropDismiss:true
		};

#2

What do you want to do?
I solved my problem with ionChange, there is also option ionSelect maybe we can find some solution for your problem.