{# Reusable search input with debounced HTMX search — no Alpine #} {# Parameters: endpoint, target (CSS selector), placeholder (optional) #} {% set placeholder = placeholder | default('Search...') %} {% set target = target | default('#' + (table.table_id or 'dt-table') + '-body' if table else '#search-results') %}
{# Clear button — shown/hidden by dz.js on input event #}
{% if not table %} {% endif %}