These are chat archives for caffeinalab/trimethyl

15th
Dec 2014
Flavio Maria De Stefano
@kopiro
Dec 15 2014 10:10
what is the issue? It's working fine for me
Vinicius Oliveira
@fukhaos
Dec 15 2014 11:31
[ERROR] : TiExceptionHandler: (main) [55936,55936] ----- Titanium Javascript Runtime Error -----
[ERROR] : TiExceptionHandler: (main) [0,55936] - In T/uifactory/select.js:34,17
[ERROR] : TiExceptionHandler: (main) [0,55936] - Message: Uncaught Error: length=0; index=0
[ERROR] : TiExceptionHandler: (main) [0,55936] - Source: $picker.add(_.map($this.values, function(o) {
[ERROR] : V8Exception: Exception occurred at T/uifactory/select.js:34: Uncaught Error: length=0; index=0
Vinicius Oliveira
@fukhaos
Dec 15 2014 11:46

using on xml :

<Select top="60" module="T/uifactory" id="sel" left="20" right="20" backgroundColor="#ddd" borderRadius="6" theValue="1" />

and controller:

$.sel.setValues([
    { title: '  Julie', value: 1 },
    { title: '  Sarah', value: 2 },
    { title: '  Valentine', value: 3 }
]);