Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A native iOS double slider for Titanium Mobile.
Objective-C Python JavaScript
branch: master
Failed to load latest commit information.
Classes
assets
dist Update to 64 bit (3.5.0.GA)
documentation initial push
example initial push
hooks
platform initial push
tidoubleslider.xcodeproj Add arm64 support
.gitignore
ComSemanticpressTidoublesliderSliderProxy.h initial push
ComSemanticpressTidoublesliderSliderProxy.m initial push
ComSemanticpressTidoubleslider_Prefix.pch
LICENSE
README.md
build.py
manifest Update to 64 bit (3.5.0.GA)
module.xcconfig
timodule.xml initial push
titanium.xcconfig Update to 64 bit (3.5.0.GA)

README.md

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

Video: https://vimeo.com/52779198

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

Something went wrong with that request. Please try again.