Sha256: 66ba43aa3f371d7f6bd82dab682bf5ae988b081acefa0e507b8b5db72555b9e6

Contents?: true

Size: 1.89 KB

Versions: 25

Compression:

Stored size: 1.89 KB

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
//            Portions ©2008-2011 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 icon".w(),
    
    header: SC.LabelView.design({
      layout: {width:300, height:24},
      classNames: "header".w(),
      value: "Tab Views",
      fillWidth: YES
    }),
    
    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"]
    })),

    icon: SC.FormView.row(SC.TabView.design({
      layout: { width: 300, height: 100, centerY: 0 },
      items: [{ title: "Item 1", icon: "sc-icon-info-16" }, { title: "Item 2" }, { title: "Item 3" }],
      itemTitleKey: 'title',
      itemIconKey: 'icon',
      tabLocation: SC.TOP_LOCATION
    }))
  })
});

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
sproutcore-1.8.2.1 lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js
sproutcore-1.8.1 lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js
sproutcore-1.8.0 lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js
sproutcore-1.7.1.beta-java lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js
sproutcore-1.7.1.beta lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js
sproutcore-1.6.0.1-java lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js
sproutcore-1.6.0.1 lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js
sproutcore-1.6.0.1-x86-mingw32 lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js
sproutcore-1.6.0 lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js
sproutcore-1.6.0-java lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js
sproutcore-1.6.0.rc.2-x86-mingw32 lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js
sproutcore-1.6.0.rc.2 lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js
sproutcore-1.6.0.rc.2-java lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js
sproutcore-1.6.0.rc.1-x86-mingw32 lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js
sproutcore-1.6.0.rc.1 lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js
sproutcore-1.6.0.rc.1-java lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js
sproutcore-1.6.0.beta.3-x86-mingw32 lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js
sproutcore-1.6.0.beta.3-java lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js
sproutcore-1.6.0.beta.3 lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js
sproutcore-1.6.0.beta.2-x86-mingw32 lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js