Skip to content

Commit 10bdd34

Browse files
authored
Merge pull request #27 from ronimizy/chore/readme-refactor
refactor: readme
2 parents 7ea3ebd + 1767d40 commit 10bdd34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Table API is based on `ITable<T>` interface, where `T` is a type of model, that
194194
To define a table you need to create a class derived from `RowTable<T>` and
195195
implement `IEnumerable<IRowComponent> RenderRows(T model)` method.
196196

197-
To customize rendered table implement `ITableCustomizerInterface` by your table class.
197+
To customize rendered table override `Customize` method in your table class.
198198

199199
```csharp
200200
public readonly record struct CartItem(string Name, decimal Price, int Quantity);
@@ -223,7 +223,7 @@ public class CartTable : RowTable<CartTableModel>, ITableCustomizer
223223
}
224224
}
225225

226-
public IComponent Customize(IComponent component)
226+
public override IComponent Customize(IComponent component)
227227
{
228228
return component
229229
.WithBottomBorder(BorderType.Thin, Color.Black)

0 commit comments

Comments
 (0)