Skip to content

Commit

Permalink
little more readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Nelson committed Jun 29, 2024
1 parent 2b6b90c commit 4776e37
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ defmodule TestBedWeb.PostsLive.Index do
end
```

In this case the `TestBed.Blog.Post` resource has a title, content, and belongs to Author which has a name. The table is paginated, and sortable by Title and Author name. Note use of the `apply_sort` being passed into the `:col`. This is needed for sorting by related properties due to how Ash works, or til I better understand it and find a simpler way :)
In this case the `TestBed.Blog.Post` resource has a title, content, and belongs to Author which has a name. The table is paginated, and sortable by Title and Author name.

Note use of the `apply_sort` being passed into the `:col`. This is needed for sorting by related properties due to how Ash works, or til I better understand it and find a simpler way :) The `sort_key` assign is still required so that the correct column is identified when the sort event fires.

## Running the test_bed example project

Expand All @@ -50,3 +52,6 @@ mix ash.setup
mix phx.server
```

## Future

Currently there is very little styling. The goal would be to allow a good default, but great flexiblity. Harcoding a dependency on Tailwind or other css frameworks is not desirable, but allowing the user to decide to use one would be great.

0 comments on commit 4776e37

Please sign in to comment.