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

Add fill arguments to plotOutput(), imageOutput(), and uiOutput() #3715

Merged
merged 10 commits into from
Oct 26, 2022
Merged

Conversation

cpsievert
Copy link
Collaborator

@cpsievert cpsievert commented Oct 21, 2022

See here for an explanation of what this PR does

Testing notes

No manual testing needed. With existing tests as well as new ones being added in rstudio/shinycoreci#132, we'll have pretty good coverage on these changes

R/bootstrap.R Outdated Show resolved Hide resolved
R/bootstrap.R Outdated Show resolved Hide resolved
R/bootstrap.R Outdated Show resolved Hide resolved
@cpsievert cpsievert marked this pull request as ready for review October 24, 2022 21:22
@cpsievert cpsievert requested a review from jcheng5 October 24, 2022 21:38
NEWS.md Outdated Show resolved Hide resolved
NEWS.md Outdated Show resolved Hide resolved
R/bootstrap.R Outdated
@@ -1155,12 +1174,19 @@ dataTableOutput <- function(outputId) {
#' )
#' @export
htmlOutput <- function(outputId, inline = FALSE,
container = if (inline) span else div, ...)
container = if (inline) span else div, fill = FALSE, fillItem = !inline, ...)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was envisioning fillItem = FALSE and fill = fillItem. (Or possibly vice versa.) Like, usually the contents of a uiOutput is not going to be a fill item, but if it is (and it matters) then probably the uiOutput's container is a fill container?

Copy link
Collaborator Author

@cpsievert cpsievert Oct 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like that you'd have to remember to uiOutput(fillItem = TRUE) to opt-in to fill behavior, yet do fill = FALSE anywhere else to opt-out (which is why I reversed their meaning). Anyway, I think I have a better way forward that I'll implement in the next commit.

@cpsievert cpsievert merged commit e48e9c6 into main Oct 26, 2022
@cpsievert cpsievert deleted the fill branch October 26, 2022 16:52
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.

2 participants