Customize classes for table

MagicMirror offers helper classes in the main.css. Therefore, we give
the possibility to indicate the class that we want.
This commit is contained in:
Teddy Payet
2018-06-11 12:54:27 +02:00
parent d47cfe9504
commit cbc2eaf908
3 changed files with 10 additions and 3 deletions

View File

@@ -36,6 +36,7 @@ Module.register("weatherforecast",{
appendLocationNameToHeader: true,
calendarClass: "calendar",
tableClass: "small",
roundTemp: false,
@@ -117,7 +118,7 @@ Module.register("weatherforecast",{
}
var table = document.createElement("table");
table.className = "small";
table.className = this.config.tableClass;
for (var f in this.forecast) {
var forecast = this.forecast[f];