Skip to content

Commit

Permalink
Merge pull request #27 from ronimizy/chore/readme-refactor
Browse files Browse the repository at this point in the history
refactor: readme
  • Loading branch information
ronimizy authored Sep 18, 2022
2 parents 7ea3ebd + 1767d40 commit 10bdd34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ Table API is based on `ITable<T>` interface, where `T` is a type of model, that
To define a table you need to create a class derived from `RowTable<T>` and
implement `IEnumerable<IRowComponent> RenderRows(T model)` method.

To customize rendered table implement `ITableCustomizerInterface` by your table class.
To customize rendered table override `Customize` method in your table class.

```csharp
public readonly record struct CartItem(string Name, decimal Price, int Quantity);
Expand Down Expand Up @@ -223,7 +223,7 @@ public class CartTable : RowTable<CartTableModel>, ITableCustomizer
}
}

public IComponent Customize(IComponent component)
public override IComponent Customize(IComponent component)
{
return component
.WithBottomBorder(BorderType.Thin, Color.Black)
Expand Down

0 comments on commit 10bdd34

Please sign in to comment.