TXSheetControlTagHelper Class
- Namespace
TXTextControl.TXSheetControl. AspNetCore
- Package
TXTextControl.from the private NuGet feed or the supplied NuGet folderTXSheetControl. AspNetCore
- Assembly
TXTextControl.TXSheetControl. AspNetCore. dll
- Install
dotnet add package TXTextControl..NET 10 and later.TXSheetControl. AspNetCore
- Inherits
- Tag
Helper - TXSheet
Control Tag Helper
- Tag
Renders a browser editor and includes its deferred scripts once per request. Editor styles are bundled and isolated inside Shadow DOM.
Syntax
public class TXSheetControlTagHelper
Interfaces: ITagHelper, ITagHelperComponent.
Members
Constructors
| Constructor | Description |
|---|---|
| Constructor |
Properties
| Property | Description |
|---|---|
| Height | |
| Options | |
| ViewContext |
Methods
| Method | Description |
|---|---|
| Process | Renders the host and inert configuration, plus shared assets on the first editor in this request. |
Examples
Configure a localized invoice editor and pass these options to the Razor tag helper below. Razor creates and runs the tag helper; application code does not need to call Process manually. The helper includes its styles and scripts automatically.
using TXTextControl.TXSheetControl.AspNetCore;
TXSheetControlOptions CreateInvoiceEditorOptions()
{
var options = new TXSheetControlOptions { Theme = "auto", Language = "de", Locale = "de-DE", Rows = 100, Columns = 20, Areas = new TXSheetControlAreas { Ribbon = true, FormulaBar = true, SheetTabs = true, StatusBar = true } };
return options;
}
@using TXTextControl.TXSheetControl.AspNetCore
@addTagHelper *, TXTextControl.TXSheetControl.AspNetCore
@{
var options = new TXSheetControlOptions { Theme = "auto", Language = "de", Locale = "de-DE", Rows = 100, Columns = 20, Areas = new TXSheetControlAreas { Ribbon = true, FormulaBar = true, SheetTabs = true, StatusBar = true } };
}
<tx-sheet-control options="options" height="600"></tx-sheet-control>