Entity struct for table header configuration.
The header renders above the table toolbar (filters, bulk actions, etc.).
Mirrors MishkaGervaz.Form.Entities.Header for cross-DSL consistency.
Example
layout do
header do
title "Pages"
description "All published and draft pages."
icon "hero-document-text"
class "mb-6"
visible true
restricted false
end
endSee MishkaGervaz.Table.Dsl.Layout,
MishkaGervaz.Table.Entities.Footer,
MishkaGervaz.Table.Entities.Notice, and the form-side counterpart
MishkaGervaz.Form.Entities.Header.
Summary
Types
@type t() :: %MishkaGervaz.Table.Entities.Header{ __spark_metadata__: map() | nil, class: String.t() | nil, description: String.t() | (-> String.t()) | (map() -> String.t()) | nil, extra: map(), icon: String.t() | nil, render: (map() -> Phoenix.LiveView.Rendered.t()) | (map(), map() -> Phoenix.LiveView.Rendered.t()) | nil, restricted: boolean() | (map() -> boolean()), title: String.t() | (-> String.t()) | (map() -> String.t()) | nil, visible: boolean() | (map() -> boolean()) }