-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Conversation
c87968d
to
89d96ab
Compare
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, ...) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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