Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Based on lots of beta feedback, the most requested missing feature of TanStack Table has been Cell Selection and Keyboard Navigation. And now, an official cellSelectionFeature has been added to V9! I originally started out thinking that we could just build an official example, showing you how to implement...

72,233 Aufrufe • vor 3 Monaten •via X (Twitter)

28 Kommentare

Profilbild von Kevin Thomas Van Cott
Kevin Thomas Van Cottvor 3 Monaten

On the TanStack Table side, this feature only handles the state management and APIs of the cell selection. Then you can set up any custom keyboard shortcuts or external actions otherwise to interact with the table APIs. There's a lot of advanced complexity with keyboard shortcuts that I never wanted to have to deal with within the TanStack Table core codebase, so thankfully, with nice composable patterns like this, Table can hand that complexity off to TanStack Hotkeys or your own custom solution of choice! Try out the full example here:

Profilbild von Kevin Thomas Van Cott
Kevin Thomas Van Cottvor 3 Monaten

Apparently, you can get halfway to building excel with this...

Profilbild von Braga
Bragavor 3 Monaten

@tan_stack Where’s tanstack sheets?

Profilbild von Kevin Thomas Van Cott
Kevin Thomas Van Cottvor 3 Monaten

@tan_stack I guess we could make an "Excel sheet" example using TanStack Table. There's already lots of excel spreadsheet libraries out there if you are truly wanting to duplicate full sheet behavior.

Profilbild von Avinash
Avinashvor 3 Monaten

@brasga_ @tan_stack Please add example, it will be really helpful

Profilbild von Kevin Thomas Van Cott
Kevin Thomas Van Cottvor 3 Monaten

@brasga_ @tan_stack

Profilbild von sadman
sadmanvor 3 Monaten

lfg, now i can delete a bunch of code from

Profilbild von JakubH
JakubHvor 3 Monaten

Neat! One of the features I was missing in TanStack Table was an API for defining row spans and related - such as adding hover function that highlights the relevant cells in a row.

Profilbild von Kevin Thomas Van Cott
Kevin Thomas Van Cottvor 3 Monaten

That's one feature that I really haven't wanted to implement, because the row models would potentially have to account for a lot more scenarios. Proposals on how to do this correctly would be welcome, though I don't know if it would get into V9

Profilbild von JakubH
JakubHvor 3 Monaten

Yeah, from our implementation, it’s tough one to solve generally.

Profilbild von Jessie Liauw A Fong
Jessie Liauw A Fongvor 3 Monaten

@tan_stack Really cool to see the amount of work you guys have put into it the last couple of weeks / months.

Profilbild von phatg
phatgvor 3 Monaten

huge

Profilbild von Portgas D Adhikari
Portgas D Adhikarivor 3 Monaten

This is beautiful. You can't believe the people familiarity with excel (sheets) like workload. So many of rhe request on tables for me in our org was to add basic sheet features. And rhe level of messy code we had to write for it.Gosh!! Thanks for this.

Profilbild von Akshara Hegde - oss/acc
Akshara Hegde - oss/accvor 3 Monaten

yay.. 🎉🎉🎉

Profilbild von aFuzzyBear 🇺🇦
aFuzzyBear 🇺🇦vor 3 Monaten

🔥

Profilbild von Grégory Hoarau
Grégory Hoarauvor 3 Monaten

Hope this works with tanstack virtual !

Profilbild von Kevin Thomas Van Cott
Kevin Thomas Van Cottvor 3 Monaten

It does

Profilbild von aspizu
aspizuvor 3 Monaten

Tanstack Excel when?

Profilbild von AI Mastery Guide
AI Mastery Guidevor 3 Monaten

Turning it into an official opt-in feature instead of bloating everyone's bundle is the right call 👍

Profilbild von Filip
Filipvor 3 Monaten

Modern, fast web based Excel 👀

Profilbild von Nope that ain't me
Nope that ain't mevor 3 Monaten

I just realized this is in beta excited!

Profilbild von Graeme Humphrey
Graeme Humphreyvor 3 Monaten

This is awesome. Looking forward to trying the first RC.

Profilbild von Enyel Sequeira
Enyel Sequeiravor 3 Monaten

@tan_stack This is nice to have!!

Profilbild von Eli Labes
Eli Labesvor 3 Monaten

Unreal - does this work with row spans and col spans? Currently using our own implementation forked off of GitHub for this and would love to just use built in.

Profilbild von Kevin Thomas Van Cott
Kevin Thomas Van Cottvor 3 Monaten

Custom row/column spans have always been something that TanStack Table just doesn't worry about. And it still is like that in V9 right now. Maybe we'll introduce that complexity in V10.

Profilbild von Munawwar Firoz
Munawwar Firozvor 3 Monaten

YUI 2006 flashback (It's better than of course)

Profilbild von Carlos Ivanchuk
Carlos Ivanchukvor 3 Monaten

great! will it support row selection as well? like this (press `LeftArrow` key until the row is selected)

Profilbild von Kevin Thomas Van Cott
Kevin Thomas Van Cottvor 3 Monaten

You can hook it up however you want. That's what's great about being a headless ui library. Feel free to PR any improvements to our React Aria examples

Ähnliche Videos

NO BUT HIS IDEA SO BRILLIANT? 👑: i already talked about it and gave hints to yeodoongies, right? so, it was almost at the final completion stage, but then the price came out. and it ended up being a bit higher than i expected. since i really wanted this item to be practical and actually useful for yeodoongies, i designed it with that in mind—and because of those extra details, the unit cost ended up a bit higher than i first thought 👑: so i thought, “wouldn’t this be a bit too much of a burden for yeodoongies?” that’s why i just decided to scrap it and changed to something else instead 💬: then just give me the one you scrapped 👑: ㅎㅎㅎ ah, that one was actually—well, i guess i can just say it now anyway. actually, i was thinking of a keyboard. the idea for that keyboard was something like i wanted to put hehetmon face on the keyboard—what should i call it? on the keycaps, like emojis. and then, you know those keyboards that don't make that loud clicking sound? not like mechanical keyboards, but ones that sound like asmr... ah, silent! but even though it's silent, it has that, you know—that “sagak-sagak” sound when you press the keys. yeah, you’re right! like “tuduk-tuduk” sound! i had that kind of keyboard in mind and tried to make it happen. but the unit cost ended up being higher than i expected. and i thought, this is a bit too much— i know our yeodoongies would want to have it no matter what, but if the price is this high, it’ll be such a burden on yeodoongies. so, i just made the call to scrap it and switched to something else

yeopamine

37,777 Aufrufe • vor 6 Monaten

This can be the superpower of the Neural Band that Meta is giving together with the Ray-Ban Meta Display glasses. The video shows an old prototype bracelet by CTRL+LABS, the startup acquired by Meta and whose technology was used to develop the Neural Band. At the beginning of the video, the guy makes an action (a keyboard key press) with his hands, then the bracelet can substitute the key pressure, and at the end of the video, the guy doesn't even have to do the action; it is just sufficient that he "thinks" about it. As long as the brain is sending an electric message to the fingers, the full action is not necessary anymore. Just an "intention" to move them is necessary. If the Neural Band is evolved to this stage, and the users are educated to this, potentially, we may not even need to perform air taps or writing gestures, but we could just think about doing them. This would reduce a lot of the fatigue of using XR devices and the weirdness of using them on the street. Then why isn't this feature available today? I guess that the reason is twofold. First of all, we have accuracy: the full gesture is easier to detect for the system. Many people (me included) are praising the accuracy of the Neural Band, and this is amazing, because an input mechanism should have a reliability close to 100%. Then we, as users, have never been trained to just "think" about actions: it would feel weird and hard to learn. I think we should undergo some training to learn how to do this "thinking" operation properly. I hope that something like this could come in the upcoming years... that would be the real game-changer paradigm if compared to the camera-based tracking.

TonyVT SkarredGhost

12,727 Aufrufe • vor 1 Jahr