TXSheetControlOptions.Ribbon Property
- Namespace
TXTextControl.TXSheetControl. AspNetCore
- Package
TXTextControl.asTXSheetControl. AspNetCore TXTextControl.from the private NuGet feed or the supplied NuGet folderTXSheetControl. AspNetCore. dll
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> {
[] = 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.