Skip to content

About

An Alloy titanium widget passcode implementation.

Resources

Stars

3 stars

Watchers

2 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages