mirror of
https://github.com/fluxscape/fluxscape.git
synced 2026-01-11 14:52:54 +01:00
feat(runtime): Add Image node output "On Error" signal (#48)
"On Error" is triggered when the image is not loading correctly, making it possible to hide the Image node or show a placeholder instead.
This commit is contained in:
@@ -125,6 +125,12 @@ const ImageNode = {
|
|||||||
propPath: 'dom',
|
propPath: 'dom',
|
||||||
type: 'signal',
|
type: 'signal',
|
||||||
group: 'Events'
|
group: 'Events'
|
||||||
|
},
|
||||||
|
onError: {
|
||||||
|
displayName: 'On Error',
|
||||||
|
propPath: 'dom',
|
||||||
|
type: 'signal',
|
||||||
|
group: 'Events'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user