Questions tagged [action-button]

The action bar allows you to add buttons for the most important action items relating to the app's current context.

Buttons that appear directly in the action bar with an icon and/or text are known as Action Buttons. Actions that can't fit in the action bar or aren't important enough are hidden in the action overflow.

163 questions
3
votes
1 answer

How to change the order of label and icon within an actionButton in shiny?

I have a "Next Page" actionButton within my shiny-app that has an arrow displayed as an icon and the words "Next Page". However, the icon always appears in front of the lable like this: I want the icon to appear after the text, like it is normally…
Soph2010
  • 563
  • 3
  • 13
3
votes
2 answers

R shiny dashboard body dependant from shiny subitem selection

Is it a way to create an shiny observeEvent dependant from shiny subitem selection? In the following reproductible example, I would like to automaticaly execute button 1 when submenu 1 is clicked and automaticaly execute button 3 when submenu 2 is…
JeanBertin
  • 633
  • 1
  • 7
  • 23
3
votes
0 answers

Android appbar has actionbuttons' icons squeezed if inflated from Fragment (Issue on layouts?)

After upgrading my compileSdkVersion, targetSdkVersion and Google support libraries the icons on appbar got squeezed on height. Then before the upgrade of the dependencies all the icons where in the correct aspect (Squared), but after the upgrade of…
3
votes
1 answer

how to reset shiny actionButton in R?

I want to execute the if statement only once when the actionButton is pressed once. So, I want to reset the actionButton because the if statement is executed continuously. T.T Here is my code. output$action_btn <- renderUI({ …
S.Kang
  • 581
  • 2
  • 10
  • 28
3
votes
3 answers

R shiny - last clicked button id

I have multiple action buttons, on which i want to show different select Inputs and I want to know last clicked button id, how can I do that? When I use which(lapply(c(1:10), function(i) { input[[paste0("ActionButton", i)]]}) == TRUE) It shows me…
user3463225
  • 401
  • 9
  • 19
2
votes
0 answers

Run specific code chunk when clicking on actionbutton

I'm trying to create a flexdashboard in R Markdown which runs a certain code chunk when clicking on an actionbutton. I.e. at the start of the dashboard, a questionnaire with radiobuttons appears, whereas when clicking on the button "Submit Answers",…
2
votes
1 answer

How to disable an actionbutton until embedded video is complete in Shiny

I'm building an app which includes embedded video and audio files. I've got action buttons that let users navigate forwards, but I need them to be greyed out until the embedded video/audio is complete. With things that require user input I find this…
Casper
  • 33
  • 3
2
votes
1 answer

Is it possible to have the same actionButton in 2 tabs [Shiny]?

I am trying to create an app which has 3 tabs: Tab 1 > it has a checkboxInput that if you click on it, you will do the log2 transformation. In addition, it has one actionButton to submit your data (with or without log2) Tab 2 > it has a sliderInput…
emr2
  • 1,436
  • 7
  • 23
2
votes
3 answers

Move rows from one DT to other DTs using action buttons in R Shiny

UPDATE I am trying to make an app using shiny and DT, similar to the accepted answer from Shree here. I would like, thou, to have the following additions to it: Extend the solution from Shree, so that items from the DT on the left (source) can be…
panman
  • 1,179
  • 1
  • 13
  • 33
2
votes
1 answer

R Shiny make second action button 2 appear after action button 1 is clicked

I think I am missing something very simple. I want my user to click on action button 1 so that action button 2 appears. But how can I 'render' a new action button in ui? My code is below. Thank you very much! library(shiny) ui = shinyUI(fluidPage( …
user3245256
  • 1,842
  • 4
  • 24
  • 51
2
votes
1 answer

Link R shiny selectInput item to open file actionButton

Using R shiny, is it possible to link selectInput item to open file action button ? I would like to adapt onclick argument of action button to achieve it. Please find below a reproductible example: Supposing we have "file_1.pdf" and "file_2.pdf" on…
JeanBertin
  • 633
  • 1
  • 7
  • 23
2
votes
1 answer

ShinyAction Button Closes App, but Bypasses session$onSessionEnded

Currently, I have function that launches shiny app, gets user inputs, saves to global variable once person close shiny window. I'd like to add ActionButton to close shiny instead of person having to close window The ActionButton closes shiny --- but…
Artie Ladie
  • 521
  • 4
  • 14
2
votes
2 answers

How to make actionButton only work when all inputs are given in R shiny?

Currently my actionButton is taking in user input through drop down lists, and then when the actionButton is pressed it outputs this to a csv file. However, if the user only inputs 2 out of the 5 drop down lists and presses the actionButton this…
picador
  • 67
  • 6
2
votes
1 answer

r shiny: How to print a message in the app after the user forgets to upload a file?

I am building a rudimentary shiny app. First, I created a data frame 'x' and saved it in my working directory: x <- data.frame(a = 1:4, b = 2:5) write.csv(x, 'x.csv', row.names = F) In my shiny I'd like to: Upload file 'x.csv' Click my action…
user3245256
  • 1,842
  • 4
  • 24
  • 51
2
votes
1 answer

how to add new/separate datatables after clicking actionbutton

I need help writing a shiny app that will spit out a separate datatable after entering into each respective input and clicking the actionbutton. I got the app to simply output to the datatable, but it will overwrite upon a new entry. I checked the…
Spencer Trinh
  • 743
  • 12
  • 31
1
2
3
10 11