Sha256: c1ede4384cae36b5ed4e4bd80adfa4ebb9fcfefb5c0377b5d9d465e1b21ddfa2

Contents?: true

Size: 1.28 KB

Versions: 5

Compression:

Stored size: 1.28 KB

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
//            Portions ©2008-2010 Apple Inc. All rights reserved.
// License:   Licensed under MIT license (see license.js)
// ==========================================================================

/*globals TestControls Forms*/
TestControls.listPage = SC.View.design({
  childViews: "scroll".w(),
  scroll: SC.ScrollView.design({
    backgroundColor: "white",
    contentView: SC.ListView.design({
      hasContentIcon: YES,
      hasContentRightIcon: YES,
      contentIconKey: "icon",
      contentRightIconKey: "rightIcon",
      contentCheckboxKey: "isChecked",
      contentUnreadCountKey: "unread",
      
      
      classNames: ['big-list'],
      rowHeight: 44,
      content: function() {
        var idx = 0, ret = [];
        for (idx = 0; idx < 1000; idx++) {
          ret.push(SC.Object.create({
            "title": "Item " + idx,
            "icon": "sc-icon-document-16",
            "unread": idx,
            rightIcon: "sc-icon-info-16",
            isChecked: YES
          }));
        }
        return ret;
      }.property().cacheable(),
      contentValueKey: "title"
    })
  })
});

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
spade-0.0.1 sproutcore/apps/test_controls/resources/list_page.js
sproutcore-1.5.0.pre.5 lib/frameworks/sproutcore/apps/test_controls/resources/list_page.js
sproutcore-1.5.0.pre.4.1 lib/frameworks/sproutcore/apps/test_controls/resources/list_page.js
sproutcore-1.5.0.pre.4 lib/frameworks/sproutcore/apps/test_controls/resources/list_page.js
sproutcore-1.5.0.pre.3 lib/frameworks/sproutcore/apps/test_controls/resources/list_page.js