List Button - 图1

List Button React Component

List Button React component represents Framework7’s List Button element. They are intended to be used inside of the List React Component.

List Button Components

There are following components included:

  • **ListButton** / **F7ListButton**

List Button Properties

PropTypeDefaultDescription
titlestringButton inner text
textstringButton inner text, same as title
tabLinkstring/booleanEnables tab link and specify CSS selector of the target tab (if specified as a string)
tabLinkstring/booleanMakes this tab link active
noFastClickbooleanDisables fast click
targetstringLink target attribute
<ListButton> navigation/router related properties
hrefstring
boolean
#URL of the page to load. In case of boolean href=”false” it won’t add href tag
targetstringValue of link target attribute, e.g. _blank, _self, etc.
viewstringCSS selector of the View to load the page
externalbooleanEnable to bypass Framework7’s link click handler
backbooleanEnables back navigation link
forcebooleanForce page to load and ignore previous page in history (use together with back prop)
reloadCurrentbooleanReloads new page instead of the currently active one
reloadPreviousbooleanReplace the previous page in history with the new one from route
reloadAllbooleanLoad new page and remove all previous pages from history and DOM
animatebooleanDisables pages animation
ignoreCachebooleanIgnores caching
routeTabIdstringRoutable Tab id
routePropsobjectObject with additional props that will be passed to target route component
<ListButton> action related properties
panelOpenstring
boolean
Defines panel to open. Can be left or right
panelClosebooleanCloses panel on click
actionsOpenstring
boolean
CSS selector of the action sheet to open on click
actionsClosestring
boolean
CSS selector of the action sheet to close on click. Or boolean property to close currently opened action sheet
popupOpenstring
boolean
CSS selector of the popup to open on click
popupClosestring
boolean
CSS selector of the popup to close on click. Or boolean property to close currently opened popup
popoverOpenstring
boolean
CSS selector of the popover to open on click
popoverClosestring
boolean
CSS selector of the popover to close on click. Or boolean property to close currently opened popover
sheetOpenstring
boolean
CSS selector of the sheet modal to open on click
sheetClosestring
boolean
CSS selector of the sheet modal to close on click. Or boolean property to close currently opened sheet modal
loginScreenOpenstring
boolean
CSS selector of the login screen to open on click
loginScreenClosestring
boolean
CSS selector of the login screen to close on click. Or boolean property to close currently opened login screen
sortableEnablestring
boolean
CSS selector of the Sortable list to open on click
sortableDisablestring
boolean
CSS selector of the Sortable list to close on click. Or boolean property to close currently opened Sortable list
sortableTogglestring
boolean
CSS selector of the Sortable list to toggle on click. Or boolean property to toggle currently opened/closed Sortable list
searchbarEnablestring
boolean
CSS selector of the Expandable Searchbar to be enabled on click. Or boolean property to enable the first found Searchbar
searchbarDisablestring
boolean
CSS selector of the Expandable Searchbar to be disabled on click. Or boolean property to disable the first found Searchbar
searchbarTogglestring
boolean
CSS selector of the Expandable Searchbar to toggle on click. Or boolean property to toggle the first found Searchbar
searchbarClearstring
boolean
CSS selector of the Expandable Searchbar to clear on click. Or boolean property to clear the first found Searchbar

List Button Events

EventDescription
<ListButton> events
clickEvent will be triggered after click on a button

Examples

  1. <List>
  2. <ListButton title="List Button 1" />
  3. <ListButton title="List Button 2" />
  4. <ListButton title="List Button 3" />
  5. </List>
  6. <List inset>
  7. <ListButton title="List Button 1" />
  8. <ListButton title="List Button 2" />
  9. <ListButton title="List Button 3" />
  10. </List>
  11. <List inset>
  12. <ListButton title="Red List Button" color="red" />
  13. <ListButton title="Green List Button" color="green" />
  14. <ListButton title="Orange List Button" color="orange" />
  15. </List>