-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
docs: vue examples #607
docs: vue examples #607
Conversation
|
||
const sorting = ref<SortingState>([]) | ||
|
||
const getSortingHandler = (e: Event, fn: any) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't figure out the type
for this function here.
const setSorting = (sortingUpdater: any) => { | ||
const newSortVal = sortingUpdater(sorting.value) | ||
|
||
sorting.value = newSortVal | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, I couldn't figure out the type
for the sortingUpdater
function.
fe6f54b
to
badb584
Compare
@@ -26,12 +26,12 @@ function ReactTableVirtualized() { | |||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file only contains formatting changes due to prettier being applied.
@@ -11,7 +11,7 @@ | |||
"linkAll": "lerna exec 'npm link' --parallel", | |||
"unlinkAll": "lerna exec 'npm unlink' --parallel", | |||
"dev": "npm run clean && npm run watch", | |||
"prettier": "prettier \"packages/*/{src/**,examples/**/src/**}.{md,js,jsx,ts,tsx,json}\" --write", | |||
"prettier": "prettier \"{packages/*/src/**,examples/*/*/src/**}.{md,js,jsx,ts,tsx,vue,json}\" --write", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the .vue
extension and fixed the prettier
command glob
so that it takes into account the examples as well.
Thanks @kouts |
Thanks for this great library and for making the Tanstack framework-agnostic!
This PR adds the following examples for Vue:
The
padding
examples are still pending, but I believe this is a good start.PS: I tried running the docs locally but couldn't figure it out, it would be nice if we can have some instructions on how to do that.