Represents a content editable element in a spreadsheet.
Object
ComponentBase
IComponent
IHandleEvent
IHandleAfterRender
ComponentBase.OnInitialized
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.SetParametersAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor.Spreadsheet
Assembly: Radzen.Blazor.dll
public class SheetEditor : ComponentBase, IComponent, IHandleEvent, IHandleAfterRenderRepresents a content editable element in a spreadsheet.
public SheetEditor()Gets or sets additional HTML attributes for the content editable element.
public IReadOnlyDictionary<string, object> Attributes { get; set; }
| Type | Description |
|---|---|
| IReadOnlyDictionary<string, object> | Gets or sets additional HTML attributes for the content editable element. |
Gets or sets a value indicating whether the content editable element should automatically receive focus when rendered.
public bool AutoFocus { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether the content editable element should automatically receive focus when rendered. |
Event callback that is invoked when the content editable element loses focus.
public EventCallback Blur { get; set; }
| Type | Description |
|---|---|
| EventCallback | Event callback that is invoked when the content editable element loses focus. |
Event callback that is invoked when the content editable element gains focus.
public EventCallback Focus { get; set; }
| Type | Description |
|---|---|
| EventCallback | Event callback that is invoked when the content editable element gains focus. |
When true, the input is rendered as non-editable. Used by the formula bar when the host spreadsheet is read-only or has editing disabled.
public bool ReadOnly { get; set; }
| Type | Description |
|---|---|
| bool | When true, the input is rendered as non-editable. Used by the formula bar when the host spreadsheet is read-only or has editing disabled. |
Gets or sets the value of the content editable element.
public string Value { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the value of the content editable element. |
Event callback that is invoked when the value of the content editable element changes.
public EventCallback<string> ValueChanged { get; set; }
| Type | Description |
|---|---|
| EventCallback<string> | Event callback that is invoked when the value of the content editable element changes. |
Gets or sets the sheet associated with the content editable element.
public Documents.Spreadsheet.Worksheet Worksheet { get; set; }
| Type | Description |
|---|---|
| Documents.Spreadsheet.Worksheet | Gets or sets the sheet associated with the content editable element. |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
protected override Task OnAfterRenderAsync(bool firstRender)
| Type | Name | Description |
|---|---|---|
| bool | firstRender |
| Type | Description |
|---|---|
| Task |
Invoked by JS interop when the content editable element loses focus.
public Task OnBlurAsync()
| Type | Description |
|---|---|
| Task |
Invoked by JS interop when the content editable element gains focus.
public Task OnFocusAsync()
| Type | Description |
|---|---|
| Task |
Invoked by JS interop when the content editable element's value changes.
public Task OnInputAsync(string value)
| Type | Name | Description |
|---|---|---|
| string | value |
| Type | Description |
|---|---|
| Task |
Invoked by JS interop when a key is pressed down in the content editable element.
public Task OnKeyDownAsync(KeyboardEventArgs args)
| Type | Name | Description |
|---|---|---|
| KeyboardEventArgs | args |
| Type | Description |
|---|---|
| Task |
protected override Task OnParametersSetAsync()
| Type | Description |
|---|---|
| Task |
Invoked by JS interop when the selection in the content editable element changes.
public Task OnSelectionChangeAsync(int caretPosition)
| Type | Name | Description |
|---|---|---|
| int | caretPosition |
| Type | Description |
|---|---|
| Task |
Sets the value of the content editable element asynchronously.
public Task SetValueAsync(string value, int? moveCaretTo)
| Type | Name | Description |
|---|---|---|
| string | value | |
| int? | moveCaretTo |
| Type | Description |
|---|---|
| Task |