TX Sheet Control

TXSheetControlOptions.Ribbon Property

Property
Namespace
TXTextControl.TXSheetControl.AspNetCore
Package
TXTextControl.TXSheetControl.AspNetCore as TXTextControl.TXSheetControl.AspNetCore.dll from the private NuGet feed or the supplied NuGet folder

Browser ribbon presentation and item policies serialized by the Razor tag helper. Supply an anonymous object with camelCase browser option names; the mounted editor validates its values and IDs.

Syntax

public object? Ribbon { get; set; }

Examples

Pass these options to the tx-sheet-control tag helper to create a compact invoice editor.

using System.Collections.Generic;
using TXTextControl.TXSheetControl.AspNetCore;

TXSheetControlOptions CreateInvoiceOptions() => new() {
    Ribbon = new {
        layout = "compact",
        displayMode = "expanded",
        tabs = new { reporting = new { enabled = false } },
        buttons = new Dictionary<string, object> {
            ["home.font.bold"] = new { enabled = false }
        }
    }
};

Remarks

The default is classic, expanded presentation. These options customize browser controls without restricting workbook operations. See the Ribbon Guide for stable IDs and runtime changes.