1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-17 15:57:14 +00:00

Add tooltip to browse widget

Fixes #1179
This commit is contained in:
Jermolene
2014-12-02 19:16:38 +00:00
parent 85217112ad
commit 5154a25ab9
3 changed files with 36 additions and 1 deletions

View File

@@ -39,6 +39,9 @@ BrowseWidget.prototype.render = function(parent,nextSibling) {
if(this.browseMultiple) {
domNode.setAttribute("multiple","multiple");
}
if(this.tooltip) {
domNode.setAttribute("title",this.tooltip);
}
// Add a click event handler
domNode.addEventListener("change",function (event) {
if(self.message) {
@@ -62,6 +65,7 @@ Compute the internal state of the widget
BrowseWidget.prototype.execute = function() {
this.browseMultiple = this.getAttribute("multiple");
this.message = this.getAttribute("message");
this.tooltip = this.getAttribute("tooltip");
};
/*