From e2b97a012c50376b1f01ac75ceac3145cff17da0 Mon Sep 17 00:00:00 2001 From: PArch Date: Wed, 6 Jan 2016 20:54:46 +0100 Subject: [PATCH 1/3] Update ionActionSheet.html Add navButton --- components/ionActionSheet/ionActionSheet.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/ionActionSheet/ionActionSheet.html b/components/ionActionSheet/ionActionSheet.html index 52000d1..6c476eb 100644 --- a/components/ionActionSheet/ionActionSheet.html +++ b/components/ionActionSheet/ionActionSheet.html @@ -2,6 +2,11 @@
+
+ {{#each navButtons}} + + {{/each}} +
{{#if titleText}}
From 0950dadc9ded878d3e3b902a65093caaff876252 Mon Sep 17 00:00:00 2001 From: PArch Date: Wed, 6 Jan 2016 20:57:20 +0100 Subject: [PATCH 2/3] Update ionActionSheet.js add navButton --- components/ionActionSheet/ionActionSheet.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/components/ionActionSheet/ionActionSheet.js b/components/ionActionSheet/ionActionSheet.js index e38ee5b..29b5e4a 100644 --- a/components/ionActionSheet/ionActionSheet.js +++ b/components/ionActionSheet/ionActionSheet.js @@ -12,7 +12,14 @@ IonActionSheet = { index: i }); } - + var navButtons = []; + for (var i = 0; i < options.buttons.length; i++) { + var button = options.buttons[i]; + navButtons.push({ + text: button.text, + index: i + }); + } var data = { titleText: options.titleText, destructiveText: options.destructiveText, @@ -100,7 +107,10 @@ Template.ionActionSheet.events({ var index = $(event.target).data('index'); IonActionSheet.buttonClicked(index); }, - + 'click [data-index]': function (event, template) { + var index = $(event.target).data('index'); + IonActionSheet.navButtonClicked(index); + }, 'click [data-destructive]': function (event, template) { IonActionSheet.destructiveButtonClicked(); }, From 783964f480806c02bb29e782ef8bf4dc698078c1 Mon Sep 17 00:00:00 2001 From: PArch Date: Wed, 6 Jan 2016 22:39:25 +0100 Subject: [PATCH 3/3] Update ionActionSheet.js Miss options.navButtons --- components/ionActionSheet/ionActionSheet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ionActionSheet/ionActionSheet.js b/components/ionActionSheet/ionActionSheet.js index 29b5e4a..cec627f 100644 --- a/components/ionActionSheet/ionActionSheet.js +++ b/components/ionActionSheet/ionActionSheet.js @@ -13,8 +13,8 @@ IonActionSheet = { }); } var navButtons = []; - for (var i = 0; i < options.buttons.length; i++) { - var button = options.buttons[i]; + for (var i = 0; i < options.navButtons.length; i++) { + var button = options.navButtons[i]; navButtons.push({ text: button.text, index: i