subtitle helper added.

This commit is contained in:
Luka Vandervelden 2020-01-11 19:01:15 +01:00
parent 4750470bab
commit 53c89d5262
2 changed files with 13 additions and 0 deletions

View File

@ -27,6 +27,13 @@
}
return h("div.title.is-" + level, args, [label]);
},
subtitle: function(level, args, label){
if (!label) {
label = args;
args = {};
}
return h("div.subtitle.is-" + level, args, [label]);
},
label: function(args, label){
if (!label) {
label = args;

View File

@ -25,6 +25,12 @@ module.exports = {
args = {}
h "div.title.is-#{level}", args, [label]
subtitle: (level, args, label) ->
if not label
label = args
args = {}
h "div.subtitle.is-#{level}", args, [label]
label: (args, label) ->
if not label
label = args