BlazorMonaco icon indicating copy to clipboard operation
BlazorMonaco copied to clipboard

Unable to bind value to c# object.

Open CliffBDev opened this issue 3 years ago • 2 comments

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.

CliffBDev avatar Mar 21 '22 19:03 CliffBDev

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

codymullins avatar Apr 27 '22 22:04 codymullins

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()

JesperOlsen avatar Sep 28 '23 13:09 JesperOlsen