BlazorMonaco
BlazorMonaco copied to clipboard
Unable to bind value to c# object.
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.
@QuietDesperationDev I didn't see it either. I accomplished it somewhat manually in Spacetime. Fairly untested but it seems to work from first glance.
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()