-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minor improvement: css-classes on Components #14
Comments
urghs the "if" will trigger an error, just delete it. |
I would recommend creating your own paging component const pages = handler.getPages({ ellipsis: true })
console.log($pages) result : [ 1, 2, 3, 4, 5, null, 24 ] Svelte template : {#each $pages as page}
<button on:click={() => handler.setPage(page)}>
{page ?? '...'}
</button>
{/each} Then you have complete control over styling in a minimal logic imlementation. That being said, let me know if you still prefer that I implement a class property |
Ahhh, i just recently updated to the latest version, so i wasn't aware of that approach. That's totally fine with me. <3 |
Great |
eg. the Pagination Component has no class whatsoever.
Would be cool if Components could be written in this way too:
Inside of the Component it can be done in this way:
Don't know if this is the official way, but i found it on the webs and it was very useful for me.
The text was updated successfully, but these errors were encountered: