Part of canonical.widgets.lazrjs View In Hierarchy
Known subclasses: canonical.widgets.lazrjs.TextAreaEditorWidget
Method | __init__ | Create a widget wrapper. |
Method | __call__ | Return the HTML to include to render the widget. |
Class Method | _generate_id | Return a presumably unique id for this widget. |
Parameters | context | The object that is being edited. |
attribute | The name of the attribute being edited. | |
edit_url | The URL to use for editing when the user isn't logged in and when JS is off. | |
id | The HTML id to use for this widget. Automatically generated if this is not provided. | |
title | The string to use as the link title. Defaults to 'Edit'. | |
tag | The HTML tag to use. | |
public_attribute | If given, the name of the attribute in the public webservice API. | |
accept_empty | Whether the field accepts empty input or not. | |
default_text | Text to show in the unedited field, if the parameter value is missing or None. | |
initial_value_override | Use this text for the initial edited field value instead of the attribute's current value. | |
width | Initial widget width. |