Forum Discussion
Feedback Request: Custom Visuals V1 APIs Suggestions
lukaszp I think my biggest asks around for context APIs and documentation.
Example of context methods:
- getViewMode (@bashirs said a fix was going out soon)
- inFocusMode
- getVisualId (this may exist?)
- lukaszp10 years agoPower BI Team
Thanks jdrake. Could you tell me more what you mean by getVisualId. How would you use it if we gave you such a property?
- jdrake10 years agoRegular Visitor
lukaszp When init or update is called, it would be helpful to have a unique ID for the visual (and additionally an ID for any data object in the dataView, like categories and values). For our product this would be used in server-side API hits while debugging.
Separately, it would be cool to have a read-only API for seeing what other objects (and therefore selected data) are on the page. Use case: our extension could list existing objects on the page and have the user select which one to use as a data source, instead of them configuring our visual with the same dimensions/measures.
- lukaszp10 years agoPower BI Team
Thanks jdrake. Could you tell me more what you mean by getVisualId. How would you use it if we gave you such a property?