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

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

Wrapper for the lazr-js multicheckbox 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, label, label_tag='span', attribute_type='default', vocabulary=None, header=None, empty_display_value='None', selected_items=list(), items_tag='span', items_style='', content_box_id=None, edit_view='+edit', edit_url=None, edit_title=''):
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']
labelThe label text to display above the checkboxes
label_tagThe tag in which to wrap the label text.
attribute_typeThe attribute type. Currently only "reference" is supported. Used to determine whether to linkify the selected checkbox item values. So ubuntu/hoary becomes http://launchpad.net/devel/api/ubuntu/hoary
vocabularyThe name of the vocabulary which provides the items or a vocabulary instance.
headerThe text to display as the title of the popup form.
empty_display_valueThe text to display if no items are selected.
selected_itemsThe currently selected items.
items_tagThe tag in which to wrap the items checkboxes.
items_styleThe css style to use for each item checkbox.
content_box_idThe HTML id to use for this widget. Automatically generated if this is not provided.
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.
@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.