Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Kitchen Sink 1.3.3 / Table Views Error

I used API 2.2 to launch the kitchen sink. When I tried to click on Views > Table Views example
<br>
I have the following SDKs installed:<br>

  1. SDK Platform Android 2.2<br>
  2. SDK Platform Android 2.1 -updated 1<br>
  3. SDK Platform Android 1.6<br>
  4. Google APIs by Google Inc, Android API 8<br>
  5. Google APIs by Google Inc, Android API 4<br>

RunTime Error<br>
Location: [70,0]app://examples/table_views.js
<br>
Message: TypeError:; Cannot read property "GRAY" from undefined (app://examples/table_views.js#70)

I clicked "continue" and see a green/olive background with nothing. Has anyone come across this ?

Thanks.

— asked November 24th 2010 by HC Chan
  • kitchensink
  • table views error
0 Comments

2 Answers

  • Accepted Answer

    HC

    Why are you using an outdated version of the KS? The current version is 1.4. You can download it here

    — answered November 24th 2010 by Paul Dowsett
    permalink
    0 Comments
  • [UPDATE]I download this kitchen sink package from https://github.com/appcelerator/KitchenSink/archives/1.3.3

    Here's the snippet of the code that calls for GRAY at line 78 of table_views.js. I commented out this line and I could get the various examples to load.

    // create table view
    var tableViewOptions = {
    data:data,
    style:Titanium.UI.iPhone.TableViewStyle.GROUPED,
    headerTitle:'TableView examples and test cases',
    footerTitle:"Wow. That was cool!",
    backgroundColor:'transparent',
    rowBackgroundColor:'white',
    selectionStyle:Ti.UI.iPhone.TableViewCellSelectionStyle.GRAY
    };

    — answered November 24th 2010 by HC Chan
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.