Sha256: 5e751b67f1cc38cd883982f180166a4c4e9981ea9c549d3553e3fc353ee3c9c4

Contents?: true

Size: 1.15 KB

Versions: 3

Compression:

Stored size: 1.15 KB

Contents

// ==========================================================================
// Project:   Showcase
// Copyright: @2012 Tyler Keating
// ==========================================================================
/*globals Showcase */
sc_require('system/views_item_content.js');
sc_require('views/views_list_view.js');


/**
  This pre-configured view demonstrates SC.ProgressView.
*/
Showcase.progressViews = SC.ScrollView.design({
  contentView: Showcase.ViewsListView.design({
    content: [
      Showcase.ViewsItemContent.create({
        title: 'Regular',
        example: "SC.ProgressView.extend({  layout: { width: 150, height: 20, centerX: 0, centerY: 0 },  increment: function() {  this.incrementProperty('value', 0.01);  if (this.get('value') > 1.25) { this.set('value', 0); }  },  init: function() {  sc_super();  SC.Timer.schedule({  action: 'increment', target: this, interval: 30, repeats: true  });  }  })"
      }),
      Showcase.ViewsItemContent.create({
        title: 'Indeterminate',
        example: "SC.ProgressView.extend({  layout: { width: 150, height: 20, centerX: 0, centerY: 0 },  isIndeterminate: YES,  isRunning: YES  })"
      })
    ]
  })
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sproutcore-1.9.2 lib/frameworks/sproutcore/apps/showcase/views/progress_views.js
sproutcore-1.9.1 lib/frameworks/sproutcore/apps/showcase/views/progress_views.js
sproutcore-1.9.0 lib/frameworks/sproutcore/apps/showcase/views/progress_views.js