Sha256: bfcaaf3a008684596f97e8008f03bbddc9deb09370e5ad4649bf9e9e1588bf06

Contents?: true

Size: 1.36 KB

Versions: 17

Compression:

Stored size: 1.36 KB

Contents

// ==========================================================================
// Project: SproutCore - JavaScript Application Framework
// Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
// portions copyright @2009 Apple Inc.
// License: Licened under MIT license (see license.js)
// ==========================================================================
/*global module test htmlbody ok equals same stop start */

htmlbody('<style> .sc-static-layout { border: 1px red dotted; } </style>');
(function() {
  var method = function() { console.log("done"); };
var pane = SC.ControlTestPane.design({ width:200,height: 32 })
  .add("full", SC.MenuItemView.design({ 
    content: SC.Object.create({ 
      icon: "sc-icon-folder-16",
      title1: "List Item 1",
      checkbox: YES,
      shortcut: "Text",
      keyEquivalent: "alt_shift_z"
   }),
  isAnOption: YES,
  contentValueKey: "title1",
  contentIconKey: "icon",
  shortCutKey: "shortcut",
  contentCheckboxKey: "checkbox",
  keyEquivalent: "shift_>",
  action: method,
  isEnabled: NO
    // contentIsBranchKey: 'branch'
  }))
  
  .add("disabled menu item with no content", SC.MenuItemView.design({ 
    content: SC.Object.create(),
    isSeparator: YES,
    isEnabled: NO
  }));
 
pane.show();

module("Menu Item View");
test("Changing the properties", function() {
  pane.view('full').set('isEnabledKey', YES);
});
})();

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
sproutit-sproutcore-1.0.20090721145285 frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js
sproutcore-1.0.1046 frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js
sproutcore-1.0.1043 frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js
sproutcore-1.0.1042 frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js
sproutcore-1.0.1037 frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js
sproutcore-1.0.1035 frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js
sproutcore-1.0.1031 frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js
sproutcore-1.0.1030 frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js
sproutcore-1.0.1029 frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js
sproutcore-1.0.1027 frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js
sproutcore-1.0.1028 frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js
sproutcore-1.0.1026 frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js
sproutcore-1.0.1025 frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js
sproutcore-1.0.1024 frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js
sproutcore-1.0.1009 frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js
sproutcore-1.0.1008 frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js
sproutcore-1.0.1003 frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js