Create a widget wrapper.
Parameters | context | The object that is being edited. |
| exported_field | The attribute being edited. This should be
a field from an interface of the form ISomeInterface['fieldname'] |
| header | The large text at the top of the picker. |
| content_box_id | The HTML id to use for this widget.
Automatically generated if this is not provided. |
| enum | The enumerated type used to generate the widget items. |
| edit_view | The view name to use to generate the edit_url if
one is not specified. |
| edit_url | The URL to use for editing when the user isn't logged
in and when JS is off. Defaults to the edit_view on the context. |
| edit_title | Used to set the title attribute of the anchor. |
| css_class_prefix | Added to the start of the enum titles. |