Giter VIP home page Giter VIP logo

ti.accu.slider's Introduction

gitTio

Ti.Accu.Slider

Appcelerator Titanium widget for advanced slider which supports steps.

Preview

screenshot

Installation

you can install the widget directly by downloading a zip file from this repo. or you can download it usign gitTio package manager using the following command

$ gittio install ti.accu.slider

Usage & Implementation

You can easily use the widget with the following way.

<Widget id="Slider" src="ti.accu.slider" title="Loan Amount" sliderTint="red" min="10" max="250" step="5" width="Ti.UI.FILL" value="70" onChange="valueChanged"/>

OR

var Slider = Alloy.createWidget('ti.accu.slider',{
  title:"Loan Amount",
  sliderTint:"red", // OS(iOS, Android) default
  min:10, //default 0
  max:250, //default 1
  step:5, //default 1
  value:50
}).getView();

Slider.on("change",valueChanged);

$.anyView.add(Slider);

Methods Available

function valueChanged(e){
  console.log(e.value);
}

$.Slider.setSliderTintColor('green');

$.Slider.setTitleStyle({
  color: 'blue'
});// all styles available for Label 

$.Slider.setTextFieldStyle({
  borderColor: 'black',
  borderWidth: 1,
  textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER
});// all styles available for TextField

var value = $.Slider.getValue();

Contribution

Pull request are welcome to add any new features to the widget.

License

Apache License, Version 2.0

Author

ti.accu.slider's People

Contributors

abdullahfaqeir avatar

Stargazers

Romeo Manzur avatar Brenton House avatar Sebastian Klaus avatar Jórdan Luiz Bisato avatar Waleed Saleh avatar

Watchers

James Cloos avatar  avatar

ti.accu.slider's Issues

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.