This page contains documentation for available blueprints registered in the factory. This list is auto-generated and contains documentation of the following packages:
Properties
name | default | description |
---|---|---|
mode | 'python' |
ACE Mode.
Used by:
|
required | False global |
Whether this value is required or not.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
theme | 'github' |
ACE Theme.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
add | True |
Render
Used by:add action.
|
class | 'array' |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
error_class | 'error' |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
remove | True |
Render
Used by:remove action.
|
required | False |
Whether this value is required or not.
Used by:
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
sort | True |
Render
Used by:move up and move down actions.
|
static | False |
Array is immutable. No Array actions are rendered. If True,
Used by:add ,
remove and sort properties are ignored.
|
table_class | None |
CSS classes rendered on array table.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- |
|
jquery.ui.autocomplete
to offer the user a selection based on the input
given so far.Properties
name | default | description |
---|---|---|
class | 'autocomplete' |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
delay | '300' |
Delay in milliseconds.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
minLength | '1' |
Minimum input length to trigger autocomplete.
Used by:
|
required | False global |
Whether this value is required or not.
Used by:
|
required_class | 'required' |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
source | required/ not set |
Autocomplete source as python iterable or string defining JSON view callback.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
-/- | -/- | -/- |
Properties
name | default | description |
---|---|---|
autofocus | None global |
Whether this field gets the focus automatically or not (if browser supports
it).
Used by:
|
checked | None |
Set ‘checked’ attribute explicit. If not given, compute by value.
Used by:
|
class | 'checkbox' |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
data | {} global |
Additional data rendered as HTML5 data attributes on DOM Element.
Used by:
|
disabled | False |
Flag whether checkbox is disabled.
Used by:
|
display_proxy | False global |
If ‘True’ and widget mode ‘display’, widget value gets rendered as hidden
input.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
format | 'bool' |
Data-type of the extracted value. One out of
Used by:bool or string .
|
required | False global |
Whether this value is required or not.
Used by:
|
required_class | 'required' |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
size | None global |
Allowed input size.
Used by:
|
title | None global |
Optional help text to be rendered in the title attribute.
Used by:
|
vocabulary | {False: u'No', True: u'Yes', <UNSET>: u'Unset'} |
In display mode and if
Used by:`bool` is set to `True` this mapping will be
used for display of the value. Expected keys are `True` , `False` and
`UNSET` .
|
with_label | False |
Render empty label tag after visible checkbox in order to make checkbox UI customizable via CSS like so: input.large_checkbox {
display: none;
}
input.large_checkbox + label {
width: 59px;
height: 60px;
background: url('/checkbox_large.png');
}
input.large_checkbox:checked + label {
background: url('/checkbox_large_selected.png');
}
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
allow_single_deselect | None |
Allow deselection of single elements.
Used by:
|
class | 'chosen' |
Common CSS-class to put on.
Used by:
|
data | {} global |
Additional data rendered as HTML5 data attributes on DOM Element.
Used by:
|
disable_search | None |
Disable search at all.
Used by:
|
disable_search_threshold | None |
Disable the threshold, when the search popup opens.
Used by:
|
disabled | None global |
Disables input.
Used by:
|
max_selected_options | None |
Maximum number of selected options.
Used by:
|
multivalued | False |
Used by:
|
new_values | None |
Allow adding new values.
For: yafowil js integration.
Values: [True|False|None (default)].
Used by:
|
no_results_text | None |
Text for no results.
Used by:
|
placeholder_text | None |
Placeholder text.
Used by:
|
required | False global |
Whether this value is required or not.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
search_contains | None |
Search also for substrings. Allowed values [True|False|None]. When using
None or just not setting this value, the default of the Javascript widget is
used.
Used by:
|
single_backstroke_delete | None |
A single backstroke deletes the selected option.
Used by:
|
template | '%s' global |
Format string with pythons built-in string format template. If a callable
is given it will be used instead and is called with
Used by:widget and data as
parameters.
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
structural | False global |
If a compound is structural, it will be omitted in the dotted-path levels and
will not have an own runtime-data.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
class | 'crontab widget' |
CSS classes for cron widget wrapper DOM element.
|
lang | None |
End year. Defaults to current year + 9
|
structural | False global |
If a compound is structural, it will be omitted in the dotted-path levels and
will not have an own runtime-data.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
class | 'datetime' |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
dateinput_class | 'dateinput' |
CSS class rendered on date input field.
|
datepicker | False |
Flag whether date picker is enabled.
Used by:
|
datepicker_class | 'datepicker' |
Flag whether date picker is enabled.
Used by:
|
delimiter | '.' |
Delimiter used to render date in input field.
|
disabled | False |
Disables input.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
format | '%Y.%m.%d %H:%M' |
Pattern accepted by
Used by:datetime.strftime or callable taking widget and
data as parameters returning unicode or utf-8 string. Used if widget mode is
display .
|
locale | 'iso' |
Date input format locale.
|
required | False global |
Whether this value is required or not.
Used by:
|
required_class | 'required' |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
time | False |
Flag whether time input should be rendered.
|
timeinput_class | 'timeinput' |
CSS class rendered on time input field.
|
timepicker | False |
Flag whether time picker is enabled.
Used by:
|
timepicker_class | 'timepicker' |
jquery.ui timepicker binds to this class.
Used by:
|
tzinfo | None |
Python datetime tzinfo object.
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
class | None global |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
error_class | 'error' |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
key_class | 'keyfield' |
CSS classes rendered on key input fields.
|
required | False global |
Whether this value is required or not.
Used by:
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
static | False |
Makes keys immutable.
Used by:
|
table_class | 'dictwidget' |
CSS classes rendered on dict table.
Used by:
|
value_class | 'valuefield' |
CSS classes rendered on value input fields.
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- |
|
Blueprint rendering a ‘<div>’ element.
This is a hybrid blueprint. Check leaf
property for details.
Properties
name | default | description |
---|---|---|
class | None |
CSS classes for div tag.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
data | None |
Dict containing data attributes for div tag.
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
id | None |
Id attribute for div tag.
Used by:
|
leaf | None global |
Leaf property can be used in conjunction with If set True, it causes bypassing auto delegation of extraction and rendering
to This is useful if mixing blueprints which renders and handles compounds on it’s own with blueprints using hybrid rendering and extraction in order to prevent side effects due to multiple child rendering and extraction.
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Add-on tree-widget yafowil.widget.dynatree utilizing the jQuery plugin jquery.dynatree.js (at google-code).
Additional this widget triggers the javascript event yafowilDynatreeSelect
via jQuery on elements with class dynatreeSelectSensitive
.
Properties
name | default | description |
---|---|---|
autoCollapse | False |
Automatically collapse all siblings, when another node is expanded.
Used by:
|
checkbox | True |
Wether to show checkboxes or not.
Used by:
|
class | None global |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
imagePath | 'skin-bootstrap' |
Path to a folder containing icons.
Used by:
|
minExpandLevel | '1' |
Number of levels which are not allowed to collapse.
Used by:
|
required | False global |
Whether this value is required or not.
Used by:
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
rootVisible | False |
Wether a root node is shown or not.
Used by:
|
selectMode | '1' |
1=single selection, 2=multiple selection, 3=multi-hier-mode. In single
selection mode expected value is a string, in other modes a iterable of
strings.
Used by:
|
source | required/ not set | The vocabulary source. This can be either [o]dict, string or a a callable returning one of both. If a dict is passed or returned by the callable, the vocabulary is rendered inline. The dict keys are used as values, dicts value is a tuple of (title, children), where title is shown in the tree and children is either None or a dict of the same structure. If a string is passed it is considered as an URL to fetch the vocabulay from. It is returned as JSON in the format described in the original jquery.dynatreee.js documentation. If a callable is passed it expects widget and data as parameters and has to return either a string or a dict as described above.
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
-/- | -/- | -/- |
Properties
name | default | description |
---|---|---|
allowed_datatypes | [<type 'str'>, <type 'unicode'>] |
List of allowed datatypes. If
Used by:UNSET , datatype converters are not
restricted.
|
class | 'email' |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
datatype | None global |
Callable for converting extracted value to output datatype.
Custom converter callables must raise one out of the following exceptions if conversion fails:
|
datatype_message | None global |
Custom extraction error message if
Used by:datatype conversion fails.
|
display_proxy | False global |
If ‘True’ and widget mode ‘display’, widget value gets rendered as hidden
input.
Used by:
|
emptyvalue | required/ not set |
If configured and received value in request is empty, return as extracted
value.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
required | False global |
Whether this value is required or not.
Used by:
|
required_class | 'required' |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
template | '%s' global |
Format string with pythons built-in string format template. If a callable
is given it will be used instead and is called with
Used by:widget and data as
parameters.
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
class | 'error' |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
message_class | 'errormessage' |
CSS class to apply to inner message-tag.
Used by:
|
message_tag | 'div' |
HTML tag to use to enclose each error message.
Used by:
|
position | 'inner-before' |
Error can be rendered at 3 different positions:
Used by:before / after the
prior rendered output or with inner-before / inner-after it puts the
prior rendered output inside the tag used for the error message (beofre or
after the message.
|
render_empty | False |
Render tag even if there is no error message.
Used by:
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
tag | 'div' |
HTML tag to use to enclose all error messages.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
-/- |
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
class | 'field' |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
witherror | None |
Put the class given with this property on the div if an error happened.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
-/- |
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
class | None |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
legend | False |
Content of legend tag if legend should be rendered.
Used by:
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
structural | False global |
If a compound is structural, it will be omitted in the dotted-path levels and
will not have an own runtime-data.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
accept | None |
Accepted mimetype.
Used by:
|
autofocus | None global |
Whether this field gets the focus automatically or not (if browser supports
it).
Used by:
|
class | None global |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
placeholder | None global |
Whether this input has a placeholder value or not (if browser supports it).
Used by:
|
required | False global |
Whether this value is required or not.
Used by:
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
action | required/ not set |
Target web address (URL) to send the form to.
Used by:
|
class | None global |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
enctype | 'multipart/form-data' |
Encryption type of the form. Only relevant for method
Used by:post . Expect one out
of application/x-www-form-urlencoded or multipart/form-data .
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
method | 'post' |
One out of
Used by:get or post .
|
novalidate | True |
Flag whether HTML5 form validation should be suppressed.
Used by:
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
structural | False global |
If a compound is structural, it will be omitted in the dotted-path levels and
will not have an own runtime-data.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
class | 'help' |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
help | '' |
Help text.
Used by:
|
position | 'before' |
Help can be rendered at 3 different positions:
Used by:before / after the
prior rendered output or with inner-before / inner-after it puts the
prior rendered output inside the tag used for the help message (beofre or
after the message.
|
render_empty | False |
Render tag even if there is no help message.
Used by:
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
tag | 'div' |
HTML tag to use to enclose all help messages.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
-/- |
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
accept | 'image/*' |
Accepted mimetype of image.
Used by:
|
alt | '' |
Image alternative text.
Used by:
|
autofocus | None global |
Whether this field gets the focus automatically or not (if browser supports
it).
Used by:
|
class | 'image' |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
crop | None |
Crop extracted file to size at offset. The created cropped image gets placed
in the return value returned by file extractor under key
|
error_class | 'error' |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
maxdpi | None |
Maximum DPI of image defined as 2-tuple containing (x, y).
Used by:
|
maxsize | None |
Maximum size of image defined as 2-tuple containing (width, height) in
pixel as integer.
Used by:
|
mindpi | None |
Minimum DPI of image defined as 2-tuple containing (x, y).
Used by:
|
minsize | None |
Minimum size of image defined as 2-tuple containing (width, height) in
pixel as integer.
Used by:
|
placeholder | None global |
Whether this input has a placeholder value or not (if browser supports it).
Used by:
|
required | False |
Whether this value is required or not.
Used by:
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
scales | None |
Scales to create on extraction. Scales are defined as dict, where the key
represents the scale name and the value is a 2-tuple containing (width, height)
in pixel. The created scales get placed in the return value returned by file
extractor under key
Used by:scales .
|
src | None |
Image URL if image present and displaying is desired.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
class | None global |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
for | None |
Optional dottedpath of widget to be labled
Used by:
|
label | required/ not set |
Text to be displayed as a label.
Used by:
|
position | 'before' |
Label can be rendered at 3 different positions:
Used by:before or after the
prior rendered output or with inner it puts the prior rendered output
inside the label tag.
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
-/- |
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
allowed_datatypes | <UNSET> global |
List of allowed datatypes. If
Used by:UNSET , datatype converters are not
restricted.
|
autofocus | None global |
Whether this field gets the focus automatically or not (if browser supports
it).
Used by:
|
class | 'lines' |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
cols | 40 |
Number of characters.
Used by:
|
data | {} global |
Additional data rendered as HTML5 data attributes on DOM Element.
Used by:
|
datatype | None global |
Callable for converting extracted value to output datatype.
Custom converter callables must raise one out of the following exceptions if conversion fails:
|
datatype_message | None global |
Custom extraction error message if
Used by:datatype conversion fails.
|
disabled | None global |
Disables input.
Used by:
|
display_proxy | False global |
If ‘True’ and widget mode ‘display’, widget value gets rendered as hidden
input.
Used by:
|
emptyvalue | required/ not set |
If configured and received value in request is empty, return as extracted
value.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
placeholder | None global |
Whether this input has a placeholder value or not (if browser supports it).
Used by:
|
readonly | None |
Flag textarea is readonly.
Used by:
|
required | False global |
Whether this value is required or not.
Used by:
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
rows | 8 |
Number of lines.
Used by:
|
title | None global |
Optional help text to be rendered in the title attribute.
Used by:
|
wrap | None |
Either
Used by:soft , hard , virtual , physical or off .
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
class | 'location' |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
error_class | 'error' |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
lat | 47.2667 |
Initial map center point latitude (north/south).
Used by:
|
lon | 11.3833 |
Initial map center point longitude (east/west).
Used by:
|
min_zoom | 2 |
Maximum map zoom level.
|
required | False |
Whether this value is required or not.
Used by:
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
zoom | 12 |
Initial map zoom level.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
autofocus | None global |
Whether this field gets the focus automatically or not (if browser supports
it).
Used by:
|
block_class | required/ not set |
Used by:
|
class | 'multiselect' |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
data | {} global |
Additional data rendered as HTML5 data attributes on DOM Element.
Used by:
|
datatype | None global |
Callable for converting extracted value to output datatype.
Custom converter callables must raise one out of the following exceptions if conversion fails:
|
disabled | None global |
Disables input.
Used by:
|
emptyvalue | required/ not set |
If configured and received value in request is empty, return as extracted
value.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
format | 'block' |
Used by:
|
label_checkbox_class | required/ not set |
Used by:
|
label_radio_class | required/ not set |
Used by:
|
listing_label_position | required/ not set |
Used by:
|
listing_tag | required/ not set |
Used by:
|
multivalued | True |
Used by:
|
placeholder | None global |
Whether this input has a placeholder value or not (if browser supports it).
Used by:
|
required | False global |
Whether this value is required or not.
Used by:
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
size | None |
Allowed input size.
Used by:
|
template | '%s' global |
Format string with pythons built-in string format template. If a callable
is given it will be used instead and is called with
Used by:widget and data as
parameters.
|
title | None global |
Optional help text to be rendered in the title attribute.
Used by:
|
vocabulary | required/ not set |
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
allowed_datatypes | [<type 'int'>, <type 'float'>, 'int', 'integer', 'float'] |
List of allowed datatypes. If
Used by:UNSET , datatype converters are not
restricted.
|
class | 'number' |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
datatype | <type 'float'> |
Callable for converting extracted value to output datatype. Allowed datatypes
are
|
datatype_message | None global |
Custom extraction error message if
Used by:datatype conversion fails.
|
display_proxy | False global |
If ‘True’ and widget mode ‘display’, widget value gets rendered as hidden
input.
Used by:
|
emptyvalue | <UNSET> |
If configured and received value in request is empty, return as extracted
value.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
max | None |
Maximum value.
Used by:
|
min | None |
Minimum value.
Used by:
|
required | False global |
Whether this value is required or not.
Used by:
|
required_class | 'required' |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
step | None |
Stepping value must be in.
Used by:
|
template | '%s' global |
Format string with pythons built-in string format template. If a callable
is given it will be used instead and is called with
Used by:widget and data as
parameters.
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Password blueprint.
The password is never rendered to markup, instead
yafowil.common.PASSWORD_NOCHANGE_VALUE
is set as value
property on
dom element. See yafowil.common.password_extractor
for details on
password extraction.
Properties
name | default | description |
---|---|---|
ascii | False |
Flag ascii check should performed.
Used by:
|
autocomplete | None global |
Switch autocomplete explizit to
Used by:on or off .
|
autofocus | None global |
Whether this field gets the focus automatically or not (if browser supports
it).
Used by:
|
class | 'password' |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
data | {} global |
Additional data rendered as HTML5 data attributes on DOM Element.
Used by:
|
disabled | None global |
Disables input.
Used by:
|
displayplaceholder | u'********' |
Placeholder shown in display mode if password was set.
Used by:
|
emptyvalue | required/ not set |
If configured and received value in request is empty, return as extracted
value.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
minlength | -1 |
Minimum length of password.
Used by:
|
placeholder | None global |
Whether this input has a placeholder value or not (if browser supports it).
Used by:
|
required | False global |
Whether this value is required or not.
Used by:
|
required_class | 'required' |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
size | None global |
Maximum length of password.
Used by:
|
strength | -1 |
Integer value <= 4. Define how many rules must apply to consider a password
valid.
Used by:
|
title | None global |
Optional help text to be rendered in the title attribute.
Used by:
|
weak_password_message | u'Password too weak' global |
Message shown if password is not strong enough.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
allowed_datatypes | <UNSET> global |
List of allowed datatypes. If
Used by:UNSET , datatype converters are not
restricted.
|
class | None |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
datatype | None global |
Callable for converting extracted value to output datatype.
Custom converter callables must raise one out of the following exceptions if conversion fails:
|
datatype_message | None global |
Custom extraction error message if
Used by:datatype conversion fails.
|
emptyvalue | required/ not set |
If configured and received value in request is empty, return as extracted
value.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
lang | 'en' |
Language code.
Used by:
|
private_key | '' |
reCAPTCHA private key. Used when communicating between your server and our
server. Be sure to keep it a secret.
Used by:
|
public_key | '' |
reCAPTCHA public key. Used in the JavaScript code that is served to your users.
Used by:
|
theme | 'red' |
Used Theme. Available default themes are ‘red’ (Default), ‘white’, ‘blackglass’
and ‘clean’.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
autofocus | None global |
Whether this field gets the focus automatically or not (if browser supports
it).
Used by:
|
class | 'richtext' |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
cols | 80 |
Number of characters.
Used by:
|
data | {} global |
Additional data rendered as HTML5 data attributes on DOM Element.
Used by:
|
disabled | None global |
Disables input.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
placeholder | None global |
Whether this input has a placeholder value or not (if browser supports it).
Used by:
|
readonly | None |
Flag for readonly.
Used by:
|
required | False global |
Whether this value is required or not.
Used by:
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
rows | 25 |
Number of lines.
Used by:
|
title | None global |
Optional help text to be rendered in the title attribute.
Used by:
|
wrap | None |
Either
Used by:soft , hard , virtual , physical or off .
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
class | 'search' |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
display_proxy | False global |
If ‘True’ and widget mode ‘display’, widget value gets rendered as hidden
input.
Used by:
|
emptyvalue | required/ not set |
If configured and received value in request is empty, return as extracted
value.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
required | False global |
Whether this value is required or not.
Used by:
|
required_class | 'required' |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
template | '%s' global |
Format string with pythons built-in string format template. If a callable
is given it will be used instead and is called with
Used by:widget and data as
parameters.
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
allowed_datatypes | <UNSET> global |
List of allowed datatypes. If
Used by:UNSET , datatype converters are not
restricted.
|
autofocus | None global |
Whether this field gets the focus automatically or not (if browser supports
it).
Used by:
|
block_class | None |
CSS class to render on selection if block format.
Used by:
|
checkbox_label_class | None |
CSS class to render on checkbox labels.
|
checkbox_wrapper_class | None |
CSS class to render on checkbox wrapper.
|
class | 'select' |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
data | {} global |
Additional data rendered as HTML5 data attributes on DOM Element.
Used by:
|
datatype | None global |
Callable for converting extracted value to output datatype.
Custom converter callables must raise one out of the following exceptions if conversion fails:
|
datatype_message | None global |
Custom extraction error message if
Used by:datatype conversion fails.
|
disabled | None global |
Disables the whole widget or single selections. To disable the whole widget
set the value to ‘True’. To disable single selection pass a iterable of keys to
disable, i.e.
Used by:['foo', 'baz'] . Defaults to False.
|
display_proxy | False global |
If ‘True’ and widget mode ‘display’, widget value gets rendered as hidden
input.
Used by:
|
emptyvalue | required/ not set |
If configured and received value in request is empty, return as extracted
value.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
format | 'block' |
Every value except ‘block’ results in either a list of radio buttons or
checkboxes depending on the ‘multivalued’ property.
Used by:
|
label_checkbox_class | None |
CSS class to render on checkbox labels. This property is deprecated and will be remove as of yafowil 2.2. Use
|
label_radio_class | None |
CSS class to render on radio button labels. This property is deprecated and will be remove as of yafowil 2.2. Use
|
listing_label_position | 'inner-after' |
Label position if format is ‘single’. Behaves the same way as label widget
position property.
Used by:
|
listing_tag | 'div' |
Desired rendering tag for selection if selection format is ‘single’. Valid
values are ‘div’ and ‘ul’.
Used by:
|
multivalued | None |
Flag whether multiple items can be selected.
Used by:
|
placeholder | None global |
Whether this input has a placeholder value or not (if browser supports it).
Used by:
|
radio_label_class | None |
CSS class to render on radio button labels.
|
radio_wrapper_class | None |
CSS class to render on radio button wrapper.
|
required | False global |
Whether this value is required or not.
Used by:
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
size | None |
Size of input if multivalued and format ‘block’.
Used by:
|
template | '%s' global |
Format string with pythons built-in string format template. If a callable
is given it will be used instead and is called with
Used by:widget and data as
parameters.
|
title | None global |
Optional help text to be rendered in the title attribute.
Used by:
|
vocabulary | required/ not set |
Vocabulary to be used for the selection list. Expects a dict-like or an
iterable or a callable which returns one of both first. An iterable can consist
out of strings or out of tuples with
Used by:(key, value) . The items in the result
list are in the same order like the vocabulary.
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
adaptContainerCssClass | None |
Function that filters/renames css classes as they are copied from the source tag to the select2 container tag: adaptContainerCssClass(clazz)
The default implementation applies all classes without modification.
|
adaptDropdownCssClass | None |
Function that filters/renames css classes as they are copied from the source tag to the select2 dropdown tag: adaptDropdownCssClass(clazz)
The default implementation always returns null thereby filtering out all classes.
|
ajax | None |
Options for the built in ajax query function. This object acts as a shortcut for having to manually write a function that performs ajax requests. The built-in function supports more advanced features such as throttling and dropping out-of-order responses. In order for this function to work Select2 should be attached to a input type=’hidden’ tag instead of a select.
|
ajaxurl | None |
Ajax URL to JSON view returning an array of objects like: [{id: 'id', text: 'text'}]
|
allowClear | None |
Whether or not a clear button is displayed when the select box has a selection. The button, when clicked, resets the value of the select box back to the placeholder, thus this option is only available when the placeholder is specified. This option only works when the placeholder is specified. When attached to a select an option with an empty value must be provided. This is the option that will be selected when the button is pressed since a select box requires at least one selection option. Also, note that this option only works with non-multi-value based selects because multi-value selects always provide such a button for every selected option.
|
closeOnSelect | None |
If set to false the dropdown is not closed after a selection is made, allowing for rapid selection of multiple items. By default this option is set to true. Only applies when configured in multi-select mode.
|
containerCss | None |
Inline css that will be added to select2’s container. Either an object
containing css property/value key pairs or a function that returns such an
object.
Used by:
|
containerCssClass | None |
Css class that will be added to select2’s container tag.
Used by:
|
createSearchChoice | None |
Creates a new selectable choice from user’s search term. Allows creation of choices not available via the query function. Useful when the user can create choices on the fly, eg for the ‘tagging’ usecase: createSearchChoice(term)
If the function returns undefined or null no choice will be created. If a new choice is created it is displayed first in the selection list so that user may select it by simply pressing enter. When used in combination with input[type=hidden] tag care must be taken to sanitize the id attribute of the choice object, especially stripping , as it is used as a value separator.
|
createSearchChoicePosition | None |
Define the position where to insert element created by createSearchChoice. The following values are supported:
|
data | None |
Options for the built in query function that works with arrays. If this element contains an array, each element in the array must contain id and text keys. Alternatively, this element can be specified as an object in which results key must contain the data as an array and a text key can either be the name of the key in data items that contains text or a function that retrieves the text given a data element from the array.
|
dropdownAutoWidth | None |
When set to true attempts to automatically size the width of the dropdown
based on content inside.
Used by:
|
dropdownCss | None |
Inline css that will be added to select2’s dropdown container. Either an
object containing css property/value key pairs or a function that returns such
an object.
Used by:
|
dropdownCssClass | None |
Css class that will be added to select2’s dropdown container.
Used by:
|
escapeMarkup | None |
String escapeMarkup(String markup) Function used to post-process markup returned from formatter functions. By default this function escapes html entities to prevent javascript injection.
|
formatInputTooLong | None |
String containing “Search input too long” message, or Function used to render the message: formatInputTooLong(term, maxLength)
|
formatInputTooShort | None |
String containing “Search input too short” message, or Function used to render the message: formatInputTooShort(term, minLength)
|
formatLoadMore | None |
String containing “Loading more results” message, or Function used to render the message: formatLoadMore(pageNumber)
|
formatNoMatches | None |
String containing “No matches” message, or Function used to render the message: formatNoMatches(term)
|
formatResult | None |
Function used to render a result that the user can select: formatResult(object, container, query)
The default implementation expects the object to have a text property that is returned. The implementation may choose to append elements directly to the provided container object, or return a single value and have it automatically appended. When attached to a select the original <option> (or <optgroup>) element is accessible inside the specified function through the property item.element: format(item) {
var originalOption = item.element;
return item.text
}
|
formatResultCssClass | None |
Function used to add css classes to result elements: formatResultCssClass(object)
By default when attached to a select css classes from options will be automatically copied.
|
formatSearching | None |
String containing “Searching…” message, or Function used to render the message that is displayed while search is in progress: formatSearching()
|
formatSelection | None |
Function used to render the current selection: formatSelection(object, container)
The default implementation expects the object to have a text property that is returned. The implementation may choose to append elements directly to the provided container object, or return a single value and have it automatically appended. When attached to a select the original <option> (or <optgroup>) element is accessible inside the specified function through the property item.element: format(item) {
var originalOption = item.element;
return item.text
}
|
formatSelectionTooBig | None |
String containing “You cannot select any more choices” message, or Function used to render the message: formatSelectionTooBig(maxSize)
|
id | None |
Function used to get the id from the choice object or a string representing the key under which the id is stored: id(object)
The default implementation expects the object to have a id property that is returned.
|
initSelection | None |
Called when Select2 is created to allow the user to initialize the selection based on the value of the element select2 is attached to. Essentially this is an id->object mapping function: initSelection(element, callback)
This function will only be called when there is initial input to be processed.
|
inputtag | False |
Render widget as input element instead of selection.
Used by:
|
loadMorePadding | None |
Defines how many pixels need to be below the fold before the next page is
loaded. The default value is 0 which means the result list needs to be
scrolled all the way to the bottom for the next page of results to be loaded.
This option can be used to trigger the load sooner, possibly resulting in a
smoother user experience.
Used by:
|
matcher | None |
Used to determine whether or not the search term matches an option when a built-in query function is used. The built in query function is used when Select2 is attached to a select, or the local or tags helpers are used: matcher(term, text, option)
The default implementation is case insensitive and matches anywhere in the term: function(term, text) {
return text.toUpperCase().indexOf(term.toUpperCase()) >= 0;
}
|
maximumInputLength | None |
Maximum number of characters that can be entered for an input.
Used by:
|
maximumSelectionSize | None |
The maximum number of items that can be selected in a multi-select control. If this number is less than 1 selection is not limited. Once the number of selected items reaches the maximum specified the contents of the dropdown will be populated by the formatSelectionTooBig function.
|
minimumInputLength | None |
Number of characters necessary to start a search.
Used by:
|
minimumResultsForSearch | None |
The minimum number of results that must be initially (after opening the dropdown for the first time) populated in order to keep the search field. This is useful for cases where local data is used with just a few results, in which case the search box is not very useful and wastes screen space. The option can be set to a negative value to permanently hide the search field. Only applies to single-value select boxes.
|
multiple | None |
Whether or not Select2 allows selection of multiple values. When Select2 is attached to a select element this value will be ignored and select’s multiple attribute will be used instead.
|
nextSearchTerm | None |
Function used to determine what the next search term should be. Function can be used when the dropdown is configured in single and multi-select mode. It is triggered after selecting an item. In single mode it is also triggered after initSelection (when provided).
|
openOnEnter | None |
If set to true the dropdown is opened when the user presses the enter key
and Select2 is closed. By default this option is enabled.
Used by:
|
placeholder | None |
Initial value that is selected if no other selection is made. The placeholder can also be specified as a data-placeholder attribute on the select or input element that Select2 is attached to. Note that because browsers assume the first option element is selected in non-multi-value select boxes an empty first option element must be provided (<option></option>) for the placeholder to work.
|
placeholderOption | None |
When attached to a select resolves the option that should be used as the placeholder. Can either be a function which given the select element should return the option element or a string first to indicate that the first option should be used. This option is useful when Select2’s default of using the first option only if it has no value and no text is not suitable.
|
query | None |
Function used to query results for the search term: query(options)
In order for this function to work Select2 should be attached to a input type=’hidden’ tag instead of a select.
|
required | False global |
Whether this value is required or not.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
selectOnBlur | None |
Set to true if you want Select2 to select the currently highlighted option
when it is blurred.
Used by:
|
separator | None |
Separator character or string used to delimit ids in value attribute of the
multi-valued selects. The default delimiter is the , character.
Used by:
|
sortResults | None |
Used to sort the results list for searching right before display. Useful for sorting matches by relevance to the user’s search term: sortResults(results, container, query)
Defaults to no sorting: function(results, container, query) {
return results;
}
|
tags | None |
Puts Select2 into ‘tagging’ mode where the user can add new choices and
pre-existing tags are provided via this options attribute which is either an
array or a function that returns an array of objects or strings. If strings
are used instead of objects they will be converted into an object that has
an id and text attribute equal to the value of the string.
Used by:
|
tokenSeparators | None |
An array of strings that define token separators for the default tokenizer
function. By default, this option is set to an empty array which means
tokenization using the default tokenizer is disabled. Usually it is sensible
to set this option to a value similar to [‘,’, ‘ ‘].
Used by:
|
tokenizer | None |
A tokenizer function can process the input typed into the search field after every keystroke and extract and select choices. This is useful, for example, in tagging scenarios where the user can create tags quickly by separating them with a comma or a space instead of pressing enter. Tokenizer only applies to multi-selects: tokenizer(input, selection, selectCallback, opts)
|
width | None |
Controls the width style attribute of the Select2 container div. The following values are supported:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
change | None |
Optional Javascript
Used by:change callback as string.
|
data | {} |
Additional data redered as HTML data attributes on slider wrapper
DOM Element.
Used by:
|
height | None |
Height of slider if orientation is
Used by:vertical in pixel.
|
max | None |
Maximum slider value value. Defaults to 100.
Used by:
|
min | None |
Minimum slider value. Defaults to 0.
Used by:
|
orientation | None |
Slider Orientation. Either
Used by:horizontal or vertical .
|
range | None |
Slider Range. Either
Used by:True , 'min' or 'max' .
|
show_value | False |
Show value in addition to slider.
Used by:
|
slide | None |
Optional Javascript
Used by:slide callback as string.
|
step | None |
Snap slider to increments.
Used by:
|
unit | '' |
Slider value unit.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
action | True |
Marks this widget as an action. One out of
Used by:True or False .
|
class | None global |
Common CSS-class to put on.
Used by:
|
expression | True |
Flag or expression callable whether this action is available to the user
or not.
Used by:
|
handler | required/ not set |
Handler is a callable which get called if this action performs. It expects two
parameters:
Used by:widget , data .
|
label | required/ not set |
Label of the submit.
Used by:
|
next | required/ not set |
Next is a callable expected to return the web address. It expects a request as
the only parameter.
Used by:
|
skip | False |
Skips action and only perform next. One out of
Used by:True or False .
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
-/- |
|
|
-/- | -/- |
<table>
compound widget for table creation.Properties
name | default | description |
---|---|---|
class | None global |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
id | required/ not set |
Value of table id attribute.
Used by:
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
structural | False global |
If a compound is structural, it will be omitted in the dotted-path levels and
will not have an own runtime-data.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
class | None global |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
data | {} global |
Additional data rendered as HTML5 data attributes on DOM Element.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
tag | required/ not set |
HTML tag name.
Used by:
|
text | required/ not set |
Tag contents.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
-/- |
|
|
-/- | -/- |
<tbody>
compound widget for table creation.Properties
name | default | description |
---|---|---|
structural | False global |
If a compound is structural, it will be omitted in the dotted-path levels and
will not have an own runtime-data.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
<td>
compound widget for table creation.Properties
name | default | description |
---|---|---|
class | None global |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
colspan | required/ not set |
Value of colspan attribute.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
id | required/ not set |
Value of id attribute.
Used by:
|
leaf | None global |
Leaf property can be used in conjunction with If set True, it causes bypassing auto delegation of extraction and rendering
to This is useful if mixing blueprints which renders and handles compounds on it’s own with blueprints using hybrid rendering and extraction in order to prevent side effects due to multiple child rendering and extraction.
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
rowspan | required/ not set |
Value of rowspan attribute.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
allowed_datatypes | <UNSET> global |
List of allowed datatypes. If
Used by:UNSET , datatype converters are not
restricted.
|
autocomplete | None global |
Switch autocomplete explizit to
Used by:on or off .
|
autofocus | None global |
Whether this field gets the focus automatically or not (if browser supports
it).
Used by:
|
class | 'text' |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
data | {} global |
Additional data rendered as HTML5 data attributes on DOM Element.
Used by:
|
datatype | None global |
Callable for converting extracted value to output datatype.
Custom converter callables must raise one out of the following exceptions if conversion fails:
|
datatype_message | None global |
Custom extraction error message if
Used by:datatype conversion fails.
|
disabled | False |
Flag input field is disabled.
Used by:
|
display_proxy | False global |
If ‘True’ and widget mode ‘display’, widget value gets rendered as hidden
input.
Used by:
|
emptyvalue | required/ not set |
If configured and received value in request is empty, return as extracted
value.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
placeholder | None global |
Whether this input has a placeholder value or not (if browser supports it).
Used by:
|
required | False global |
Whether this value is required or not.
Used by:
|
required_class | 'required' |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
size | None global |
Allowed input size.
Used by:
|
template | '%s' global |
Format string with pythons built-in string format template. If a callable
is given it will be used instead and is called with
Used by:widget and data as
parameters.
|
title | None global |
Optional help text to be rendered in the title attribute.
Used by:
|
type | 'text' |
Type of input tag.
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
autofocus | None global |
Whether this field gets the focus automatically or not (if browser supports
it).
Used by:
|
class | 'textarea' |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
cols | 80 |
Number of characters.
Used by:
|
data | {} global |
Additional data rendered as HTML5 data attributes on DOM Element.
Used by:
|
disabled | None global |
Disables input.
Used by:
|
display_proxy | False global |
If ‘True’ and widget mode ‘display’, widget value gets rendered as hidden
input.
Used by:
|
emptyvalue | required/ not set |
If configured and received value in request is empty, return as extracted
value.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
placeholder | None global |
Whether this input has a placeholder value or not (if browser supports it).
Used by:
|
readonly | None |
Flag textarea is readonly.
Used by:
|
required | False global |
Whether this value is required or not.
Used by:
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
rows | 25 |
Number of lines.
Used by:
|
template | '%s' global |
Format string with pythons built-in string format template. If a callable
is given it will be used instead and is called with
Used by:widget and data as
parameters.
|
title | None global |
Optional help text to be rendered in the title attribute.
Used by:
|
wrap | None |
Either
Used by:soft , hard , virtual , physical or off .
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
<th>
compound widget for table creation.Properties
name | default | description |
---|---|---|
class | None global |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
colspan | required/ not set |
Value of colspan attribute.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
id | required/ not set |
Value of id attribute.
Used by:
|
label | required/ not set |
Explicit th content. If absent, rendered markup from downstream blueprint(s)
is used.
Used by:
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
rowspan | required/ not set |
Value of rowspan attribute.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
-/- |
|
|
-/- | -/- |
<thead>
compound widget for table creation.Properties
name | default | description |
---|---|---|
structural | False global |
If a compound is structural, it will be omitted in the dotted-path levels and
will not have an own runtime-data.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
class | 'time' |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
daytime | False |
Flag whether value is day of time. Setting this property or ‘timepicker’
property above to True results in day time range validation.
Used by:
|
disabled | False |
Disables input.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
format | 'string' |
Define widget value and extraction format. Either ‘string’, ‘number’ or
‘tuple’.
Used by:
|
required | False global |
Whether this value is required or not.
Used by:
|
required_class | 'required' |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
timeinput_class | 'timeinput' |
CSS class rendered on time input field.
|
timepicker | False |
Flag whether time picker is enabled.
Used by:
|
timepicker_class | 'timepicker' |
jquery.ui timepicker binds to this class.
Used by:
|
unit | 'hours' |
Only considered if ‘format’ is ‘number’. If unit is ‘hours’ value is float,
otherwise integer.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
<tr>
compound widget for table creation.Properties
name | default | description |
---|---|---|
class | None global |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
id | required/ not set |
Value of id attribute.
Used by:
|
required_class | None global |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
structural | False global |
If a compound is structural, it will be omitted in the dotted-path levels and
will not have an own runtime-data.
Used by:
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
class | 'url' |
Common CSS-class to put on.
Used by:
|
class_add | None global |
Additional CSS-class to put on.
Used by:
|
display_proxy | False global |
If ‘True’ and widget mode ‘display’, widget value gets rendered as hidden
input.
Used by:
|
emptyvalue | required/ not set |
If configured and received value in request is empty, return as extracted
value.
Used by:
|
error_class | None global |
CSS-class to put on in case of error.
Used by:
|
error_class_default | 'error' global |
Fallback CSS-class to put on in case of error if no specific class was
given.
Used by:
|
required | False global |
Whether this value is required or not.
Used by:
|
required_class | 'required' |
CSS-class to put on in case if required condition was not met.
Used by:
|
required_class_default | 'required' global |
CSS-class to apply if required condition was not met - if no specific class
was given.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
template | '%s' global |
Format string with pythons built-in string format template. If a callable
is given it will be used instead and is called with
Used by:widget and data as
parameters.
|
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |
Properties
name | default | description |
---|---|---|
color | None |
Show the color styles toolbar buttons.
Options: bootstrap-wysihtml5.
Values: [True|False|None (use default)].
Used by:
|
cols | 80 |
Number of characters.
|
emphasis | None |
Show the emphasis toolbar buttons.
Options: bootstrap-wysihtml5.
Values: [True|False|None (use default)].
Used by:
|
font-styles | None |
Show the font styles toolbar buttons.
Options: bootstrap-wysihtml5.
Values: [True|False|None (use default)].
Used by:
|
html | None |
Show the html toolbar button.
Options: bootstrap-wysihtml5.
Values: [True|False|None (use default)].
Used by:
|
image | None |
Show the image toolbar buttons.
Options: bootstrap-wysihtml5.
Values: [True|False|None (use default)].
Used by:
|
justify | None |
Show the justify styles toolbar buttons.
Options: bootstrap-wysihtml5.
Values: [True|False|None (use default)].
Used by:
|
link | None |
Show the link toolbar button.
Options: bootstrap-wysihtml5.
Values: [True|False|None (use default)].
Used by:
|
lists | None |
Show the list toolbar buttons.
Options: bootstrap-wysihtml5.
Values: [True|False|None (use default)].
Used by:
|
readonly | None |
Flag for readonly.
|
required | False global |
Whether this value is required or not.
Used by:
|
required_message | u'Mandatory field was empty' global |
Message to be shown if required condition was not met.
Used by:
|
rows | 10 |
Number of lines.
|
size | None |
Size of toolbar buttons.
Options: bootstrap-wysihtml5.
Values: [‘lg’|’sm’|’sx’|None (default)].
Used by:
|
wrap | None |
Either
soft , hard , virtual , physical or off . |
Chains
extractors | edit renderers | display renderers | preprocessors | builders |
---|---|---|---|---|
|
|
|
-/- | -/- |