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
autorepeatparameter that will repeatedly increase/decrease values while you tap and hold plus/minus buttons - New
autorepeatDynamicparameter that will increase autorepeat ratio based on how long you hold the button - New
wrapsparameter. 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-chevronclass
- Fixed styling when sortable list is using with
- Range Slider
- New
draggableBarparameter (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
pushStateenabled) on initial load when initial route hasredirect - Fixed issue with
tab:beforeremoveevent was not fired for routeable tabs - Improved
restoreScrollTopOnBacklogic to save and restore scrolling on activepage-contentelement - 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 falseinbeforeOpenorbeforeSendcallbacks it will cancel the XHR request
- Now if you
- Autocomplete
- New
inputEventsparameter (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
pagewith Searchbar in iOS theme
- Fixed issue when Searchbar didn’t work when Smart Select opened in
- Dialog
- New
app.dialog.keyboardActionsparameter (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
progressbarOppositeparameter to make pagination progressbar opposite todirectionparameter, 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
. 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: