Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Multiple select - Override button handlers

$
0
0

@diego78 wrote:

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
		};

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles