{{ title | safe }}
- {% if description %}{{ description | safe }}
{% endif %} -diff --git a/src/jinja/dialog.html.jinja b/src/jinja/dialog.html.jinja index 6af62d5..0400054 100644 --- a/src/jinja/dialog.html.jinja +++ b/src/jinja/dialog.html.jinja @@ -8,103 +8,87 @@ @param footer {string} [optional] - HTML content for the dialog footer. @param main_attrs {object} [optional] - Additional HTML attributes for the main container div. @param trigger_attrs {object} [optional] - Additional HTML attributes for the trigger button. - @param content_attrs {object} [optional] - Additional HTML attributes for the dialog content article. - @param content_header_attrs {object} [optional] - Additional HTML attributes for the dialog header. - @param content_body_attrs {object} [optional] - Additional HTML attributes for the dialog body section. - @param content_footer_attrs {object} [optional] - Additional HTML attributes for the dialog footer. - @param open {boolean} [optional] [default=False] - Whether the dialog should be open initially. - @param close_button {boolean} [optional] [default=True] - Whether to include a close button. - @param close_on_overlay_click {boolean} [optional] [default=True] - Whether clicking the overlay closes the dialog. + @param dialog_attrs {object} [optional] - Additional HTML attributes for the dialog content article. + @param header_attrs {object} [optional] - Additional HTML attributes for the dialog header. + @param body_attrs {object} [optional] - Additional HTML attributes for the dialog body section. + @param footer_attrs {object} [optional] - Additional HTML attributes for the dialog footer. + @param open {boolean} [optional] [default=false] - Whether the dialog should be open initially. + @param close_button {boolean} [optional] [default=true] - Whether to include a close button. + @param close_on_overlay_click {boolean} [optional] [default=true] - Whether clicking the overlay closes the dialog. #} {% macro dialog( - id, + id=None, trigger=None, title=None, description=None, footer=None, - main_attrs={}, + dialog_attrs={}, trigger_attrs={}, - content_attrs={}, - content_header_attrs={}, - content_body_attrs={}, - content_footer_attrs={}, - open=False, - close_button=True, - close_on_overlay_click=True + header_attrs={}, + body_attrs={}, + footer_attrs={}, + open=false, + close_button=true, + close_on_overlay_click=true ) %} -
{{ description | safe }}
{% endif %} -toast() macro for more details.
@param main_attrs {object} [optional] - Additional HTML attributes for the main toaster container div.
- @param is_fragment {boolean} [optional] [default=False] - If True, renders only the toast elements with hx-swap-oob="beforeend", suitable for htmx responses. Skips script and template inclusion.
+ @param is_fragment {boolean} [optional] [default=false] - If true, renders only the toast elements with hx-swap-oob="beforeend", suitable for htmx responses. Skips script and template inclusion.
#}
{% macro toaster(
id="toaster",
toasts=[],
- main_attrs={},
- is_fragment=False
+ attrs={}
) %}
{{ description }}
- {% endif %} -