1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-18 08:15:15 +00:00

Add disabled parameter to select widget and browse widget (#8816)

* Add disabled parameter to select widget and browse widget

* Add disabled attribute to edit-shortcut
This commit is contained in:
Leilei332
2024-12-15 00:40:31 +08:00
committed by GitHub
parent 3fc9523f81
commit c886cfe6f5
5 changed files with 16 additions and 2 deletions

View File

@@ -56,6 +56,9 @@ BrowseWidget.prototype.render = function(parent,nextSibling) {
if(this.nwdirectory) {
domNode.setAttribute("nwdirectory",this.nwdirectory);
}
if(this.isDisabled === "yes") {
domNode.setAttribute("disabled", true);
}
// Add a click event handler
domNode.addEventListener("change",function (event) {
if(self.message) {
@@ -94,6 +97,7 @@ BrowseWidget.prototype.execute = function() {
this.accept = this.getAttribute("accept");
this.webkitdirectory = this.getAttribute("webkitdirectory");
this.nwdirectory = this.getAttribute("nwdirectory");
this.isDisabled = this.getAttribute("disabled", "no");
};
/*