{{ define "controls_pattern.html" }} {{ template "demo_doc_start" . }} {{ template "demo_masthead" (dict "label" "Pattern Demo" "title" .Title "lead" "Canonical actions, segmented filters, row selection and bulk-action control bar." "back_url" "/" "back_text" "← Back to catalog") }}

Buttons

{{ if .SimulateLoading }} Loading… {{ else }} Simulate loading {{ end }}
Export Import Open modal

Segmented Status Filter

{{ .Pager.TotalItems }} filtered · page {{ .Pager.Page }}/{{ .Pager.TotalPages }} · {{ .SelectedCount }} selected

Selection Table

Checkbox rows + bulk action preview + global selection across pages
{{ if .ActionMessage }}
{{ .ActionMessage }}
{{ end }}

Visible on this page: {{ .VisibleCount }} · Selected on this page: {{ .SelectedVisible }}{{ if gt .SelectedHidden 0 }} · Selected on other page(s): {{ .SelectedHidden }}{{ end }}

{{ range .Rows }} {{ end }}
Name Category Status
{{ if .Selected }}☑{{ else }}☐{{ end }} {{ .Name }} {{ .Type }} {{ .Status }}
{{ if gt .Pager.TotalPages 1 }} {{ end }}
{{ template "demo_doc_end" . }} {{ end }}