Smart Select - 图1

Smart Select Vue Component

Smart Select allows you to easily convert your usual form selects to dynamic pages with grouped radio inputs. You can see such feature in many native apps.

It is not a separate Vue component, but just a particular case of using and components with Framework7’s Smart Select component.

Smart Select Properties

PropTypeDefaultDescription
<f7-list-item> properties
smart-selectbooleanEnables Smart Select behavior
smart-select-paramsobjectObject with Smart Select Parameters

Access To Smart Select Instance

You can access Smart Select initialized instance by accessing .f7SmartSelect property of <f7-list-item> component.

Examples

  1. <f7-list>
  2. <f7-list-item title="Fruit" smart-select>
  3. <select name="fruits">
  4. <option value="apple" selected>Apple</option>
  5. <option value="pineapple">Pineapple</option>
  6. <option value="pear">Pear</option>
  7. <option value="orange">Orange</option>
  8. <option value="melon">Melon</option>
  9. <option value="peach">Peach</option>
  10. <option value="banana">Banana</option>
  11. </select>
  12. </f7-list-item>
  13. <f7-list-item title="Car" smart-select :smart-select-params="{openIn: 'popup', searchbar: true, searchbarPlaceholder: 'Search car'}">
  14. <select name="car" multiple>
  15. <optgroup label="Japanese">
  16. <option value="honda" selected>Honda</option>
  17. <option value="lexus">Lexus</option>
  18. <option value="mazda">Mazda</option>
  19. <option value="nissan">Nissan</option>
  20. <option value="toyota">Toyota</option>
  21. </optgroup>
  22. <optgroup label="German">
  23. <option value="audi" selected>Audi</option>
  24. <option value="bmw">BMW</option>
  25. <option value="mercedes">Mercedes</option>
  26. <option value="vw">Volkswagen</option>
  27. <option value="volvo">Volvo</option>
  28. </optgroup>
  29. <optgroup label="American">
  30. <option value="cadillac">Cadillac</option>
  31. <option value="chrysler">Chrysler</option>
  32. <option value="dodge">Dodge</option>
  33. <option value="ford" selected>Ford</option>
  34. </optgroup>
  35. </select>
  36. </f7-list-item>
  37. <f7-list-item title="Mac or Windows" smart-select :smart-select-params="{openIn: 'sheet'}">
  38. <select name="mac-windows">
  39. <option value="mac" selected>Mac</option>
  40. <option value="windows">Windows</option>
  41. </select>
  42. </f7-list-item>
  43. <f7-list-item title="Super Hero" smart-select :smart-select-params="{openIn: 'popover'}">
  44. <select name="superhero" multiple>
  45. <option value="Batman" selected>Batman</option>
  46. <option value="Superman">Superman</option>
  47. <option value="Hulk">Hulk</option>
  48. <option value="Spiderman">Spiderman</option>
  49. <option value="Ironman">Ironman</option>
  50. <option value="Thor">Thor</option>
  51. <option value="Wonder Woman">Wonder Woman</option>
  52. </select>
  53. </f7-list-item>
  54. </f7-list>

← Skeleton

Sortable →