Am trying to fix the StickyNotes Zimlet, and almost there, but one bit that is bugging me is when the button is initially added it is in the "On" state; where as others like Delete or Spam are in the "Off" state.
What do I need to add to the buttonArgs to change its default state please ?
Code:
ZmMsg.stickyNotesLabel = this.getMessage("sn_label");
ZmMsg.stickyNotesTip = this.getMessage("sn_tooltip");
var buttonArgs = {
text : ZmMsg.stickyNotesLabel,
tooltip: ZmMsg.stickyNotesTip,
index: buttonIndex,
image: "stickynotes-panelIcon"
};
if(!toolbar.getOp(StickyNotesZimlet.stickyNotes)) {
var button = toolbar.createOp(StickyNotesZimlet.stickyNotes, buttonArgs);
button.addSelectionListener(new AjxListener(this, this._stickyTBListener, [controller]));
}