DivKit 29.2.0
Android
- Implemented a flag
is_enabled
for all types of actions
. If this flag is set to false
, the action will not be performed. For example:
"actions": [
{
"log_id": "click_id",
"url": "some_url",
"is_enabled": "@{actions_enabled}" //значение берется из переменной
}
]
- Implemented function
len(array)
to calculate the length of array. - Fixed applying
paddings
for container
. - Fixed the application of
gradient
to the text
. From now on gradient applies only to text itself. - Fixed the escape of
\\\\
in evaluable expressions. Now they turn into \
. This happens because \\\\
turns into \\
when parsing JSON, and then \\
turns into \
when parsing strings. - Fixed changing
state
inside custom
item.
iOS
- Implemented a flag
is_enabled
for all types of actions
. If this flag is set to false
, the action will not be performed. For example:
"actions": [
{
"log_id": "click_id",
"url": "some_url",
"is_enabled": "@{actions_enabled}" //значение берется из переменной
}
]
- Optimised creation of
accesibility
items. - Fixed drawing container without field
items
. - Fixed the behavior of
accessibility
elements. Now their boundaries do not include margins
. - Fixed blinking of lottie on changing
state
.
Web
- Implemented a flag
is_enabled
for all types of actions
. If this flag is set to false
, the action will not be performed. For example:
"actions": [
{
"log_id": "click_id",
"url": "some_url",
"is_enabled": "@{actions_enabled}" //значение берется из переменной
}
]
- Added the
clip_to_bounds
property to the container
, which determines whether child elements will be constrained by the size of the container. - Added the
auto_ellipsize
property, which allows you to truncate text to fit within the container. However, this method uses a large number of resources, and we recommend using the max_lines
property if possible. visibility_actions
now support altering the results of evaluable expressions within them. - Fixed a bug relating to
variable_triggers
, so that their behaviour now matches other platforms. It is now executed even when some variables are absent. - Fixed an error related to the incorrect aspect ratio in image in Safari. Previously, the height of the image was incorrectly calculated if image has the
wrap_content
width. - Fixed null handling in
get-
methods for array in evaluable expressions. variable_triggers
are now executed only after elements are created, thereby correcting situations where actions in them could not affect elements that have not yet been created.