GithubHelp home page GithubHelp logo

miguelramosfdz / navcontrolalloy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from n3wc/navcontrolalloy

0.0 2.0 0.0 5.2 MB

Navigation Controller for Appcelerator Titanium Alloy

License: Other

navcontrolalloy's Introduction

Cross platform (ios,android) navigation controller for Appcelerator Titanium Alloy 3.2.0.GA
(updated to accomodate Ti.UI.iOS.createNavigationWindow)
1/15/14 - made the commonjs implementation into an alloy widget.

add the following to your config.json

"dependencies": {
        "com.n3wc.navcontrolleralloy": "1.0"
    }

then to create a new nav controller:
var NavigationController = Alloy.createWidget("com.n3wc.navcontrolleralloy",{logging:true});
Alloy.Globals.navcontroller = NavigationController.navController;

use it to open a new window:
var testwin = Alloy.createController('TestWindow').getView();
Alloy.Globals.navcontroller.open(testwin);


methods:
//open a new window
open(/*Ti.UI.Window*/windowToOpen,/*bool*/HideNavBar);

//close current window
close();

//go back to the initial window of the NavigationController
home();

//go back to the initial window of the NavigationController then open a new window
openFromHome(/*Ti.UI.Window*/windowToOpen,/*bool*/HideNavBar);

project forked from https://github.com/vuinguyen/NavControlAlloy
Made it a widget and updated it to support 3.2.0.GA & changes for Ti.UI.iOS.createNavigationWindow
Extended open method to support suppressing default navigation bar as well as added a close method to dispose of current window in the stack




Original project was a derivative of the Cross-Platform NavigationController written by
Kevin Whinnery and modified by Matthew Lanham. 
https://github.com/kwhinnery/
https://github.com/appcelerator-developer-relations/Forging-Titanium/tree/master/ep-002
https://github.com/swanify/Titanium-Navigation-Controller


navcontrolalloy's People

Contributors

n3wc avatar vuinguyen avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.