Sha256: d409244a555332e416db1dda5695308810e2b47723eacddc4de84c8875237531
Contents?: true
Size: 1.2 KB
Versions: 11
Compression:
Stored size: 1.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.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
11 entries across 11 versions & 1 rubygems