Framework7 and Framework7-Vue just updated to new 2.2.0 versions. Make sure to update your apps to get the latest features and fixes:
- List Index
- Meet all new List Index component
- Meet all new List Index component
- Full iPhone X safe areas support and required tweaks for MD theme
. Same as for iOS theme: automatic support for top and bottom safe areas (for portrait orientation). For landscape orientation the following classes must be added to elements:
-
ios-edges
- for full-width elements (like main View) -
ios-edge-left
- for elements that stick to the left edge of the screen (like left Panel) -
ios-edge-right
- for elements that stick to the right edge of the screen (like right Panel)
-
- Stepper
- New
autorepeat
parameter that will repeatedly increase/decrease values while you tap and hold plus/minus buttons - New
autorepeatDynamic
parameter that will increase autorepeat ratio based on how long you hold the button - New
wraps
parameter. When enabled, incrementing beyond maximum value sets value to minimum value; likewise, decrementing below minimum value sets value to maximum value
- New
- Sortable
- Fixed styling when sortable list is using with
no-chevron
class
- Fixed styling when sortable list is using with
- Range Slider
- New
draggableBar
parameter (defaults totrue
) that allows to disable value change on range bar click and drag - Added auto sizes recalculation on parent modals/panel/tabs open
- New
- Router
- Will now replace state (if
pushState
enabled) on initial load when initial route hasredirect
- Fixed issue with
tab:beforeremove
event was not fired for routeable tabs - Improved
restoreScrollTopOnBack
logic to save and restore scrolling on activepage-content
element - Swipe Back support for MD theme with new Router parameters:
-
mdSwipeBack: false
- enables swipe back for MD theme -
mdSwipeBackAnimateShadow: true
- enable/disable box-shadow animation during swipe back action -
mdSwipeBackAnimateOpacity: false
- enable/disable opacity animation during swipe back action. You can disable it to improve performance -
mdSwipeBackActiveArea: 30
- width of invisible left edge of the screen that triggers swipe back action -
mdSwipeBackThreshold: 0
- swipe back will start if “touch distance” will be more than this value
-
- Will now replace state (if
- Request
- Now if you
return false
inbeforeOpen
orbeforeSend
callbacks it will cancel the XHR request
- Now if you
- Autocomplete
- New
inputEvents
parameter (by default isinput
) allows to configure input events used to handle Autcomplete actions and source request
- New
- Smart Select
- Fixed issue when Searchbar didn’t work when Smart Select opened in
page
with Searchbar in iOS theme
- Fixed issue when Searchbar didn’t work when Smart Select opened in
- Dialog
- New
app.dialog.keyboardActions
parameter (enabled by default) that enables keyboard shortcuts (Enter and Esc) keys for predefined dialogs (Alert, Confirm, Prompt, Login, Password)
- New
- Fixed iOS 11.3 bug that can break Fast clicks and make Cordova/PhoneGap app unresponsive on app resume from background
- Swiper updated to latest 4.2.2 version
- Core
- Respect and update breakpoints when calling Swiper’s
.update()
method
- Respect and update breakpoints when calling Swiper’s
- Pagination
- New
progressbarOpposite
parameter to make pagination progressbar opposite todirection
parameter, means vertical progressbar for horizontal swiper direction and horizontal progressbar for vertical swiper direction
- New
- Core
- Lots of minor fixes
Love Framework7? Support project by donating or pledging on patreon https://patreon.com/vladimirkharlampidi