Sha256: f4da561d49e6935c934832f4479f72297783cdbcd0cec351ca39ed3eacba2248

Contents?: true

Size: 2 KB

Versions: 11

Compression:

Stored size: 2 KB

Contents

// ==========================================================================
// Project:   Showcase
// Copyright: ©2012 7x7 Software, Inc.
// License:   Licensed under MIT license
// ==========================================================================
/*globals Showcase */
sc_require('system/views_item_content.js');
sc_require('views/views_list_view.js');


/**
  This pre-configured view demonstrates SC.SliderView.
*/
Showcase.sliderViews = SC.ScrollView.design({
  contentView: Showcase.ViewsListView.design({
    content: [
      Showcase.ViewsItemContent.create({
        title: 'Regular',
        example: "SC.SliderView.extend({  layout: { width: 250, height: 18, centerX: 0, centerY: 0 } })"
      }),
      // Showcase.ViewsItemContent.create({
      //   title: 'Tiny',
      //   example: "SC.SliderView.extend({  controlSize: SC.TINY_CONTROL_SIZE,  layout: { width: 250, height: 20, centerX: 0, centerY: 0 } })"
      // }),
      Showcase.ViewsItemContent.create({
        title: 'Small',
        example: "SC.SliderView.extend({  controlSize: SC.SMALL_CONTROL_SIZE,  layout: { width: 250, height: 16, centerX: 0, centerY: 0 } })"
      }),
      // Showcase.ViewsItemContent.create({
      //   title: 'Large',
      //   example: "SC.SliderView.extend({  controlSize: SC.LARGE_CONTROL_SIZE,  layout: { width: 250, height: 20, centerX: 0, centerY: 0 } })"
      // }),
      // Showcase.ViewsItemContent.create({
      //   title: 'Huge',
      //   example: "SC.SliderView.extend({  controlSize: SC.HUGE_CONTROL_SIZE,  layout: { width: 250, height: 20, centerX: 0, centerY: 0 } })"
      // }),
      Showcase.ViewsItemContent.create({
        title: 'Jumbo',
        example: "SC.SliderView.extend({  controlSize: SC.JUMBO_CONTROL_SIZE,  layout: { width: 250, height: 24, centerX: 0, centerY: 0 } })"
      }),
      Showcase.ViewsItemContent.create({
        title: 'Continuous',
        example: "SC.SliderView.extend({  layout: { width: 250, height: 18, centerX: 0, centerY: 0 },  step: 0 })"
      })
    ]
  })
});

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sproutcore-1.11.0 lib/frameworks/sproutcore/apps/showcase/views/slider_views.js
sproutcore-1.11.0.rc3 lib/frameworks/sproutcore/apps/showcase/views/slider_views.js
sproutcore-1.11.0.rc2 lib/frameworks/sproutcore/apps/showcase/views/slider_views.js
sproutcore-1.11.0.rc1 lib/frameworks/sproutcore/apps/showcase/views/slider_views.js
sproutcore-1.10.3.1 lib/frameworks/sproutcore/apps/showcase/views/slider_views.js
sproutcore-1.10.2 lib/frameworks/sproutcore/apps/showcase/views/slider_views.js
sproutcore-1.10.1 lib/frameworks/sproutcore/apps/showcase/views/slider_views.js
sproutcore-1.10.0 lib/frameworks/sproutcore/apps/showcase/views/slider_views.js
sproutcore-1.10.0.rc.3 lib/frameworks/sproutcore/apps/showcase/views/slider_views.js
sproutcore-1.10.0.rc.2 lib/frameworks/sproutcore/apps/showcase/views/slider_views.js
sproutcore-1.10.0.rc.1 lib/frameworks/sproutcore/apps/showcase/views/slider_views.js