Replies: 1 comment 4 replies
-
Can you paste a small runnable example? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a treeView of text boxes which hierarchically display some user input text data, I'd like to keep those text boxes editable and update the state with new text values by handling
onTextChanged
events. The issue is that every time I print new character the model get updated and the treeView is regenerated in collapsed state and the further text input is not possible. I was trying to specifyTextView.isOpen true
but it doesn't make any difference - the tree view is still collapsed. Is there any approach that would allow to delay the model update until the text edit is done? Or to prevent the treeView from collapsing on update?I could use another event handler for sending the model update message - for example on Enter button pressed - but it doesn't provides text content of the textBox. Is there any approach to get the text of text box for the key event if my app is not component-based and I'm not using hooks?
If
onTextChanged
was native FSharp Event object I could try to useEvent.scan
to handle the series of inputs based on the time from last edit or something like that but I was not able to find how to get the Event or IObservable from IView or IAttr.Any suggestions please?
Beta Was this translation helpful? Give feedback.
All reactions