spotfiresoftware / spotfire-wrapper

An Angular component packaged as custom elements that defined a new HTML element to display a Spotfire dashboard in a framework-agnostic way
BSD 3-Clause "New" or "Revised" License
9 stars 6 forks source link

Question: how do you pass a document property? #49

Closed chujanen closed 4 years ago

chujanen commented 4 years ago

There can be "document properties" configured in a DXP file and I have seen mention of these properties being passed into the web player, but I do not see any mechanism to do so using this spotfire-wrapper component.

How do you pass them in?

tbabik commented 4 years ago

Hi, I would also be interested in knowing how this can be done. The Javascript API seems to over a "setDocumentProperty" which can be used to change properties after a document is loaded. But how to do it with the Wrapper? And can this be done upfront before loading the document first? Thanks

nicolasderoche commented 4 years ago

Hello @chujanen and @tbabik.

Sorry for the late answer. I looked into it and will provide a way to have access in read write mode to list of properties.

Kindly Regards Nicolas

nicolasderoche commented 4 years ago

@chujanen , @tbabik : Just a note, version 0.12.0 now exposes SpotfireDocument, and you can get/list/set properties. Enjoy!