_meta – If provided, this is the ‘meta’ instance from the form. I18n docs for information on message translations. Passed by the enclosing form during construction. _translations – A translations object providing message translations. _prefix – The prefix to prepend to the form name of this field, passed by _name – The name of this field, passed by the enclosing form during its You should never pass this value yourself. It is passed by the form itself duringĬonstruction. Will be given to the widget at render time. Render_kw ( dict) – If provided, a dictionary which provides default keywords that ![]() Widget – If provided, overrides the widget used to render the field. A reasonable default is set by the form,Īnd you shouldn’t need to set this manually.ĭefault – The default value to assign to the field, if no form or object ![]() Validators – A sequence of validators to call when validate is called.įilters – A sequence of filters which are run on input data by process.ĭescription – A description for the field, typically used for help text. ![]() Properties which can be used within your templates to render the field andĬonstruction _init_ ( label = None, validators = None, filters = (), description = '', id = None, default = None, widget = None, render_kw = None, _form = None, _name = None, _prefix = '', _translations = None, _meta = None ) ¶ Stores and processes data, and generates HTML for a form field.įield instances contain the data of that instance as well as theįunctionality to render it within your Form. The Field base class ¶ class wtforms.fields.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |