element#
- class predict_backend.page.element.Element(_type, params, content, title='', description='', show_title=True, show_description=True, _id='', label='', placeholder='')#
Bases:
ABCAn Element in Predict.
- Parameters:
_type (
ElementType) – The type of element.params (
dict) – The parameters for that element.content (
Union[dict,list,str]) – The content of the element._id (
str) – The ID of the element, defaults to None.title (
str) – The title of the element, defaults to ‘’.description (
str) – The description of the element, defaults to ‘’.show_title (
bool) – Whether to show the title on the page when rendered, defaults to True.show_description (
bool) – Whether to show the description to the page when rendered, defaults to True.label (
str) – The label of the element, defaults to ‘’.placeholder (
str) – The placeholder of the element, defaults to ‘’.