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

Copy Markdown View Source

DSL definitions for MishkaGervaz.

This module assembles all MishkaGervaz DSL sections into a top-level mishka_gervaz section. Supports:

Both sections are siblings inside mishka_gervaz do … end and may be used independently or together on a single resource.

Usage

defmodule MyApp.Resource do
  use Ash.Resource,
    extensions: [MishkaGervaz.Resource]

  mishka_gervaz do
    table do
      identity do
        route "/admin/resources"
      end

      columns do
        column :name, sortable: true
      end

      row_actions do
        action :edit, type: :link
      end
    end

    form do
      identity do
        name :resource_form
        route "/admin/resources"
      end

      fields do
        field :name, :text, required: true
      end
    end
  end
end

Summary

Functions

Returns all DSL sections for MishkaGervaz.

Functions

sections()

Returns all DSL sections for MishkaGervaz.

This is called by MishkaGervaz.Resource extension.