l.a.b.l.TextLineEditorWidget(TextWidgetBase, DefinedTagMixin) : class documentation

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

Wrapper for the lazr-js inlineedit/editor.js widget.
Method __init__ Create a widget wrapper.
Method value Undocumented
Method text_css_class Undocumented
Method text_css_style 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.

Inherited from DefinedTagMixin:

Method open_tag Undocumented
Method close_tag Undocumented
def __init__(self, context, exported_field, title, tag, css_class=None, content_box_id=None, edit_view='+edit', edit_url=None, edit_title='', max_width=None, truncate_lines=0, default_text=None, initial_value_override=None, width=None):
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']
titleThe string to use as the link title.
tagThe HTML tag to use.
css_classThe css class value to use.
max_widthThe maximum width of the rendered text before it is truncated with an '...'.
truncate_linesThe maximum number of lines of text to display before any overflow is truncated with an '...'.
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.
default_textText to show in the unedited field, if the parameter value is missing or None.
initial_value_overrideUse this text for the initial edited field value instead of the attribute's current value.
widthInitial widget width.
@property
def value(self):
Undocumented
@property
def text_css_class(self):
Undocumented
@property
def text_css_style(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.