Giter Site home page Giter Site logo

tipaperfold's Introduction

TiPaperFold Module for iOS

Titanium Mobile module for PaperFold for iOS.

INSTALL MODULE

  1. Run build.py which creates your distribution
  2. Copy jp.msmc.tipaperfold-0.1.zip into your app project of root directory
  3. Build the project

REGISTER MODULE

Register your module with your application by editing tiapp.xml and adding your module. Example:

<modules>
	<module version="0.1">jp.msmc.tipaperfold</module>
</modules>

When you run your project, the compiler will know automatically compile in your module dependencies and copy appropriate image assets into the application.

USING MODULE

To use your module in code, you will need to require it.

For example,

var module = require('jp.msmc.tipaperfold');
var window = Ti.UI.createWindow();

var leftView = Ti.UI.createView({
	width:100,
	backgroundColor:'red'
});

var centerView = Ti.UI.createView({
	backgroundColor:'yellow'
});

var rightView = Ti.UI.createView({
	width:300,
	backgroundColor:'green'
})

var paperfoldView = module.createPaperFoldView({
	left:0,
	top:0,
	leftView:leftView,
	centerView:centerView,
	rightView:{
		view:rightView,
		foldCount:3,
		pullFactor:0.9
	}
});

window.add(paperfoldView);
window.open();

The module has createPaperView method. Call the method with an object which has properties leftView,centerView,rightView. leftView and centerView must be an instance of view. rightView must be an object which has properties view,foldCount(option),pullFactor(option).å

LICENSE

MIT License

tipaperfold's People

Contributors

atsusy avatar sophrinix avatar

Watchers

william avatar James Cloos 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.