Closed Madasamy26 closed 4 years ago
create()
is called when any UI parameters are changed, as Perspective's View
objects are immutable, and the existing plugins are lazily instantiated. There is no "plugin state" initialization method so far - but in the pasted example above, the if (hypergrid) {
part is effectively that, as it is only invoked when the plugin is instantiated.
You may find these tutorials helpful:
https://blog.scottlogic.com/2019/04/23/perspective-plugin-api-how-to-build-a-new-plugin.html https://blog.scottlogic.com/2019/04/18/building-a-perspective-plugin-with-d3fc.html
thanks @timkpaine
Hi,
I am developing custom plugin for perspective,
In that, plugin configuration, like below
So If we are sorting on perspective ..perspective will call the create method of plugin, create will re-instantiate the perspective plugin
Is there any method for invoking while changing options like filtering,sorting from perspective instead of create ?