GithubHelp home page GithubHelp logo

nappslidemenu's Introduction

NappSlideMenu Module

Description

The NappSlideMenu module extends the Appcelerator Titanium Mobile framework. The module is licensed under the MIT license.

Thanks to Tom Adriaenssen for his great work with ViewDeck https://github.com/Inferis/ViewDeck

NappSlideMenu NappSlideMenuleft

Get the module

Find the newest version in the dist folder

Referencing the module in your Titanium Mobile application

Simply add the following lines to your tiapp.xml file:

<modules>
    <module platform="iphone">dk.napp.slidemenu</module> 
</modules>

Reference

For more detailed code examples take a look into the example app

centerWindow, leftWindow, rightWindow

NappSlideMenu does not require you to use the 3 windows. You can also use either the combo of center/left or center/right for your desired needs.

leftLedge, rightLedge (optinal)

Ledge is used to define the maximum amount the view can be opened. Default is 65 if no number is defined.

var mainWindow = NappSlideMenu.createSlideMenuWindow({
	centerWindow:navController,
	leftWindow:winLeft,
	rightWindow:winRight,
	statusBarStyle: NappSlideMenu.STATUSBAR_WHITE,
	leftLedge:100
});

API Properties

setCenterWindow, setLeftWindow, setRightWindow

A method that allow change of the centerWindow. You can either use a window or a navigation group.

var newWin = Ti.UI.createWindow({
	backgroundColor: "#FF0000"
};
mainWindow.setCenterWindow(newWin);	

setLeftLedge, setRightLedge

Update the ledge numbers with these methods.

mainWindow.setLeftLedge(120);

setCenterhiddenInteractivity

Set different types of interactivity for the centerWindow when either leftWindow or rightWindow is open.

mainWindow.setCenterhiddenInteractivity("TouchEnabled");
input (string) Description
TouchEnabled the centerWindow stays interactive
TouchDisabled the centerWindow will become nonresponsive to useractions
TouchDisabledWithTapToClose the centerWindow will become nonresponsive to useractions, but will allow the user to tap it so that it closes
TouchDisabledWithTapToCloseBouncing same as TouchDisabledWithTapToClose, but closes the center view bouncing

setPanningMode

Set the panning mode (drag animation).

mainWindow.setPanningMode("NoPanning");
input (string) Description
NoPanning No panning allowed
FullViewPanning Default behavior: Touch anywhere in the center view to drag the center view around
NavigationBarPanning Panning only occurs when you start touching in the navigation bar (when the center controller is a UINavigationController with a visible navigation bar). Otherwise it will behave as IIViewDeckNoPanning.
NavigationBarOrOpenCenterPanning Panning occurs when you start touching the navigation bar if the centerWindow is visible. If the left or right controller is open, pannning occurs anywhere on the center controller, not just the navbar.

setParallaxAmount

Parallax is the amount of parallax between the centerWindow and a sideWindow animation. Set a value between 0 and 1. Its a very cool effect. Play with the slider in the example code to see the effect!

mainWindow.setParallaxAmount(0.3);

setOpenViewAnimationDuration

Set the duration of the animation when leftWindow or rightWindow is opened. It takes a float as argument

mainWindow.setOpenViewAnimationDuration(0.3);

setCloseViewAnimationDuration

Set the duration of the animation when leftWindow or rightWindow is closed. It takes a float as argument

mainWindow.setCloseViewAnimationDuration(0.3);

StatusBarStyle

Use this property to set the statusBar style. You will need to add the following to tiapp.xml in order to make this work:

<ios>
    <plist>
	    <dict>
    	    <key>UIViewControllerBasedStatusBarAppearance</key>
            <false/>
        </dict>
    </plist>
</ios>
input (constant) Description
STATUSBAR_BLACK The statusbar icons and text will be black
STATUSBAR_WHITE The statusbar icons and text will be white
mainWindow.setStatusBarStyle(NappSlideMenu.STATUSBAR_WHITE);

API Methods

toggleLeftView, toggleRightView

toggleLeftView() and toggleRightView() are used to toggle each visibility of either the left or right window.

toggleOpenView

toggleOpenView() toggles the open window. A method to come from LeftWindow to RightWindow or opposite.

mainWindow.toggleOpenView();

bounceLeftView, bounceRightView, bounceTopView, bounceBottomView

A small animation to show the app user that its possible to interact with the NappSlideMenu.

mainWindow.bounceLeftView();

isAnyViewOpen, isLeftViewOpen, isRightViewOpen

Check if any, left or right window is open. This returns a boolean.

mainWindow.isAnyViewOpen();

Events

viewWillOpen

When leftWindow or rightWindow will be opened, this event is fired with the view event parameter.

Here, you can block centerWindow, for example.

mainWindow.addEventListener("viewWillOpen", function(e) {
	this.setCenterhiddenInteractivity("TouchDisabledWithTapToClose");
});

viewDidOpen

When the leftWindow or rightWindow did open. The animation has completed.

viewWillClose

When the leftWindow or rightWindow will be closed, this event is fired with the view event parameter.

Here, you can blur a searchBar in leftWindow, for example.

mainWindow.addEventListener("viewWillClose", function(e) {
	this.setCenterhiddenInteractivity("TouchEnabled");
});

viewDidClose

When the leftWindow or rightWindow did open. The animation has completed.

didChangeOffset

Change of offset.

centerViewDidShow

When an animation from the one of the side windows to the CenterWindow completes.

Alloy example

Controller (index.js)

var NappSlideMenu = require('dk.napp.slidemenu');

var window = NappSlideMenu.createSlideMenuWindow({
	centerWindow:$.navWindow,
	leftWindow:$.leftWindow,
	rightWindow:$.rightWindow,
	leftLedge:80
});

$.leftTable.addEventListener("click", function(e){
	// implement logic
});

function openLeft(){
	window.toggleLeftView();
}
function openRight(){
	window.toggleRightView();
}

window.open(); //open the app

View (index.xml)

<Alloy>
    <Window id="leftWindow">
        <TableView id="leftTable">
            <TableViewRow>
                <Label text="hello left window"></Label>
            </TableViewRow>
        </TableView>
    </Window>
    
    <NavigationWindow id="navWindow">
     	<Window id="win">
			<LeftNavButton>
				<Button title="Left" onClick="openLeft"></Button>
			</LeftNavButton>
			<RightNavButton>
				<Button title="Right" onClick="openRight"></Button>
			</RightNavButton>
     	    <TableView >
	            <TableViewRow>
	                <Label text="hello center window"></Label>
	            </TableViewRow>
        	</TableView>
     	</Window>   
    </NavigationWindow>
    
    <Window id="rightWindow">
        <TableView id="rightTable">
            <TableViewRow>
                <Label text="hello right window"></Label>
            </TableViewRow>
        </TableView>
    </Window>
</Alloy>

Changelog

v1.4.3

  • Added support for 64-bit.

v1.4.2

  • iOS7 statusbar updated again. Added statusBarStyle to help iOS7 and the LIGHT CONTENT bug. #22
  • Added closeOpenView(). Thanks to @chrisnharvey. #19
  • Added isLeftViewOpen() and isRightViewOpen()
  • Added ability to create the SlideMenu with centerWindow only.
  • Added ability to dynamically remove the left or right menu by setting leftWindow or rightWindow as null. Thanks to @nartex

v1.4.1

  • iOS7 statusbar update

v1.4.0

  • iOS7 support
  • Titanium minimum SDK changed to 3.1.3.GA
  • iOS min-sdk is now 5.0
  • Known issue:
    • Translucent navigationBar contains a visual bug. You should disable it.

v1.3.2

  • Minor bugfix in centerWindow if use nav controller.
  • Downgraded to ViewDeck 2.2.11. Thanks to @mantonaci

v1.3.1

  • Fix memory leak in ViewDeck when closing the NappSlideMenu. Thanks to @Michele

v1.3

  • Major bugfix/improvement: NavigationBarPanning is fully working now. You gain deeper control over which elements should react to the swipe gesture.
  • Updated ViewDeck to newest version (2.3.1).
  • Added setOpenViewAnimationDuration() and setCloseViewAnimationDuration().
  • Added isAnyViewOpen().

v1.2.1

  • Updated ViewDeck to newest version (2.2.8).
  • Added event: viewDidOpen, viewDidClose, didChangeOffset and centerViewDidShow.

v1.2

  • Added viewWillClose and viewWillOpen eventlisteners.

v1.1

  • Added setCenterhiddenInteractivity().
  • Added setPanningMode().

v1.0

  • Updated ViewDeck to newest version (2.2.4).
  • Added setParallaxAmount().
  • Added setLeftWindow() and setRightLedge() setters
  • Added setLeftLedge() and setRightLedge() setters
  • Better example code

v0.6

  • Added setCenterWindow(). Thanks to @rafaelks

v0.5

  • Working module.

v0.4

  • Semi working.

Author

Mads Møller
web: http://www.napp.dk
email: [email protected]
twitter: @nappdev

Contributors

Rafael K. Streit
twitter: @rafaelks

License

Copyright (c) 2010-2013 Mads Møller

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

nappslidemenu's People

Contributors

mantonaci avatar viezel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nappslidemenu's Issues

toggle very slow when complex view will be shown

When the view to show is complex (scrollview as the years calendar on iOS), the toggle takes 3 to 10 sec to begin to slide. The time is spent on CPU.

When the scrollView is cleaned (removing labels, views, …), the nappSlideMenu spend lot of time in CPU to redraw (glide libraries) objects that are no more existing (removed with view.remove(xxx)

Is it possible to Modularize the Windows to be used on NappSlideMenu

I was thinking of instead of having all my code in app.js, for the possibility to use exported / require modules that returns Window for each of centerWindow and leftWindow properties of NappSlideMenu?

I'm trying though I keep getting: message = "window property required"; on slideMenuWindow.open()... wondering if the error is from my end or not?

UPDATE: Sorry it's from my end - working great 👍 (please close issue)

Set CenterWindow as firstResponder of application

If you have a TableView inside CenterWindow and you try go to top touching in iOS status bar, the TableView will no scroll to the top.

It is happening with me. Is it happening with you too?

I think we should set the center ViewController as the firstResponder of application.

SlideMenu does not work with new Titanium.UI.iOS.NavigationWindow

Currently setCenterWindow works only with deprecated Titanium.UI.iPhone.createNavigationGroup (need to access statusBarStyle property).

The documentation says: This class replaces the Titanium.UI.iPhone.NavigationGroup class. However please note that this object is a window and is supposed to be used as a top level container. This can not be added to other windows.

UPDATE : My Bad, it does work! Please close this issue.

iPAD support

Hi Viezel,

This module great for iPhone and I appreciate your work around. Can we use this module when application in landscape mode in iPAD.

Thanks & Regards,
Hemant Solanki

Cannot interact with tableview in sidebar

I am trying to get a simple app up and running and everything worked well except for the fact that I can't seem to be able to interact with anything in the left sidebar. I slightly modified the sample alloy code that was provided in the readme, changing the center view to a NavigationWindow and adding the left table to a container to deal with the translucent menu bar. (It didn't recognize touches before adding it to the container either.) The tableview will not even scroll, not to mention register cell selection.

<Alloy>
    <Window id="leftWindow">
        <View id="leftContainer">
            <TableView id="leftTable">
                <TableViewRow>
                    <Label text="hello left window"></Label>
                </TableViewRow>
            </TableView>
        </View>
    </Window>
    <NavigationWindow id="navWindow">
        <Window id="win">
            <LeftNavButton>
                <Button title="Left" onClick="openLeft"></Button>
            </LeftNavButton>
            <TableView >
                <TableViewRow>
                    <Label text="hello center window"></Label>
                </TableViewRow>
            </TableView>
        </Window>   
    </NavigationWindow>
</Alloy>

Here is what my .js file looks like:

var NappSlideMenu = require('dk.napp.slidemenu');

var mainWindow = NappSlideMenu.createSlideMenuWindow({
    centerWindow:$.navWindow,
    leftWindow:$.leftWindow,
});

$.leftTable.addEventListener("click", function(e){
    // implement logic
    Titanium.API.info("Sidebar Menu item clicked: " + e);
});

mainWindow.addEventListener("viewWillOpen", function(e) {
    this.setCenterhiddenInteractivity("TouchDisabledWithTapToClose");
});

mainWindow.addEventListener("viewWillClose", function(e) {
    this.setCenterhiddenInteractivity("TouchEnabled");
});

function openLeft(){
    mainWindow.toggleLeftView();
}


mainWindow.open(); //open the app

Crash when closing main window object

When you close the window it crashes the app. SDK 3.4.0.GA iOS 8.0

*** Terminating app due to uncaught exception 'NSRangeException', reason: 'Cannot remove an observer <IIViewDeckController 0x7ab6fa00> for the key path "parentViewController" from <IIViewDeckController 0x7ab6fa00> because it is not registered as an observer.'
[ERROR] : *** First throw call stack:
[ERROR] : (
[ERROR] : 0 CoreFoundation 0x0571edf6 exceptionPreprocess + 182
[ERROR] : 1 libobjc.A.dylib 0x052e1a97 objc_exception_throw + 44
[ERROR] : 2 CoreFoundation 0x0571ed1d +[NSException raise:format:] + 141
[ERROR] : 3 Foundation 0x0155f724 -[NSObject(NSKeyValueObserverRegistration) _removeObserver:forProperty:] + 629
[ERROR] : 4 Foundation 0x0155f3ff -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:] + 100
[ERROR] : 5 Skoften v4 0x005dbf4d -[IIViewDeckController cleanup] + 50
[ERROR] : 6 Skoften v4 0x005dc095 -[IIViewDeckController dealloc] + 36
[ERROR] : 7 UIKit 0x02d55aeb -[UIViewController release] + 89
[ERROR] : 8 libobjc.A.dylib 0x052f5eb1 objc_release + 65
[ERROR] : 9 UIKit 0x02d6280c __destroy_helper_block_1166 + 28
[ERROR] : 10 libsystem_sim_blocks.dylib 0x0626e793 _Block_release + 211
[ERROR] : 11 libobjc.A.dylib 0x052f5eb1 objc_release + 65
[ERROR] : 12 libobjc.A.dylib 0x052f6d32 _ZN12_GLOBAL__N_119AutoreleasePoolPage3popEPv + 586
[ERROR] : 13 CoreFoundation 0x05600c58 _CFAutoreleasePoolPop + 24
[ERROR] : 14 UIKit 0x02c0042c _wrapRunLoopWithAutoreleasePoolHandler + 59
[ERROR] : 15 CoreFoundation 0x05641fbe __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION
+ 30
[ERROR] : 16 CoreFoundation 0x05641f00 __CFRunLoopDoObservers + 400
[ERROR] : 17 CoreFoundation 0x0563793a __CFRunLoopRun + 1226
[ERROR] : 18 CoreFoundation 0x056371ab CFRunLoopRunSpecific + 443
[ERROR] : 19 CoreFoundation 0x05636fdb CFRunLoopRunInMode + 123
[ERROR] : 20 GraphicsServices 0x065c024f GSEventRunModal + 192
[ERROR] : 21 GraphicsServices 0x065c008c GSEventRun + 104
[ERROR] : 22 UIKit 0x02c04e16 UIApplicationMain + 1526
[ERROR] : 23 Skoften v4 0x00027898 main + 456
[ERROR] : 24 libdyld.dylib 0x06226ac9 start + 1
[ERROR] : )
[ERROR] : libc++abi.dylib: terminating with uncaught exception of type NSException

Is there a way to remove the shadow?

I cant seem to find a way to control shadow. In iOS7 shadows are gone it it is prettier without. Is there a way to show/hide shadow in params? If not could you try exposing it form the original module?

NappSlideMenu + ScrollableView in centerWindow

A quick gist:

var createWindow = new CreateWindow(); // has a scrollableView
slideMenuTabGroup.setCenterWindow(createWindow);
// When createWindow Opens
// The sliding of the ScrollableView does not slide

So what I've done is, when the centerView is set to this window:

slideMenuTabGroup.setPanningMode("NoPanning"); 
//slideMenuTabGroup.setCenterhiddenInteractivity("TouchEnabled");
slideMenuTabGroup.toggleLeftView(); // close left after setting NoPanning (will reopen via a button in that centerWindow)

None seem to work, basically what I'd like to achieve, of the opening of such windows (that require interactivity in the center window) is to disable the swipping of NappSlideMenu, and have the ScrollableView scroll right/left in the centerWindow... would that be possible?

change orientation problem

hi i have a problem with change orientation (on ipad) if i change from portrait to landscape the menu (i have only the right menu)the menu is showed but it is closed (i have to slide to left the center view to click on the buttons on the rightview)

works with 1.2.1

regards
Samuele

Disable touch events when dragging centerWindow

Hello,

I need to disable touch events in centerWindow when user is dragging centerWindow. If I not disable and I have a UITableView in centerWindow, the tableView will fire click event in some cases.

Thanks!

NappSlideMenu.STATUSBAR_WHITE does not work with SDK 3.5.x

When I build the example app (or my own app), NappSlideMenu.STATUSBAR_WHITE has no effect if I use SDK 3.5.0 or 3.5.1. The window title remains black. This is a problem when switching to the required 64-bit.

It works fine with SDK 3.4.1.

Any fix on the horizon?

Error thrown on Android Emulator 2.3.3 and on Android Device 4.2.1

Hi,

On startup of app using this module, an error gets thrown but the app continues to run and the module seems to be working.

Running on Android Emulator 2.3.3 and Android device running 4.2.1 :

On Emulator:
[ERROR]NappDrawer( 848) [2416,2416] ti.modules.titanium.ui.ViewProxy@4053ced0

On Device:
10-29 11:52:37.686: E/NappDrawer(7129): (main) [807,807] ti.modules.titanium.ui.ViewProxy@41588ec0

Accessibility Issues

I am using this great module in my app without problems - I thought.

Now that my app has been released I am having users report that they cannot use the app due to VoiceOver not working for them. These users have visual impairments.

What I discovered from a quick play is that when my app is opened the VoiceOver works fine - until I open a fresh Window that is using the NappSlideMenu. At that point the accessibility features of my app cease working and VoiceOver does nothing. In fact some buttons while in VoiceOver mode become completely useless. With VoiceOver "off" all is well.

Any other developers experienced this? I am wondering if accessibility was tested as part of this module? I know I didn't look at this until now :/

I will play around some more and see what I find, but I thought I would post this and see what others have to say...

focus event on NavigationWindow windwos (with examples)

Hi!

on NavigationWindow you can have a focus/blur listener on opening/closing windows. Nice to have to know if an windows closes "before" the fx is over. There are other reasons as well.

If we add the NavigationWindow into the NappSliderMenu, the focus/blur event listeners don't fire anymore and closing/opening windows. The open/close event listeners works just fin.

Some examples to test:

app.js - NappSliderMenu version
var win = Ti.UI.createWindow({ backgroundColor:'#fff', }); win.addEventListener('focus', function(){ Ti.API.info('focus'); }); win.addEventListener('blur', function(){ Ti.API.info('focus'); }); var navController = Ti.UI.iOS.createNavigationWindow({ window : win, }); var NappSlideMenu = require('dk.napp.slidemenu'); var window = NappSlideMenu.createSlideMenuWindow({ centerWindow: navController, }); window.open();
app.js - default
var win = Ti.UI.createWindow({ backgroundColor:'#fff', }); win.addEventListener('focus', function(){ Ti.API.info('focus'); }); win.addEventListener('blur', function(){ Ti.API.info('focus'); }); var navController = Ti.UI.iOS.createNavigationWindow({ window : win, }); navController.open();

Option for disabling swipe detection

Hi, Awesome module..... thanks!!!

It will be nice if there an option to programmatically disable the swipe detection... for example if I open a window from the main window (navcontrol) you should me able to disable the swipe detection until I close the window and return to the previous one....

Interference with TableView.moving property?

Using Titanium Alloy with SDK 3.5.0.

I integrated this module into my application and suddenly I can't drag and reorder TableView rows in iOS. When I set moving=true, the drag-to-reorder icons appear and I'm able to start dragging a row but after a moving a few pixels it returns to its original position.

I originally had three separate TableViews nested within a ScrollView. I removed the ScrollView and combined the three TableViews into one. Didn't have any luck.

Also, on this screen I have removed the leftView so there is only a center view (no rightView either).

I haven't seen any reports of a similar issue here or on Appcelerator's JIRA, so I'm wondering if there may be anything within this module that can interfere with the reordering of rows.


Tomorrow I'll put together a barebones application and see if I can recreate this. I'll update this thread with the results.

Setting Left Menu width

I cannot find away to control the width of the left menu width , is this issue or i just cannot find it?
but its really great work thanks guys

swipe detection

hi,
if i got something like:
win = NappSlideMenu.createSlideMenuWindow();
win.setPanningMode("NoPanning");
win.setParallaxAmount(0.0);
win.centerWindow = Ti.UI.createWindow();
win.leftWindow = Ti.UI.createWindow();
win.rightWindow = Ti.UI.createWindow();
how can i disable the swipe detection, i want go to left or right with some buttons in center window
thanks

NavBarHidden on the SlideMenuWindow

Is it possible to set navBarHidden for the slideMenuWindow? I want to use this to add the SlideMenuWindow straight to an NavigationWindow without navigation.

Ios7 Updates

Hey,

i am using this module( love it :) ) and now switching to ios7.

I've notices that we need the option to set the fullscreen option to the createSlideMenuWindow function - otherwise it does not (seems to be) possible to use it with hiding the Clock, Batterie-Charge informations from ios above the application.

Do you plan to update this maybe? :) 👍

Best,
Nico

Panning mode does not work as expected

Hey Mads!

I'm having trouble implementing setPanningMode. Maybe it's just me (though I tried it on 2 different applications) but I'm not getting the expected results.

NoPanning - works as expected (block any center window panning)
FullViewPanning - works as expected (any dragging of center view is allow no matter which part of it I drag)
NavigationBarPanning - does not work as expected. It should only alloy dragging of the center view with navbar, but fails to do so. The whole view is blocked as if I was using "NoPanning"
NavigationBarOrOpenCenterPanning - does not work as expected. I'm getting the same result as if I was using "FullViewPanning".

I'm setting panning mode right after I open the NappSlideMenu:

napp.open(); // opens everything
napp.setParallaxAmount(0.2); // works as expected
napp.setCenterhiddenInteractivity("TouchDisabled"); // works fine..
napp.setPanningMode("NavigationBarOrOpenCenterPanning"); // <--- problem here

I'm using navigationGroups in the center view. Maybe this is the problem?

Any way you can take a look at this? Or maybe anyone else has experienced the same problem?

Center Window swap

Hey Mads!
Great module! I was playing with it all morning and it's pretty easy to implement and slice into different files for Alloy implementation.

However I've got a question:

What would be the proper way to switch to another NavController when some menu item is clicked on the left? View switching isn't implemented in the example file.
First I tried switching windows directly inside single NavController in the center.. no go.
Then I did something like this:

left.on('menuChange', function(){
    var navController = Alloy.createController("anotherNavController').getView();
    win.centerWindow = navController;
    win.toggleLeftView();
})

Nothing happens, menu just closes and center view stays unchanged.
I also tried using win.setCenterWindow(navController) to no avail.

Got any tips?

Events fired when changing ViewController

How could we listen to user actions in SlideMenu?

I think we could fire an event to each view, for example: showLeftWindow, showCenterWindow and showRightWindow.

What do you think?

problems integrating as a modue

Hi,

I just wanted to report on my try at integrating ViewDeck and to let you know that you will face problems integrating it as a module.

Especially you ll have problem when rotating the phone. ViewDeck needs to receive "willRotateToInterfaceOrientation" which you wont be able to send to it (i truly think you cant but i might be wrong!)

I did modify the framework to allow that in my branch and i integrated ViewDeck directly.
I already have something running pretty smoothly
http://www.youtube.com/watch?v=gpIQJaoivmQ

I will share my code when it working on android and ios.

Thanks for your work

Ios7: fullscreen (hide status bar)

Hello,
the property fullscreen does not work on ios 7? I would like to hide the status bar. I tried to set the property fullscreen in all the windows, but I still see the status bar. Do you think you can find a solution?
Thank you very much :)

Examples use deprecated Ti.UI.iPhone.NavigationGroup

I'm trying to implement this module in my iOS 7 app. The app uses the new Ti.UI.iOS.NavigationWindow windows instead of the old NavigationGroup views. It appears that the changes in this module's v1.4 release implemented support for NavigationWIndows. However, I am experiencing some difficulties getting the module to work. In order to make sure I am setting things up correctly, it would be very helpful if the documentation and example code are updated to use the new NavigationWindow framework.

Menu disappearing on Ti SDK 4.1

I've rebuilt my iOS app using the latest SDK (4.1) and when using the app the menu randomly disappears after a certain amount of use. The actions causing it to disappear are not repeatable, it tends to be random.

Has anybody else experienced this?

iOS 7 statusBarStyle

I just tried running one of our apps on iOS 7 and it seems that setting the statusBarStyle on the SlideMenu window doesn't work. No matter what the status bar text is black, which doesn't work over a dark background. Any idea how to get the status bar color set properly? Would it help to recompile the module from source?

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.