Skip to content
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

feature request: Adding Minimal Support for Paginated Display of Long Tables as Widgets #60

Open
ZhimingYe opened this issue Dec 14, 2024 · 1 comment

Comments

@ZhimingYe
Copy link

ZhimingYe commented Dec 14, 2024

Currently, litedown does not support HTML widgets, which I think is entirely reasonable for a minimalist package. However, the reason I’ve been using HTML instead of Word or LaTeX to present my results for many years is because packages like DT and reactable can display very long result tables in a reasonable manner in the output report — something not uncommon in data science. This is also why I believe HTML is fundamentally different from Word — putting such long tables in Word makes them almost unreadable. However, the semi-interactive nature of HTML allows for such implementations.

Therefore, I greatly miss the DT functionality you implemented. While DT is incredibly powerful and perhaps challenging to maintain, I wonder if there’s a way to provide minimal support for paginated display of long tables as widgets.

感谢您百忙之中依然在持续付出,我真的非常喜欢litedown包的轻巧。您的包总是能带给人惊喜:)
另一个个人的建议是,如果litedown提供一个一页纸能讲述完的教程(类似cheat sheets),将大大方便其他人入门(我觉得这也是极简的一部分哈哈,Quarto的文档过于笨重了,但是knitr和rmarkdown的教学(例如 https://rmarkdown.rstudio.com/lesson-1.html )我觉得都更为对于初学者来说容易上手)。现在litedown的整个文档是真的非常全,但是实在太全了。这个仅仅作为个人建议,不作为此issue的一部分,因此不使用英语书写,希望不会增加您的负担。

In Quarto:

image

In litedown:

image
@yihui
Copy link
Owner

yihui commented Dec 15, 2024

Thanks for the suggestion! If all you want is table pagination, I feel the (JS) implementation should be quite straightforward and perhaps can be done in just 20 lines of code :) I'll experiment a bit and let you know.

如果litedown提供一个一页纸能讲述完的教程(类似cheat sheets)

这个已在计划中( #43 的第 4 条)。目前的文档里还有几部重头戏没怎么写,等写完再写简版的。写文档比写代码更烧脑。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants