framework7io / framework7io/framework7

[datatable] provide "swipeout-cell"

Open
#2,076 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request
Dominant language
JavaScript
Stars
18.8k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

This is a (multiple allowed):

  • enhancement

  • Framework7 Version: 2

The datatable component (https://framework7.io/docs/data-table.html) has this:


<th class="checkbox-cell">
          <label class="checkbox">
            <input type="checkbox"/>
            <i class="icon-checkbox"></i>
          </label>
        </th>

to provide a "checkbox-cell".

Would be nice to even provide a "swipeout-cell" (https://framework7.io/docs/swipeout.html).

For example:

<th class="swipeout-cell">
<div class="swipeout-actions-right">
<a href="#" data-confirm="Are you sure you want to delete this item?" 
class="swipeout-delete">Delete</a>
 <a href="#" data-confirm="Are you sure you want to delete this item?" 
class="swipeout-delete">Edit</a>
..
</div>
</th>

So with this, many actions can be bundled within a swipeout-cell.

I think, the "swipeout-cell" should only be allowed at the first or at the last column (".swipeout-cell-left" and "".swipeout-cell-right"), but not in between, because it may disturb the scroling from left to right when having many columns. But you will see..

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the datatable and swipeout documentation linked in the issue to understand the existing component behavior. Define how a swipeout cell should work, including left or right placement and bundled actions, then determine the implementation and validation points from the datatable component.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.