diff --git a/.formatter.exs b/.formatter.exs index 0b3e221d..c6610424 100644 --- a/.formatter.exs +++ b/.formatter.exs @@ -31,6 +31,7 @@ spark_locals_without_parens = [ show_sensitive_fields: 1, table_columns: 1, table_filterable_columns: 1, + table_searchable_columns: 1, table_sortable_columns: 1, type: 1, update_actions: 1 diff --git a/assets/tailwind.config.js b/assets/tailwind.config.js index ecd51e51..0f9c0ed7 100644 --- a/assets/tailwind.config.js +++ b/assets/tailwind.config.js @@ -16,6 +16,7 @@ module.exports = { "./js/**/*.js", "./../lib/ash_admin/components/**/*.*ex", "./../lib/ash_admin/pages/**/*.*ex", + "./../lib/ash_admin/themes/**/*.*ex", "../deps/cinder/**/*.*ex", ], safelist: ["prose", "dark:prose-invert", "max-w-none", "border-l-4"], diff --git a/documentation/dsls/DSL-AshAdmin.Resource.md b/documentation/dsls/DSL-AshAdmin.Resource.md index 2cba143e..8dfe51cc 100644 --- a/documentation/dsls/DSL-AshAdmin.Resource.md +++ b/documentation/dsls/DSL-AshAdmin.Resource.md @@ -35,6 +35,7 @@ Configure the admin dashboard for a given resource. | [`table_columns`](#admin-table_columns){: #admin-table_columns } | `list(atom)` | | The list of attributes to render on the table view. | | [`table_sortable_columns`](#admin-table_sortable_columns){: #admin-table_sortable_columns } | `list(atom)` | | The list of columns that can be sorted. If not specified, all columns are sortable. | | [`table_filterable_columns`](#admin-table_filterable_columns){: #admin-table_filterable_columns } | `list(atom)` | | The list of columns that can be filtered. If not specified, all columns are filterable. | +| [`table_searchable_columns`](#admin-table_searchable_columns){: #admin-table_searchable_columns } | `list(atom)` | | The list of columns that the table search box searches. A search box shows only when this is set. Each column must also be in the table columns. | | [`format_fields`](#admin-format_fields){: #admin-format_fields } | `list(any)` | | The list of fields and their formats represented as a MFA. For example: `updated_at: {Timex, :format!, ["{0D}-{0M}-{YYYY} {h12}:{m} {AM}"]}`. Datatable pages format all given fields. Show and Update pages format given read-only fields of types `Ash.Type.Date`, `Ash.Type.DateTime`, `Ash.Type.Time`, `Ash.Type.NaiveDatetime`, `Ash.Type.UtcDatetime` and `Ash.Type.UtcDatetimeUsec`. | | [`relationship_display_fields`](#admin-relationship_display_fields){: #admin-relationship_display_fields } | `list(atom)` | | The list of attributes to render when this resource is shown as a relationship on another resource's datatable. | | [`resource_group`](#admin-resource_group){: #admin-resource_group } | `atom` | | The group in the top resource dropdown that the resource appears in. | diff --git a/lib/ash_admin/components/resource/data_table.ex b/lib/ash_admin/components/resource/data_table.ex index 3297fb30..08b295bf 100644 --- a/lib/ash_admin/components/resource/data_table.ex +++ b/lib/ash_admin/components/resource/data_table.ex @@ -85,7 +85,7 @@ defmodule AshAdmin.Components.Resource.DataTable do >
-
+