framework7 icon indicating copy to clipboard operation
framework7 copied to clipboard

swipe list and checkbox together

Open rkl1994 opened this issue 9 years ago • 1 comments

This is a (multiple allowed):

  • [ ] bug

  • [ ] enhancement

  • [x] feature-discussion (RFC)

  • Framework7 Version: 1.5.0

What you did

I use swipe list now and make a list like ios mail app, it can swipe to left and do actions.

123

456

Expected Behavior

However, I want to add checkbox to the list together with swipe feature. What I want to do is I can both swipe to left and checkbox can be called after click 'Edit' button or triggered by other actions(Just like the native ios mail app).

Actual Behavior

What I do now is to write two 'ul' tag. one is for swipe class, another is for checkbox. After click 'Edit' button, swipe class will be set to display:none and checkbox class will be displayed. Click 'Cancel' button, swipe class will be displayed and checkbox class will be hidden.

Is this the best practise to bind checkbox and swipe list together? Or is there any solution I can use only one ul tag to have the same feature(checkbox list with swipe)?

Thank you

rkl1994 avatar Sep 28 '17 02:09 rkl1994

Issue is closed because of outdated, irrelevant or not actual

If this issue is still actual and reproducible for latest version of Framework7, please create new issue and fill the issue template correctly:

  • Clearly describe the issue including steps to reproduce when it is a bug.
  • Make sure you fill in the earliest version that you know has the issue.
  • Provide live link or JSFiddle/Codepen or website with issue

nolimits4web avatar Mar 13 '18 17:03 nolimits4web