summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/heightwidth.lua
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/heightwidth.lua')
-rw-r--r--applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/heightwidth.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/heightwidth.lua b/applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/heightwidth.lua
new file mode 100644
index 000000000..b584b61ab
--- /dev/null
+++ b/applications/luci-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/heightwidth.lua
@@ -0,0 +1,10 @@
+local map, section = ...
+
+local width = wdg:option(Value, "width", translate("Width"))
+width.rmempty = true
+
+local height = wdg:option(Value, "height", translate("Height"))
+height.rmempty = true
+
+local pr = wdg:option(Value, "paddingright", translate("Padding right"))
+pr.rmempty = true