Skip to content

abada/eg.abada.passcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ti.Passcode

eg.abada.passcode

An Alloy titanium widget passcode implementation.

image

Installation

Via Gittio (Stable)

gittio install eg.abada.passcode

Via Github

Download the latest release, and add in your config.json, under dependencies:

"dependencies": {
    "eg.abada.passcode": "*"
}

Usage in Alloy Views

<Widget id="PassCodeWidget" src="eg.abada.passcode" code="1234" />
// Set the success callback
$.PassCodeWidget.setOnSuccess(function() {
	alert("Passed!")
});

Usage in Controllers

var $pc = Alloy.createWidget('eg.abada.passcode', { code: "1234" });

$pc.setOnSuccess(function() {
 	// Do the next private things
});
$window.add($pc.getView());

setOnSuccess(cb: Function)

Define the callback to invoke when the user inserts the correct code.

About

An Alloy titanium widget passcode implementation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published