Could you include the component from https://quasar.dev/vue-components/slide-item/ in the encapsulation? #4282
Closed
void-gfly
started this conversation in
Ideas / Feature Requests
Replies: 2 comments
-
That's a great idea, @void-gfly! Here's a proof of concept using the generic with ui.list().classes('border'):
ui.item('normal item')
with ui.element('q-slide-item') as slide_item:
ui.item('slide item')
with slide_item.add_slot('left'):
ui.icon('favorite')
with slide_item.add_slot('right'):
ui.icon('delete')
slide_item.on('left', lambda: (ui.notify('Favorite added'), slide_item.run_method('reset')))
slide_item.on('right', lambda: (ui.notify('Item deleted'), slide_item.run_method('reset'))) I'll add this element to our wishlist. Maybe someone from the community would like to give it a try? 🙂 |
Beta Was this translation helpful? Give feedback.
0 replies
-
This feature has just been released in version 2.12.0 ✔️ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Could you include the component from https://quasar.dev/vue-components/slide-item/ in the encapsulation?
The QSlideItem Vue component is essentially a QItem with two additional slots (left and right) which allows the user to drag it to one of the sides in order to apply a specific action.
Beta Was this translation helpful? Give feedback.
All reactions