-
Get Started
-
Vue Components
- Accordion
- Action Sheet / Actions
- Badge
- Block / Content Block
- Button
- Cards
- Checkbox
- Chips / Tags
- Contacts List
- Floating Action Button
- Grid / Layout Grid
- Icon
- Inputs / Form Inputs
- Link
- List View
- List Item
- List Button
- List Index
- Login Screen
- Messagebar
- Messages
- Navbar
- Page
- Panel / Side Panels
- Photo Browser
- Popover
- Popup
- Preloader
- Progressbar
- Radio
- Range Slider
- Searchbar
- Sheet Modal
- Smart Select
- Sortable
- Statusbar
- Stepper
- Subnavbar
- Swiper
- Swipeout
- Tabs
- Toggle
- Toolbar / Tabbar
- View
- Virtual List
List Button Vue Component
List Button Vue component represents Framework7's List Button element. They are intended to be used inside of the List Vue Component.
List Button Components
There are following components included:
f7-list-button
List Button Properties
Prop | Type | Default | Description |
---|---|---|---|
title | string | Button inner text | |
text | string | Button inner text, same as title |
|
tab-link | string/boolean | Enables tab link and specify CSS selector of the target tab (if specified as a string) | |
tab-link | string/boolean | Makes this tab link active | |
no-fast-click | boolean | Disables fast click | |
target | string | Link target attribute | |
<f7-list-button> navigation/router related properties | |||
href | string boolean |
# | URL of the page to load. In case of boolean href="false" it won't add href tag |
view | string | CSS selector of the View to load the page | |
external | boolean | Enable to bypass Framework7's link click handler | |
back | boolean | Enables back navigation link | |
force | boolean | Force page to load and ignore previous page in history (use together with back prop) |
|
reload-current | boolean | Reloads new page instead of the currently active one | |
reload-previous | boolean | Replace the previous page in history with the new one from route | |
reload-all | boolean | Load new page and remove all previous pages from history and DOM | |
animate | boolean | Disables pages animation | |
ignore-cache | boolean | Ignores caching | |
page-name | string | Name of the page to load | |
route-tab-id | string | Routable Tab id | |
<f7-list-button> action related properties | |||
panel-open | string boolean |
Defines panel to open. Can be left or right |
|
panel-close | boolean | Closes panel on click | |
actions-open | string boolean |
CSS selector of the action sheet to open on click | |
actions-close | string boolean |
CSS selector of the action sheet to close on click. Or boolean property to close currently opened action sheet | |
popup-open | string boolean |
CSS selector of the popup to open on click | |
popup-close | string boolean |
CSS selector of the popup to close on click. Or boolean property to close currently opened popup | |
popover-open | string boolean |
CSS selector of the popover to open on click | |
popover-close | string boolean |
CSS selector of the popover to close on click. Or boolean property to close currently opened popover | |
sheet-open | string boolean |
CSS selector of the sheet modal to open on click | |
sheet-close | string boolean |
CSS selector of the sheet modal to close on click. Or boolean property to close currently opened sheet modal | |
login-screen-open | string boolean |
CSS selector of the login screen to open on click | |
login-screen-close | string boolean |
CSS selector of the login screen to close on click. Or boolean property to close currently opened login screen | |
sortable-enable | string boolean |
CSS selector of the Sortable list to open on click | |
sortable-disable | string boolean |
CSS selector of the Sortable list to close on click. Or boolean property to close currently opened Sortable list | |
sortable-toggle | string boolean |
CSS selector of the Sortable list to toggle on click. Or boolean property to toggle currently opened/closed Sortable list |
List Button Events
Event | Description |
---|---|
<f7-list-button> events | |
click | Event will be triggered after click on a button |
Examples
Minimal Layout
<f7-list>
<f7-list-button>Button 1</f7-list-button>
<f7-list-button>Button 2</f7-list-button>
</f7-list>
<!-- Renders to: -->
<div class="list">
<ul>
<li>
<a href="#" class="item-link list-button">Button 1</a>
</li>
<li>
<a href="#" class="item-link list-button">Button 2</a>
</li>
</ul>
</div>
Color Buttons
<f7-list>
<f7-list-button color="red">Red Button</f7-list-button>
<f7-list-button color="green">Green Button</f7-list-button>
</f7-list>
Control Buttons in Inset List
<f7-list inset>
<f7-list-button panel-open="left">Open Panel</f7-list-button>
<f7-list-button popup-open="#my-popup">Open Popup</f7-list-button>
</f7-list>