Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18] API - Titanium.UI.createSlider

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:50:08.000+0000
Affected Version/sn/a
Fix Version/sGA - M1
ComponentsiOS
Labelsn/a
ReporterNolan Wright
AssigneeBlain Hamon
Created2011-04-15T02:22:36.000+0000
Updated2011-04-17T01:50:08.000+0000

Description

Description

The purpose of this API is to create a slider native control.

Example


var slider = Titanium.UI.createSlider({id:'foo', min:0, max:100, pos:0});
slider.addEventListener('change',function(e)
{
    e.value // current value of slider
});

API Arguments

id : optional. HTML element id for where the slider will be placed if placed in webview

min : min value of the slider. default is 0.

max : max value of the slider. default is 10.

pos : starting position of the slider. default is 0.

color : optional. text color

backgroundColor : optional. background color of field

Comments

  1. Jeff Haynie 2011-04-15

    resolved in 0.5

JSON Source