riganti / dotvvm

Open source MVVM framework for Web Apps
https://www.dotvvm.com
Apache License 2.0
743 stars 97 forks source link

DataPager styling & templating #1837

Open tomasherceg opened 2 months ago

tomasherceg commented 2 months ago

DataPager did not have a way to provide custom templates for page numbers, and there was no way to apply CSS classes or other attributes on inner <li> and <a> / <span> elements.

However, there is a bug here - when I use ListItemClass instead of ListItemclass, the attribute is rendered as Class and is not combined with Knockout JS binding css: { "class": something }.

It can be reproduced in ControlSamples/DataPager/DataPagerTemplates sample by changing the casing.