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

Shiny table output #10

Closed
Prof-ThiagoOliveira opened this issue Mar 22, 2021 · 3 comments
Closed

Shiny table output #10

Prof-ThiagoOliveira opened this issue Mar 22, 2021 · 3 comments

Comments

@Prof-ThiagoOliveira
Copy link

Dear authors,

I realized you have several wide tables as output in your shiny app. When a table is too wide, you can fix certain columns using the FixedColumns extension to be visible when you scroll the table horizontally. Thus, I suggest you fix the first column related to row labels (see image) and also include a scroll on the x-axis to facilitate end-user interaction with the output. You can include a scrolling row by adding in the datatable options scrollX = TRUE.

table_design

Ex.:

datatable(
  your_data, 
  extensions = 'FixedColumns',
  options = list(
    dom = 't',
    scrollX = TRUE,
    fixedColumns = TRUE
  )
)

Does this suggestion make sense to you?
Best regards,

@tatirri
Copy link

tatirri commented Mar 22, 2021

Professor Thiago Oliveira,

We will start making the changes accordingly to the recommendations you provided. Thanks for your input. AM

@DidierMurilloF
Copy link
Owner

Dear Thiago,

I got your suggestions and I added the features to make the table outputs more comprehensible for the end-users. I already did the push and you can see the changes. Please, let us know if have any question! Thank You!

Best,

Didier Murillo

@Prof-ThiagoOliveira
Copy link
Author

Thanks!

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

3 participants