Skip to content

Grouping #3

@Dsan10s

Description

@Dsan10s

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?
      1. 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
      2. Create a default styling applied to each mv-group header

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions