Skip to content

ListRowsAttribute

namespace Griff.Scenes;
public sealed class ListRowsAttribute : RowsAttribute

A list of strings shown a row each, one thing a row: words, numbers (Number) or colors (Color), to set, add, remove and reorder. It’s what the Inspector gives a list of strings with no editor of its own (see GenericFields), each row’s kind found from what the list holds; mark one with it to say what its rows are while it’s empty, e.g. [ListRows(CellKind.Color)].

public override IReadOnlyList<RowColumn> Columns { get; }
public override string Example { get; }
public CellKind Kind { get; }

What each row is.

public override string Noun { get; }
public override string Describe()
public override IReadOnlyList<string>? Read(string row)
public override string Write(IReadOnlyList<string> cells)