Created
October 18, 2012 23:22
-
-
Save gjtorikian/3915354 to your computer and use it in GitHub Desktop.
Setting up a sample dock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dock.addDockable({ | |
expanded : -1, | |
width : 300, | |
sections : [ | |
{ | |
width : 260, | |
height: 350, | |
buttons : [ | |
{ | |
caption: "My Dock Button", | |
ext : [name, "btnDock"], | |
hidden : true | |
} | |
] | |
}, | |
{ | |
width : 260, | |
height: 350, | |
minWidth : 270, | |
buttons : [] | |
} | |
] | |
}); | |
dock.register(name, "btnDock", { | |
menu : "Run Dock Button", | |
primary : { | |
backgroundImage: ide.staticPrefix + "/ext/main/style/images/debugicons.png", | |
defaultState: { x: -6, y: -265 }, | |
activeState: { x: -6, y: -265 } | |
} | |
}, function(type) { | |
ext.initExtension(_self); | |
return blarghNav; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment