v0.1.5
Breaking changes
Important, the following changes mean you need to modify your code to use this version:
$url
, which became deprecated in the previous version, is now removed. Please use theurl()
function instead.- The syntax of the
mv-bar
attribute has changed, although most of the previous syntax still works for compatibility. Theyes-
prefix will be removed in the next version. Please read about the newmv-bar
syntax in the docs. - In case you were using identifiers in
mv-path
to only edit a collection item with that id, you will now need to useid=
before it (e.g.mv-path="pages/foo"
becomesmv-path="pages/id=foo"
). And yes, other properties besidesid
are now possible too :) - For advanced users using Mavo with JS: Event names have changed. You will need to change them in your code or it will stop working.
mavo:datachange
becamemv-change
, all othermavo:*
events becamemv-*
.
Other changes:
- Basic IE 11 support!
- New Import and Export optional toolbar buttons! Try them out by using
mv-bar="with import export"
or visit the SVG Path demo which already uses them. - The Mavo toolbar now uses
position: sticky
in browsers that support it, so that it remains visible while its Mavo app is visible. This is especially useful for long Mavo applications, to avoid scrolling up and down to toggle between edit and read modes. - The
$now
special property now updates on every repaint instead of every 100ms, making it possible to use it for smooth animations. - New
$startup
special property, which corresponds to the value of$now
when the page loaded. - Improved editing popups: Now positioned above the property they are editing if there is no space below, with the arrow pointing downwards.
- Improved image uploading user experience: Image is now displayed immediately, even before it's uploaded to the remote service.
- New MavoScript functions:
reverse()
- Backspace (or Shift + Backspace in complex collections) can now delete collection items.
- For advanced users using Mavo with JS: new
mv-edit
andmv-done
events.Mavo.prototype.dataLoaded
promise for when the data has loaded.Mavo.options()
utility method for
loosely parsing key-value pairs. - 39 smaller improvements and bugfixes