Sha256: 112e6e157ed45dfac55fb7b3dee4c94caa6217051ceb8d8c474694666afdf9fb
Contents?: true
Size: 1023 Bytes
Versions: 17
Compression:
Stored size: 1023 Bytes
Contents
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2011 Strobe Inc. and contributors. // Portions ©2008-2011 Apple Inc. All rights reserved. // License: Licensed under MIT license (see license.js) // ========================================================================== SC.BaseTheme.panelRenderDelegate = SC.RenderDelegate.create({ name: 'panel', render: function(dataSource, context) { context = context.begin('div').addClass('panel-background'); this.includeSlices(dataSource, context, SC.NINE_SLICE); context = context.end(); // the label for the panel could change... var ariaLabel = dataSource.get('ariaLabel'); context.attr('aria-label', ariaLabel || ''); }, update: function(dataSource, jQuery) { // the label for the panel could change... var ariaLabel = dataSource.get('ariaLabel'); jQuery.attr('aria-label', ariaLabel || ''); } });
Version data entries
17 entries across 17 versions & 1 rubygems