GithubHelp home page GithubHelp logo

mpociot / tiadvancedsplitwindow Goto Github PK

View Code? Open in Web Editor NEW
18.0 6.0 2.0 629 KB

Appcelerator titanium module to make use of the MGSplitView functions, not used by the Titanium SDK

License: Other

JavaScript 12.61% Objective-C 39.21% Python 48.18%

tiadvancedsplitwindow's Introduction

TiAdvancedSplitWindow

Description

Appcelerator titanium module to make use of the MGSplitView functions, not used by the Titanium SDK

Accessing the TiStackedViewController Module

To access this module from JavaScript, do the following:

require('de.marcelpociot.splitwindow');

The TiStackedViewController variable is a reference to the Module object. As this module extends the functionality of the Ti.UI.iPad.createSplitWindow there is no need to keep a reference of the module. Simply require it.

Reference

The Ti.UI.iPad.createSplitWindow object gets extended by the following properties:

vertical

Type: Boolean Default: true

Wether to use a vertical divider (default) or a horizontal divider.

splitPosition

Type: Float Default: 320

The position (master view width) where to split the two views.

allowsDraggingDivider

Type: Boolean Default: false

Wether or not you want to be able to drag the view divider.

Functions

setDetailWindow( window )

Attribute: WindowProxy

Dynamically replaces the detail window.

setMasterWindow( window )

Attribute: WindowProxy

Dynamically replaces the master window.

Author

Marcel Pociot

Twitter: @marcelpociot

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.