Part of lp.app.browser.lazrjs View In Hierarchy
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. |
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'] | |
title | The string to use as the link title. | |
content_box_id | The HTML id to use for this widget. Defaults to edit-<attribute name>. | |
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. | |
hide_empty | If the attribute has no value, or is empty, then hide the editor by adding the "hidden" CSS class. | |
linkify_text | If True the HTML version of the text will have things that look like links made into anchors. |