Finally viewmode.html render.

This commit is contained in:
Paulo Gustavo Veiga
2014-03-05 00:14:28 -03:00
parent 255f50eda8
commit e5186688ab
33 changed files with 158 additions and 159 deletions

View File

@@ -24,31 +24,32 @@ mindplot.widget.KeyboardShortcutTooltip = new Class({
$assert(text, "text can not be null");
this._text = text;
var children = buttonElem.getChildren();
var tipElemId = buttonElem.id + "Tip";
var tipDiv = new Element('div', {id:tipElemId});
children[0].inject(tipDiv);
tipDiv.inject(buttonElem);
this.parent(tipDiv, {
// Content can also be a function of the target element!
content: this._buildContent.pass(buttonElem, this),
html: true,
position: 'bottom',
arrowOffset : 10,
center: true,
arrowSize: 3,
offset : {x:0,y:-2},
className: 'keyboardShortcutTip',
preventHideOnOver : false,
motionOnShow:false,
motionOnHide:false,
fx: { 'duration': '100' }
});
tipDiv.addEvent('click', function(e) {
tipDiv.fireEvent('mouseleave', e);
});
console.error("mindplot.widget.KeyboardShortcutTooltip must be implemented ...");
// var children = buttonElem.children();
// var tipElemId = buttonElem.id + "Tip";
// var tipDiv = new Element('div', {id:tipElemId});
// children[0].inject(tipDiv);
// tipDiv.inject(buttonElem);
//
// this.parent(tipDiv, {
// // Content can also be a function of the target element!
// content: this._buildContent.pass(buttonElem, this),
// html: true,
// position: 'bottom',
// arrowOffset : 10,
// center: true,
// arrowSize: 3,
// offset : {x:0,y:-2},
// className: 'keyboardShortcutTip',
// preventHideOnOver : false,
// motionOnShow:false,
// motionOnHide:false,
// fx: { 'duration': '100' }
// });
//
// tipDiv.addEvent('click', function(e) {
// tipDiv.fireEvent('mouseleave', e);
// });
},
_buildContent : function() {