Sha256: be7346afb40dd1ae6c3c3aaacc7a2ec945a035b142603251af40d203f9a8042f

Contents?: true

Size: 536 Bytes

Versions: 24

Compression:

Stored size: 536 Bytes

Contents

// ==========================================================================
// Docs.DocLabelView
// ==========================================================================

require('core');

Docs.DocLabelView = SC.ButtonView.extend({
  
  emptyElement: '<a href="javascript:;"><span></span></a>',

  contentObserver: function() {
    var c = this.get('content') ;
    this.set('labelText', (c) ? c.get('title') : '(NONE)') ;
  }.observes('content'),
  
  labelSelector: 'span',
  
  mouseDown: function() { return false; }
  
}) ;

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
sproutcore-0.9.12 clients/sc_docs/views/doc_label.js
sproutcore-0.9.1 clients/sc_docs/views/doc_label.js
sproutcore-0.9.10 clients/sc_docs/views/doc_label.js
sproutcore-0.9.0 clients/sc_docs/views/doc_label.js
sproutcore-0.9.11 clients/sc_docs/views/doc_label.js
sproutcore-0.9.13 clients/sc_docs/views/doc_label.js
sproutcore-0.9.15 clients/sc_docs/views/doc_label.js
sproutcore-0.9.14 clients/sc_docs/views/doc_label.js
sproutcore-0.9.19 clients/sc_docs/views/doc_label.js
sproutcore-0.9.16 clients/sc_docs/views/doc_label.js
sproutcore-0.9.18 clients/sc_docs/views/doc_label.js
sproutcore-0.9.17 clients/sc_docs/views/doc_label.js
sproutcore-0.9.2 clients/sc_docs/views/doc_label.js
sproutcore-0.9.23 clients/sc_docs/views/doc_label.js
sproutcore-0.9.22 clients/sc_docs/views/doc_label.js
sproutcore-0.9.20 clients/sc_docs/views/doc_label.js
sproutcore-0.9.21 clients/sc_docs/views/doc_label.js
sproutcore-0.9.5 clients/sc_docs/views/doc_label.js
sproutcore-0.9.4 clients/sc_docs/views/doc_label.js
sproutcore-0.9.3 clients/sc_docs/views/doc_label.js