picardjs/picard

Slot Ordering Attributes

Closed this issue · 1 comments

New Feature Proposal

For more information, see the CONTRIBUTING guide.

Description

The pi-slot component should have ordering attributes.

Background

Right now we show the elements in a non-ordered mode, i.e., as we found them. This should be unified to guarantee an order.

For this two attributes should exist:

  • order-by (determines the behavior)
  • reverse-order (takes whatever was ordered beforehand and reverses it)

Discussion

What behavior should we consider? Right now we have:

  • cid (ID of the component)
  • origin (name of the origin micro frontend)
  • time (when the component was found / registered)
  • none (just default)

Part of the current preview.