Sha256: 8f5c2e64a506dc53e0066b3b2134e26ac0ac4061f4bd83817dedd74a97366029

Contents?: true

Size: 1.09 KB

Versions: 3

Compression:

Stored size: 1.09 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.WebView.
*/
Showcase.webViews = SC.ScrollView.design({
  contentView: Showcase.ViewsListView.design({
    content: [
      Showcase.ViewsItemContent.create({
        title: 'Regular',
        example: "SC.WebView.extend({  classNames: ['my-web-view'],  layout: { left: 20, top: 20, right: 20, bottom: 20 },  value: 'http://sproutcore.com' })",
        supportAction: function() {
          var view = this.getPath('parentView.exampleBox.contentView')
              value = view.get('value');

          if (value === 'http://sproutcore.com') view.set('value', 'http://docs.sproutcore.com');
          else view.set('value', 'http://sproutcore.com');
        },
        supportTitle: 'Toggle Value'

      })
    ],
    exampleHeight: 500
  })
});

Version data entries

3 entries across 3 versions & 1 rubygems

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