Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to bind value to c# object. #55

Open
CliffBDev opened this issue Mar 21, 2022 · 2 comments
Open

Unable to bind value to c# object. #55

CliffBDev opened this issue Mar 21, 2022 · 2 comments

Comments

@CliffBDev
Copy link

Is there a way to data-bind the value to a string or a string property of an object? I have not seen any documentation on data binding at all.

@codymullins
Copy link

@QuietDesperationDev I didn't see it either. I accomplished it somewhat manually in Spacetime. Fairly untested but it seems to work from first glance.

@JesperOlsen
Copy link

It would appear that there is no value-bind. I created a @ref to the component and then used the GetValue method to received the edited text.
<StandaloneCodeEditor @ref="editor" ConstructionOptions="ProvideEditorOptions" CssClass="codeeditor"/>
and then when needed
await editor.GetValue()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants