l.a.b.l.TextAreaEditorWidget(TextWidgetBase) : class documentation

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

Wrapper for the multine-line lazr-js inlineedit/editor.js widget.
Method __init__ Create the widget wrapper.
Method tag_class The CSS class for the widget.
Method value Undocumented

Inherited from TextWidgetBase:

Method json_attribute_uri Undocumented

Inherited from WidgetBase (via TextWidgetBase):

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, title, content_box_id=None, edit_view='+edit', edit_url=None, edit_title='', hide_empty=True, linkify_text=True):
Create the 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']
titleThe string to use as the link title.
content_box_idThe HTML id to use for this widget. Defaults to edit-<attribute name>.
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.
hide_emptyIf the attribute has no value, or is empty, then hide the editor by adding the "hidden" CSS class.
linkify_textIf True the HTML version of the text will have things that look like links made into anchors.
@property
def tag_class(self):
The CSS class for the widget.
@cachedproperty
def value(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.