Thanks for the great component! One request -- would it be possible to add the option to define a node's style when it is clicked (for visual highlighting)?
I know it is possible to just programmatically set the style argument in the node itself, but this is not ideal, since manually defining logic based on changes in selected_id triggers multiple reruns which can slow down more complex flows pretty significantly (sometimes it takes several seconds after clicking a node to see its style change). I'd instead love to just be able to specify a style dictionary that applies to the .selected class -- which is added to a node when selectable=True and the node is clicked.
I'd love to know if there is already some way to accomplish this!
Thanks for the great component! One request -- would it be possible to add the option to define a node's style when it is clicked (for visual highlighting)?
I know it is possible to just programmatically set the
styleargument in the node itself, but this is not ideal, since manually defining logic based on changes inselected_idtriggers multiple reruns which can slow down more complex flows pretty significantly (sometimes it takes several seconds after clicking a node to see its style change). I'd instead love to just be able to specify a style dictionary that applies to the.selectedclass -- which is added to a node whenselectable=Trueand the node is clicked.I'd love to know if there is already some way to accomplish this!