Gezinmeyi atla
Based on lots of beta feedback, the most requested missing feature of TanStack Table has been Cell…
0:00 / 0:23

Based on lots of beta feedback, the most requested missing feature of TanStack Table has been Cell…

Kevin Thomas Van Cott

@KevinVanCott3,3 B takipçi

X profili
431 beğeniİndirOrijinal gönderi

72.274 görüntüleme

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 this stuff yourself, but then after I built it, I thought that it should at least be an official plugin. And then after just a couple hours more of refinement, I just ended up adding it as a stock feature. 😂 There are a couple reasons why this is now a new built-in stock feature: 1. In V9, all features are opt-in, so this doesn't bloat the js bundle for anyone not using it. 2. The keyboard navigation part of this feature is actually not a part of this TanStack Table feature... because that gets handled by TanStack Hotkeys! More on that down below 👇

28 Yorum

Yorumlar X (Twitter) üzerindeki orijinal gönderiden alınmıştır

  • Kevin Thomas Van Cott profil fotoğrafı

    @KevinVanCott

    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:

    49 beğeni

  • Kevin Thomas Van Cott profil fotoğrafı

    @KevinVanCott

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

    14 beğeni

  • Braga profil fotoğrafı

    @brasga_

    @tan_stack Where’s tanstack sheets?

    16 beğeni

  • Kevin Thomas Van Cott profil fotoğrafı

    @KevinVanCott

    @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.

    8 beğeni

  • Avinash profil fotoğrafı

    @Avinash7986

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

    2 beğeni

  • Kevin Thomas Van Cott profil fotoğrafı

    @KevinVanCott

    @brasga_ @tan_stack

    2 beğeni

  • sadman profil fotoğrafı

    @sadmann17

    lfg, now i can delete a bunch of code from

    10 beğeni

  • JakubH profil fotoğrafı

    @ijakubh

    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.

    9 beğeni

  • Kevin Thomas Van Cott profil fotoğrafı

    @KevinVanCott

    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

    9 beğeni

  • JakubH profil fotoğrafı

    @ijakubh

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

  • Jessie Liauw A Fong profil fotoğrafı

    @Jessie_laf

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

    5 beğeni

  • phatg profil fotoğrafı

    @phatggg

    huge

    2 beğeni

  • Portgas D Adhikari profil fotoğrafı

    @shreyam1008

    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.

    1 beğeni

  • Akshara Hegde - oss/acc profil fotoğrafı

    @akshara_dev

    yay.. 🎉🎉🎉

    1 beğeni

  • aFuzzyBear 🇺🇦 profil fotoğrafı

    @aFuzzyBear2

    🔥

    1 beğeni

  • Grégory Hoarau profil fotoğrafı

    @GregHoarau

    Hope this works with tanstack virtual !

    1 beğeni

  • Kevin Thomas Van Cott profil fotoğrafı

    @KevinVanCott

    It does

    1 beğeni

  • aspizu profil fotoğrafı

    @aspizu_

    Tanstack Excel when?

  • AI Mastery Guide profil fotoğrafı

    @aiseomastery

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

  • Filip profil fotoğrafı

    @aladicf

    Modern, fast web based Excel 👀