Skip to content

Commit e8eae65

Browse files
Arrange minor stuff in collection.md
1 parent a19adfa commit e8eae65

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/components/collection.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
Show [specs](../../spec/usage/components/collection_spec.rb)
44

5-
The `collection` component is designed:
5+
The `collection` component is designed to
66

7-
- to display instances from a model (Active Record or similar)
7+
- display instances from a model (Active Record or similar)
88
- filter the displayed instances without full page reload
99
- paginate the displayed instances without full page reload
1010
- order the displayed instances without full page reload
@@ -258,8 +258,8 @@ class Pages::MyApp::Collection < Matestack::Ui::Page
258258
plain "sort by:"
259259
collection_order_toggle key: :title do
260260
button do
261-
# we want to use an "arrow up (unicode: &#8593;)"
262-
# and and an "arrow down (unicode: &#8595;)" in order to
261+
# we use an "arrow up (unicode: &#8593;)"
262+
# and and an "arrow down (unicode: &#8595;)" to
263263
# visualize the current order state
264264
collection_order_toggle_indicator key: :title, asc: '&#8593;', desc: '&#8595;'
265265
plain "title"
@@ -317,7 +317,7 @@ end
317317

318318
### Action enriched collection
319319

320-
In this example, we want to display ALL instances of `DummyModel` and filter the collection by title using a text input. Additionally we want to delete an item of the list using the `action` component.
320+
In this example, we want to display ALL instances of `DummyModel` and filter the collection by title using a text input. Additionally we want to be able to delete an item of the list using the `action` component.
321321

322322
```ruby
323323
class Pages::MyApp::Collection < Matestack::Ui::Page

0 commit comments

Comments
 (0)