Repository navigation
Way to get current status of a whisper component? #139
Replies: 1 comment 3 replies
|
Hello @hans-hsieh-asus In LDK version 3.0.0-beta.1: You are correct, the function signature for
I did want to point out that the interface Whisper {
id: string;
label: string;
components: Array<Components>;
close(callback: () => void): void;
}From this list of With the current design of Whispers in the LDK, my current recommended implementation for form-like behavior would be to keep an object, something like If you have any ideas on enhancements for this design, we welcome you to create a Github Issue for the LDK and set the label to "enhancement", or even create a PR for the LDK if are interested. Thanks again for all of the feedback! |
Uh oh!
There was an error while loading. Please reload this page.
Is there a way to get the current status of a whisper component with LDK 3 for javascript?
Let's say if we want to implement a form-like behavior, we will need to get the status (e.g. content of a text-input) of each whisper component when the submit button is clicked. The
whisper.create()will resolves aWhisperobject, but it looks like the object only contains id and label. Or, should we use the callback functions likeonChangeto remember the changes of each component?All reactions