Back to Jetson Inference

Macros

python/www/recognizer/templates/macros.html

latest732 B
Original Source

{# Jinja macro for creating a range slider that connects to a backend JSON REST API #} {% macro slider(id, rest_path, label, min=0.0, max=1.0, step=0.01, oninput=none) -%}

{{ label }}

{{ value }}

{%- endmacro %} {# Jinja macro for creating a checkbox element that connects to a backend JSON REST API #} {% macro checkbox(id, rest_path, label, label_columns=4, oninput=none) -%} {{ label }}

{%- endmacro %} {# Jinja macro for creating a card header #} {% macro card_header(collapse_id, title, subtitle, arrow='up') -%}

{{ title }}

{% if subtitle|length %}

({{ subtitle }})

{% endif %} {%- endmacro %} {# Jinja macro for the card event handlers#} {% macro collapse_handler(collapse_id) -%} {%- endmacro %}