Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

Latest commit

 

History

History
48 lines (38 loc) · 1.38 KB

README.md

File metadata and controls

48 lines (38 loc) · 1.38 KB

Detail Navigation Widget

A detail-view navigation (previous/next) widget for Titanium Alloy.

Example Usage

var navigation = Alloy.createWidget("com.mcongrove.detailNavigation", null, {
	up: function(_event) {
		openPreviousArticle();
	},
	down: function(_event) {
		openNextArticle();
	},
	color: "black"
});

$.Wrapper.add(navigation.getView());

Options

Parameter Type Default Options
up Function
down Function
color String "white" "white", "black"

Changelog

  • 1.1
    • Initial commit as separate module; see ChariTi for previous versions

License

Copyright 2013 Matthew Congrove

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.