request: treeview node highlight callback functionality #3

Closed
opened 2020-02-02 16:54:35 +00:00 by urandom1 · 2 comments
urandom1 commented 2020-02-02 16:54:35 +00:00 (Migrated from gitlab.com)

I'm currently using the SetSelectedFunc method of the treeview to do an action when a node is selected. However, I would like to do the action when the node is highlighted. Currently, the selection is done when a user presses [Enter]. Highlight would ideally be invoked when a node is set as the current node along with when SetCurrentNode is called.

Would such an API fit into the library?

I'm currently using the SetSelectedFunc method of the treeview to do an action when a node is selected. However, I would like to do the action when the node is highlighted. Currently, the selection is done when a user presses [Enter]. Highlight would ideally be invoked when a node is set as the current node along with when SetCurrentNode is called. Would such an API fit into the library?
tslocum commented 2020-02-03 17:50:24 +00:00 (Migrated from gitlab.com)

Yes, this will fit into cview and I have started working on an implementation.

Yes, this will fit into cview and I have started working on an implementation.
tslocum commented 2020-02-04 00:13:46 +00:00 (Migrated from gitlab.com)

closed via commit d7ac9e862c

closed via commit d7ac9e862c66e741c932d8ce8c1b781b1818e4cf
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tslocum/cview#3
No description provided.