Skip to content

element property by the SnapshotDb #493

Answered by grigasp
paprophet asked this question in Q&A
Discussion options

You must be logged in to vote

The data provider interface on the frontend is specific to our React-based UI layer. The PresentationPropertyDataProvider implementation uses the Presentation API to retrieve the properties. As @pmconne already summarized, the presentation system collects properties of the element and its related elements and aspects.

The data provider interface is not available on the backend - you have to use the Presentation API directly. An example of that could be this (a little outdated) gist: https://gist.github.com/grigasp/aa75511dc4137137b651f56676c27f87. Have a look at listElementProperties function there.

Additionally, you might find this sample useful: https://www.itwinjs.org/sample-showcase/?…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@paprophet
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@grigasp
Comment options

grigasp Jan 28, 2021
Collaborator

@paprophet
Comment options

@grigasp
Comment options

grigasp Jan 29, 2021
Collaborator

@paprophet
Comment options

@grigasp
Comment options

grigasp Feb 2, 2021
Collaborator

Answer selected by pmconne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants