Skip to content

mgerlach-klick/cordova-android-listview-alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-android-listview-alert

A cordova plugin that supports alerts with a title and a listview

Installation

cordova plugin add https://github.com/mgerlach-klick/cordova-android-listview-alert

Usage

var infusionlist = [
	"Add Infusion Entry",
	"Snooze for 15 Minutes",
	"Snooze for 1 Hour",
	"Dismiss"
];

ListViewAlert.show(
	"Infusion Reminder:\nIt's time to take your infusion",
	thelist,
	function(selection) {
		return alert("You selected " + selection);
	}
);

Notes

  • Title is two lines only and not too long
  • The returned array indexes start with 1, not 0

About

A cordova plugin that supports alerts with a title and a listview

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published