asset_selection#

class predict_backend.page.elements.asset_selection.AssetSelection(label, _type, title='', description='', show_title=True, show_description=True)#

Bases: InputElement

Generates an Asset Selection element.

Parameters:
  • label (str) – The label of the asset to search for.

  • _type (AssetType) – The type of asset to search for.

  • title (str) – The title of the asset selection element, defaults to ‘’.

  • description (str) – The description of the asset selection element, defaults to ‘’.

  • show_title (bool) – Whether or not to show the title on the page when rendered, defaults to True.

  • show_description (bool) – Whether or not to show the description to the page when rendered, defaults to True.

get_value()#

Get the value of an element. If the user has interacted with the value, the default will be updated.

update_from_user_input(user_input)#

Updates the element default values from user input.

Parameters:

user_input – Input from a user on the platform.