root/luci2/cbi2/widgets/form.c @ 5709

Revision 5709, 414 bytes (checked in by blogic, 3 years ago)

cleanup widgets

Line 
1#include "../cbi.h"
2
3json_object* form_json(struct cbi_ctx *ctx, struct cbi_element *e)
4{
5    json_object *j = json_object_new_object();
6    json_object_object_add(j, "type", json_object_new_string("section"));
7    return j;
8}
9
10struct cbi_widget_property form_props[] = {
11    { "id", PROP_REQUIRED },
12};
13
14struct cbi_widget form = {
15    .caps = CAP_PACKAGE | CAP_SECTION,
16    .json = form_json,
17    WPROPS(form_props),
18};
19
20WIDGET(form)
Note: See TracBrowser for help on using the browser.