-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Here are some preliminary notes to start with, that helped me formulate a better idea of what we have and some important questions
- mv-group essentially seems like mv-sort, with the only differences being:
a. Use case: mv-group will be used just like mv-sort, but more likely with
properties that are expected to have a lot of ties
b. Display: In addition to the newly "sorted" data, we need to add a header
element in between each of the breaks (places where the property value
changes)
- Display friendly name should be the value of the property being input to
mv-group
Ex:
<div mv-multiple="restaurants" mv-sort="name" mv-group="type">
<div property="name"></div>
<div property="type"></div>
</div>
-
We expect mv-group to take in a property whos value is repeated among multiple
elements in the collection. E.g. a restaurant's type could be something like
"Italian", "Fast food", "Thai", etc. Probably good to promote the setting of
this property through a dropdown. -
How would the display of an mv-group header look?
- What kind of styling should it get?
- Copy over the style of each mv-multiple's parent element, with some
additional style that distinguishes the header element as a header and not
another collection element - Create a default styling applied to each mv-group header
- Copy over the style of each mv-multiple's parent element, with some
- What kind of styling should it get?
Metadata
Metadata
Assignees
Labels
No labels