Skip to content

[Feature Request] Define styling of highlighted node #44

@haydenmccormick

Description

@haydenmccormick

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions