DivKit 28.3.0
This week Divkit 28.3.0 was published and brought us many new features.
Android
- New image filter
"rtl_mirror"
.
An image with this filter will be horizontally mirrored in right-to-left layout direction.
{ "type": "image", "image_url": "...", "filters": [{ "type": "rtl_mirror" }] }
- Supported
"ranges"
in slider.
Now you can decline an array of"ranges"
, and for each range, you can set different"track_inactive_style"
,"track_active_style"
, and"margins"
from other ranges.
An example of the layout in GitHub.
- Added new action type
"copy_to_clipboad"
.
This action copies the text or link to the clipboard.
An example of the layout in GitHub. - Implementation of
PicassoImageLoader
andGlideImageLoader.
Now you can pass the standard implementation of theDivImageLoader
toDivConiguration#ImageLoader(..)
, we implemented this interface on Picasso and Glide, respectively. You can find them incom.yandex.div:glide
orcom.yandex.div:picasso
modules.
iOS
- Added new content_alignment types:
"space-around"
,"space-between"
,"space-evenly"
. - Implemented
DivReporter
- API for reporting errors. - Implemented handling
"set_variable"
actions.
Web
- Supported field
"state_id_variable"
in state.