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

Various enhancements #11

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

warnes
Copy link

@warnes warnes commented Jun 21, 2024

  1. Add a new colnames parameter that is passed onto the wrapped DT::renderDataTable to allow control of the column labels of the displayed table.
  2. Add new arguments to control whether action buttons are enabled or disabled on startup.
    The state can then be changed later with code like:
 if(user_info()$group == 'admin') 
        {
          enable('eca_data_edit',   asis = TRUE)
          enable('eca_data_add',    asis = TRUE)
          enable('eca_data_remove', asis = TRUE)
          enable('eca_data_copy',   asis = TRUE)
        }
        else
        {
          enable ('eca_data_edit',   asis = TRUE)
          disable('eca_data_add',    asis = TRUE)
          disable('eca_data_remove', asis = TRUE)
          disable('eca_data_copy',   asis = TRUE)
        }
  1. Show an explanatory message if the user clicks edit, copy or delete without selecting a row.
  2. Modify the 'Delete' modal dialog to have the same appearance as the other modal dialogs, by using the same tags, with all of the data entries disabled.

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

Successfully merging this pull request may close these issues.

1 participant