Skip to content

Instantly share code, notes, and snippets.

@gjtorikian
Created October 18, 2012 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gjtorikian/3915354 to your computer and use it in GitHub Desktop.
Save gjtorikian/3915354 to your computer and use it in GitHub Desktop.
Setting up a sample dock
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