TX Sheet Control

RibbonOptions Class

Class
Namespace
TXTextControl.TXSheetControl.Blazor
Package
TXTextControl.TXSheetControl.Blazor from the private NuGet feed or the supplied NuGet folder
Assembly
TXTextControl.TXSheetControl.Blazor.dll
Install
dotnet add package TXTextControl.TXSheetControl.Blazor .NET 10 and later.
Implements
IEquatable<RibbonOptions>

Screen-only ribbon configuration, using the language-independent built-in item IDs from the JavaScript API.

Syntax

public class RibbonOptions

Members

MemberDescription
ConstructorCreates RibbonOptions settings or event data for the component.
ButtonsPolicies keyed by command ID, such as home.font.bold.
DisplayModeCommand display mode: expanded or tabs-only.
GroupsPolicies keyed by group ID, such as home.font.
LayoutCommand density: classic or compact. Omitted patches preserve the current layout.
TabsPolicies keyed by tab ID, such as home or insert.

Examples

Configure the Options parameter before mounting the component. license is the unchanged store-issued license string.

var options = new SheetControlOptions
{
    License = license,
    Rows = 2000, Columns = 20, AutoExpand = true, MaxRows = 10000, MaxColumns = 100,
    DashboardMode = "editor", ViewMode = "normal", Theme = "dark", Language = "en",
    Locale = "en-US", UserName = "Alex", Zoom = 125, HighlightDependents = true,
    FontCatalogURL = "fonts/catalog.json", FontBaseURL = "fonts/",
    Areas = new() { Ribbon = true, FormulaBar = true, SheetTabs = true, StatusBar = false },
    Ribbon = new()
    {
        Layout = "compact", DisplayMode = "expanded",
        Tabs = new Dictionary<string, RibbonItemOptions> { ["review"] = new() { Visible = true } },
        Groups = new Dictionary<string, RibbonItemOptions> { ["home.font"] = new() { Enabled = true } },
        Buttons = new Dictionary<string, RibbonItemOptions> { ["home.font.bold"] = new() { Enabled = false } }
    },
    Resources = new Dictionary<string, string> { ["ribbon.home"] = "Home" }
};

Remarks

Use the component only after interactive rendering. Browser document operations execute in the editor through JavaScript interop. Completed notifications cannot synchronously cancel edits.

See Also