l.a.b.l.EnumChoiceWidget(WidgetBase) : class documentation

Part of lp.app.browser.lazrjs View In Hierarchy

A popup choice widget.
Method __init__ Create a widget wrapper.
Method config Undocumented
Method json_config Undocumented

Inherited from WidgetBase:

Method resource_uri A local path to the context object.
Method json_resource_uri Undocumented
Method can_write Can the current user write to the attribute.
def __init__(self, context, exported_field, header, content_box_id=None, enum=None, edit_view='+edit', edit_url=None, edit_title='', css_class_prefix='', include_description=False):
Create a widget wrapper.
ParameterscontextThe object that is being edited.
exported_fieldThe attribute being edited. This should be a field from an interface of the form ISomeInterface['fieldname']
headerThe large text at the top of the picker.
content_box_idThe HTML id to use for this widget. Automatically generated if this is not provided.
enumThe enumerated type used to generate the widget items.
edit_viewThe view name to use to generate the edit_url if one is not specified.
edit_urlThe 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_titleUsed to set the title attribute of the anchor.
css_class_prefixAdded to the start of the enum titles.
@property
def config(self):
Undocumented
@property
def json_config(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.