xorcery / TableEditor

11 stars 8 forks source link

Partial view table sample (5 lines) #19

Closed csychester closed 7 years ago

csychester commented 7 years ago

Hi, a great plugin and edition to Umbraco.

Is it possible have a partial view that only outputs the first 5 rows of the table body so I could output a sample of the table rather than the full table? My razor abilities are limited to monkey see monkey do, could you point me in the right direction.

Thanks

Neil

kgiszewski commented 7 years ago

if you are using the sample template from the project homepage...

@foreach (var row in Model.Cells.Take(5))
{}

Mileage may vary.

csychester commented 7 years ago

Thank you..works well