InteractiveViewer
| Название типа | Поддерживает анимации свойств | Контроллируемый по умолчанию | Может содержать связанное действие | Ссылка |
|---|---|---|---|---|
| InteractiveViewer | ✗ | ✔️ | ✗ | link |
Пример использования
- Go
InteractiveViewer(
&duit_attributes.InteractiveViewerAttributes[duit_core.RemoteAction]{
PanEnabled: true,
ScaleEnabled: true,
MinScale: 0.8,
MaxScale: 2.5,
Constrained: true,
ClipBehavior: "hardEdge",
OnInteractionStart: &duit_core.RemoteAction{
Event: "/on_interaction_start",
},
OnInteractionEnd: &duit_core.RemoteAction{
Event: "/on_interaction_end",
},
},
"id",
nil, //child
)