You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In eodash we want to add comparison buttons to list items, i can imagine other use cases where someone might want to add additional functionality to a result item, such as item information or custom button functionality.
Having a slot to add potentially other such things could be convenient.
The text was updated successfully, but these errors were encountered:
I am not sure if adding buttons to the result items is a good idea UX-wise, since it might become confusing to the user. Selecting an item is a clear primary action, but adding a secondary action needs some UX considerations first, and then we can think about implementation.
The issue I can think of with slots is that potentially this gives "too much power" to the parent app and can potentially destroy the layout; in e.g. layercontrol we have the "tools" that can be enabled/disabled, something like this might make more sense. Or we let the developer create a secondary action, and the icon and callback function can be defined 🤔
I feel like there are many applications where UI elements are created that provide slots to extend them, for example, drop down menus, or other types of "list creations". In my opinion the results list is really a very similar thing, where a developer using the library would want to add something, such as images, icons, colors?. Thinking about it it might be even interesting to have a slot for before and for after the text.
One could in the olden times do it with css selectors, but that gets tricky within the shadow-root, right?
Maybe we can tag EOxElements issues/ideas to be discussed in a larger round to see what others think or so, e.g. dailies?
In eodash we want to add comparison buttons to list items, i can imagine other use cases where someone might want to add additional functionality to a result item, such as item information or custom button functionality.
Having a slot to add potentially other such things could be convenient.
The text was updated successfully, but these errors were encountered: