framework7io / framework7io/framework7

f7-list-item as selectables for f7-autocomplete or f7-smart-select

Open
#2,176 1 comment 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

Would be nice if F7-Autocomplete and F7-Smart-Select also accepts a typical list-item-view where items can be selected (by radio or checkbox).

For example:

This list item is a selectable:

<div class="list selectable-list">
    <ul>
<li>
    <div class="item-content">
        <div class="item-media">
            <i class="icon my-icon"></i>
        </div>
        <div class="item-inner">
            <div class="item-title">
                List element title
            </div>
            <div class="item-after">
                List element label
            </div>
        </div>
    </div>
</li>
..
</ul>
</div>

Actually, I can use this for smart-select to have more than only one text:

<option value="apple" selected data-option-image="http://lorempixel.com/29/29/">Apple</option>

However, when I have albums or product catalogs then it is better to have a typical f7-list-item as selectable. So user can select from a list-view.

The kitchensink shows that the rows of a f7-datatable with "Selectable Rows" could also be selectables for f7-autocomplete or f7-smart-select.

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 by reviewing the F7-Autocomplete and F7-Smart-Select entry points and the Kitchensink example for DataTable selectable rows. Compare their selection behavior with the proposed f7-list-item markup and determine how radio or checkbox selection should work in both components. Done means typical list items can provide selectable entries with the requested richer content.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.