Skip to content

Latest commit

 

History

History
82 lines (64 loc) · 3.17 KB

README.md

File metadata and controls

82 lines (64 loc) · 3.17 KB

Titanium Double Slider

This iOS module creates a native double slider UI View component for Titanium Mobile. Handy for selecting a range of values (ie, hours of operation, financial budget ranges, etc). This module has facilities for customizing the look and feel during touch events.

Status Bar Overlay Example

Current version: 0.2 - Titanium SDK: 3.5.0.GA (64 bit)

Flattr this

Usage

  1. Download the compiled module from the /distfolder.
  2. Add the module to tiapp.xml
  3. Instantiate the module in JavaScript:
var tidoubleslider = require('com.semanticpress.tidoubleslider');

var dSlider = tidoubleslider.createSlider({
	top: 40,
	height: 50,
	width: 280,
	leftTrackImage:'left2.png',
	highlightedLeftTrackImage:'highlightedLeft2.png',
	disabledLeftTrackImage:'disabledLeft2.png',
	centerTrackImage:'center2.png',
	highlightedCenterTrackImage:'highlightedCenter2.png',
	disabledCenterTrackImage:'disabledCenter2.png',
	rightTrackImage:'right2.png',
	highlightedRightTrackImage:'highlightedRight2.png',
	disabledRightTrackImage:'disabledRight2.png',
	leftThumbImage:'thumb.png',
	highlightedLeftThumbImage:'highlightedThumb.png',
	disabledLeftThumbImage:'disabledThumb.png',
	rightThumbImage:'thumb.png',
	highlightedRightThumbImage:'highlightedThumb.png',
	disabledRightThumbImage:'disabledThumb.png',
	min:0,
	max:100,
	leftValue:25,
	rightValue:50,
	enabled: true
});
win.add(dSlider);

Authors

License

The MIT License

Copyright (c) 2015 Semantic Press, Inc.

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.

Hi