luci/modules/luci-base/luasrc/view/cbi/dynlist.htm
Jo-Philipp Wich 5510bdae39 luci-base: render default values for all server side cbi map widgets
Fixes: 9c7eb1dec ("luci-base: switch from server side to client side widget markup")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-07-19 17:28:36 +02:00

12 lines
352 B
HTML

<%+cbi/valueheader%>
<div<%=attr("data-ui-widget", luci.util.serialize_json({
"DynamicList", self:cfgvalue(section) or self.default, self:choices(), {
name = cbid,
size = self.size,
sort = self.keylist,
datatype = self.datatype,
optional = self.optional or self.rmempty,
placeholder = self.placeholder
}
}))%>></div>
<%+cbi/valuefooter%>