1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Added stylability to HTML.label()

This commit is contained in:
Jeremy Ruston 2012-02-13 13:46:49 +00:00
parent 4ce479f693
commit 155bf379cc

View File

@ -117,7 +117,8 @@ HTML.label = function(type,value,classes) {
classes = (classes || []).slice(0); classes = (classes || []).slice(0);
classes.push("label"); classes.push("label");
return HTML.elem("span",{ return HTML.elem("span",{
"class": classes "class": classes,
"data-tw-label-type": type
},value); },value);
}; };