1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-10 02:38:06 +00:00

Fix get variable info params (#8179)

* return params for every variable type

* add tests for widget getVariableInfo.params

* make param values different to names
This commit is contained in:
Mario Pietsch
2024-05-29 12:14:21 +02:00
committed by GitHub
parent 15001020fe
commit 5856bd8342
2 changed files with 97 additions and 0 deletions

View File

@@ -163,6 +163,8 @@ Widget.prototype.getVariableInfo = function(name,options) {
});
resultList = this.wiki.filterTiddlers(value,this.makeFakeWidgetWithVariables(variables),options.source);
value = resultList[0] || "";
} else {
params = variable.params;
}
return {
text: value,