MishkaGervaz.Table.Dsl.Layout (MishkaGervaz v0.0.1-alpha.3)

Copy Markdown View Source

Layout section DSL definition for table configuration.

Holds the table chrome — header, footer, and notice entities — mirroring the form layout section so authors learn one pattern.

Each chrome entity supports visible and restricted for the same access conventions used by column/filter/row_action.

Example

mishka_gervaz do
  table do
    identity do
      name :pages
    end

    layout do
      header do
        title "Pages"
        description "All published and draft pages."
        icon "hero-document-text"
      end

      footer do
        content "Sorted by priority."
        class "mt-2 text-xs text-gray-400"
      end

      notice :archived_warning do
        position :before_table
        type :warning
        icon "hero-archive-box"
        title "Viewing archived records"
        bind_to :archived_view
      end
    end

    columns do
      column :name
    end
  end
end

Summary

Functions

Returns the layout section definition.

Functions

section()

Returns the layout section definition.