Sha256: f24e43b507c6c04ebe35881de26a8fb1d82d7aefed9302a0396622294fdf98e9
Contents?: true
Size: 1.36 KB
Versions: 11
Compression:
Stored size: 1.36 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.ToolbarView. */ Showcase.toolbarViews = SC.ScrollView.design({ contentView: Showcase.ViewsListView.design({ content: [ Showcase.ViewsItemContent.create({ title: 'Regular', example: "SC.View.extend({ childViews: ['toolbar1', 'toolbar2'], classNames: ['my-view'], layout: { left: 20, right: 20, top: 20, bottom: 20 }, toolbar1: SC.ToolbarView.extend({ childViews: ['title'], layout: { height: 44 }, title: SC.LabelView.extend({ classNames: ['my-title-label'], controlSize: SC.LARGE_CONTROL_SIZE, layout: { width: 220, height: 24, centerX: 0, centerY: 0 }, value: 'Heading' }) }), toolbar2: SC.ToolbarView.extend({ anchorLocation: SC.ANCHOR_BOTTOM, childViews: ['title'], layout: { height: 44 }, title: SC.LabelView.extend({ classNames: ['my-title-label'], controlSize: SC.LARGE_CONTROL_SIZE, layout: { width: 220, height: 24, centerX: 0, centerY: 0 }, value: 'Footing' }) }) })" }) ], exampleHeight: 500 }) });
Version data entries
11 entries across 11 versions & 1 rubygems