Tecton Server Request Handler
- class q2_sdk.core.http_handlers.tecton_server_handler.Q2TectonServerRequestHandler(application, request, **kwargs)[source]
Bases:
Q2TectonBaseRequestHandler
RequestHandler meant to be used for requests incoming for Tecton Server Side Rendered Content.
- get_tecton_form(header, head_content='', foot_content='', page_padding=True, load_platform_css=True, load_utilities=True, load_elements=True, load_default_theme=True, routing_key='', hide_submit_button=False, **kwargs)[source]
Returns Q2TectonForm object that is automatically serialized into html when returned from a handler
- Parameters:
header – If populated, is rendered as an <h1> at the top of the page
head_content (
str
) – HTML injected into the <head> tagfoot_content (
str
) – HTML injected at the bottom of the <html> tagpage_padding (
bool
) – If True, adds a pad around the Form Elementload_platform_css (
bool
) – If True, add css variables for default tecton props and the current theme.load_utilities (
bool
) – If True, add utility css properties from q2-tecton-utilities.cssload_elements (
bool
) – If True, add script tags that loads Tecton UI components.load_default_theme (
bool
) – If True, add default theme css properties from q2-tecton-theme.cssrouting_key (
str
) – Creates a hidden input named routing_key which can be used by the extension to determine what step to run next of a multi-step flow.hide_submit_button (
bool
) – If True, this form will not have a submit button
- Return type: