InteractiveViewer
| Type name | Supports Property Animations | Controlled by default | May contain associated action | Link |
|---|---|---|---|---|
| InteractiveViewer | ✗ | ✔️ | ✗ | link |
Usage
- 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
)