Skip to content

Commit

Permalink
ActionSheet demo test
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyverbruggen@gmail.com committed Mar 14, 2015
1 parent 6710f08 commit ede8b64
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<param name="URL_SCHEME" value="xpluginsdemo" />
</gap:plugin>
<!--<gap:plugin name="nl.x-services.plugins.wkwebview" />-->
<gap:plugin name="nl.x-services.plugins.actionsheet" />
<gap:plugin name="nl.x-services.plugins.actionsheet" version="1.1.4" />
<gap:plugin name="nl.x-services.plugins.googleplus" version="1.0.8" source="plugins.cordova.io"/>
<gap:plugin name="com.telerik.plugins.nativepagetransitions" source="plugins.cordova.io" />
<gap:plugin name="com.telerik.plugins.wkwebview" version="0.3.5" source="plugins.cordova.io" />
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ <h1>Plugins Demo</h1>
<button onclick="changeWebViewColor()">Make webview background green (iOS)</button>
<button onclick="testAudioPlayer(false)">Test Cordova audio player, 6 MB</button>
<button onclick="testAudioPlayer(true)">Test Cordova audio player, 73 MB</button>
<!--<button onclick="window.open('http://www.x-services.nl/mindfullness-test-large.mp3', '_self')">Test native audio player (webview)</button>-->
<a href="http://www.x-services.nl/mindfullness-test.mp3">Test native audio player (link)</a>
<input id="test" name="test" type="text" width="10" placeholder="test"/>
</p>
<p>
Expand Down Expand Up @@ -104,7 +102,9 @@ <h1>Plugins Demo</h1>

window.onerror = function(a,b,c) {
alert(a + "; " + b + "; " + c);
}
};

alert('actionsheet theme, 1: ' + window.plugins.actionsheet.ANDROID_THEMES.THEME_HOLO_LIGHT);
</script>
</body>
</html>
2 changes: 2 additions & 0 deletions js/actionsheet-plugin-demo.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
function actionsheetDemo() {
alert('actionsheet theme: ' + window.plugins.actionsheet.ANDROID_THEMES.THEME_HOLO_LIGHT);
var options = {
'title': 'What do you want with this image?',
'androidTheme': window.plugins.actionsheet.ANDROID_THEMES.THEME_HOLO_LIGHT,
'buttonLabels': ['Share via Facebook', 'Share via Twitter'],
'androidEnableCancelButton' : true, // default false
'winphoneEnableCancelButton' : true, // default false
Expand Down

0 comments on commit ede8b64

Please sign in to comment.