parttio / grid-pagination

Adding pagination feature to a Vaadin 10 Grid component
Other
22 stars 16 forks source link

Use Vaadin theme Mixin for lit-pagination #15

Open jcgueriaud1 opened 3 years ago

jcgueriaud1 commented 3 years ago

How can we change the style of pagination?

From Discord. How can I change the size of the icons?

Ideally lit-pagination should use Vaadin themableMixin so it will be possible to use Cssimport theme-for lit-pagination. @CssImport(value = "./lit-pagination-custom.css", themeFor = "lit-pagination") And use this css: lit-pagination-custom.css

paper-icon-button {
height: 70px;
width:70px;
}

There is an example here for lit and Vaadin 14: https://github.com/vaadin-component-factory/explorer-tree-grid-flow/blob/master/explorer-tree-grid-flow/src/main/resources/META-INF/resources/frontend/src/explorer-tree-toggle.js#L14

And you need this annotation on the java side: @NpmPackage(value="@vaadin/themable-element", version = "0.3.0")