open object element in react pimcore studio #2461
harshida-patel
started this conversation in
General
Replies: 1 comment 19 replies
-
|
Not really an event, but we have several possibilities. The main used variant/recommended way is this use hook: import { useElementHelper } from '@pimcore/studio-ui-bundle/modules/element'
...
const { openElement } = useElementHelper()
openElement({
type: 'data-object',
id: 1
})For this specific case we would also have a method in our global PimcoreStudio window API: window.PimcoreStudio.element.openElement(1,'data-object') |
Beta Was this translation helpful? Give feedback.
19 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
which event we have use for react pimcore studio similar to pimcore.helpers.openElement(objectId);
Beta Was this translation helpful? Give feedback.
All reactions