These are the (X)HTML widgets used to represents fields as UI-Elements which can be used in templates to be rendered to (X)HTML.
An object which is renderable to html or xhtml depending one the given dialect, if dialect is None dialect will be used.
Sets default values in the given attrs dict which will be passed to the builder upon rendering and returns it.
New in version 0.3.
Represents a field as a UI-Element.
Parameters: |
|
---|
Returns the label as dt and the rendered widget as dd.
New in version 0.2.
Returns the rendered widget in a td.
New in version 0.2.
Represents every field which is not represented through any other widget as well as formular.fields.TextField instance for single lines.
Returns the rendered widget in a li.
New in version 0.2.
Returns the rendered input element.
New in version 0.2: Now supports arbitary attributes for the input.
Represents a formular.fields.TextField instance as one or more lines of text in the UI.
Returns the rendered textarea element.
New in version 0.2: Now supports arbitary attributes for the textarea.
Represents a formular.fields.PasswordField instance as an UI-Element.
Returns the rendered widget in a li.
New in version 0.2.
Returns the rendered input element.
New in version 0.2: Now supports arbitary attributes for the input.
Represents a formular.fields.BooleanField instance as an UI-Element.
Returns the rendered widget in a li.
New in version 0.2.
Returns the rendered input element.
New in version 0.2: Now supports arbitary attributes for the input.
Represents a formular.fields.SubmitField instance as an UI-Element.
New in version 0.2.
Represents a formular.fields.ChoiceField instance as an UI-Element.
Renders the widget as an ol.
New in version 0.2: Now supports arbitary attributes for the ul.
Renders the widget as an ul.
New in version 0.2: Now supports arbitary attributes for the ul.
Returns the rendered ul element.
New in version 0.2: Now supports arbitary attributes for the ul.
Represents a formular.fields.ChoiceField instance value as an UI-Element.
Returns the rendered widget in a li.
New in version 0.2.
Represents a formular.fields.MultiChoiceField instance as an UI-Element.
Renders the widget as an ol.
New in version 0.2: Now supports arbitary attributes for the ul.
Renders the widget as an ul.
New in version 0.2: Now supports arbitary attributes for the ul.
Returns the rendered ul element.
New in version 0.2: Now supports arbitary attributes for the ul.
Represents a formular.fields.MultiChoiceField instance value as an UI-Element.
Returns the rendered widget in a li.
New in version 0.2.
Represents a formular.field.MappingWidget instance as an UI-Element and stores the widgets of the mapped fields.
Renders the subwidgets as a dl.
New in version 0.2: Now supports arbitary attributes for the dl
Renders the subwidgets as a tr
New in version 0.2: Now supports arbitary attributes for the tr.
Returns the rendered dl element.
New in version 0.2: Now supports arbitary attributes for the dl.
Represents a formular.fields.Multiple instance as an UI-Element.
Renders the widget as an ol.
New in version 0.2: Now supports arbitary attributes for the ul.
Renders the widget as an ul.
New in version 0.2: Now supports arbitary attributes for the ul.
Yields a subwidget for every value.
New in version 0.2.
Returns the rendered ul element.
New in version 0.2: Now supports arbitary attributes for the ul
Represents a formular.forms.HTMLForm as an UI-Element.
Returns the rendered form.
Parameter: | method – The method used to send the form back to the server. |
---|
Note
This method can be used as a jinja macro The caller will have to take care of the visible fields.
New in version 0.2: Accepts now arbitary attributes for the form
Represents the validation error of a formular.forms.Form instance.
Renders the validation error as a dl.
This method may raise a RuntimeError if the form has top-level errors.
Renders the validation error as a div with a h1. The errors are displayed as an ul if they cannot be displayed as a dl.
If the form has no validation errors this method returns an empty string.
Represents a formular.fields.ReCAPTCHAField as an UI-Element.
New in version 0.2.