]> khamidou — GitHub mirrors - electron.git/commitdiff
Update tray.md
authorSonny Piers <sonny@fastmail.net>
Thu, 11 Dec 2014 11:28:01 +0000 (12:28 +0100)
committerSonny Piers <sonny@fastmail.net>
Thu, 11 Dec 2014 11:28:01 +0000 (12:28 +0100)
checked seems to be the correct property

docs/api/tray.md

index 668776897cf00fd47bc3465014f378a7c2bba88e..d18b3b8ff1a29352bec1f51b04a11ccc1f9a7845 100644 (file)
@@ -14,7 +14,7 @@ app.on('ready', function(){
   var contextMenu = Menu.buildFromTemplate([
     { label: 'Item1', type: 'radio' },
     { label: 'Item2', type: 'radio' },
-    { label: 'Item3', type: 'radio', clicked: true },
+    { label: 'Item3', type: 'radio', checked: true },
     { label: 'Item4', type: 'radio' },
   ]);
   appIcon.setToolTip('This is my application.');