MishkaGervaz.Table.Dsl.Defaults (MishkaGervaz v0.0.2)

Copy Markdown View Source

DSL section for domain-level table configuration.

These table defaults are inherited by all resources in the domain that use MishkaGervaz.Resource.

Used by MishkaGervaz.Domain extension.

Summary

Functions

The domain-level table section — the defaults every resource in the domain inherits.

Functions

section()

The domain-level table section — the defaults every resource in the domain inherits.

A resource overrides these per key, never per block:

mishka_gervaz do
  table do
    actor_key :current_user

    pagination do
      type :load_more
      page_size 20
    end

    actions do
      read {:master_read, :read}
    end
  end
end