Sha256: 433bac93b10f39d3a205f20c58dd12c06ce7177d9fffdd1bd1c0b97a1ac815d9

Contents?: true

Size: 1.56 KB

Versions: 5

Compression:

Stored size: 1.56 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.tabPage = SC.View.design({
  childViews: "form".w(),
  form: SC.FormView.design({
    layout: { left: 20, top: 40, right: 20, bottom: 40 },
    childViews: "header top topToolbar bottom overflow".w(),
    
    header: SC.LabelView.design({
      layout: {width:300, height:24},
      classNames: "header".w(),
      value: "Tab Views"
    }),
    
    top: SC.FormView.row(SC.TabView.design({
      layout: { width: 300, height: 100, centerY: 0 },
      items: ["Item 1", "Item 2", "Item 3"],
      tabLocation: SC.TOP_LOCATION
    })),
    
    topToolbar: SC.FormView.row(SC.TabView.design({
      layout: { width: 300, height: 100, centerY: 0 },
      items: ["Item 1", "Item 2", "Item 3"],
      tabLocation: SC.TOP_TOOLBAR_LOCATION
    })),
    
    bottom: SC.FormView.row(SC.TabView.design({
      layout: { width: 300, height: 100, centerY: 0 },
      items: ["Item 1", "Item 2", "Item 3"],
      tabLocation: SC.BOTTOM_LOCATION
    })),
    
    overflow: SC.FormView.row(SC.TabView.design({
      layout: { width: 300, height: 100, centerY: 0 },
      items: ["Item 1", "Item 2", "Item 3", "Item 4", "Item 5", "Item 6", "Item 7"]
    }))
  })
});

Version data entries

5 entries across 5 versions & 2 rubygems

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