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
1
vote
1 answer

Incorrect behavior of Observe on actionButton in DT::DTOutput in shiny module

The example of code below generate simple shinyApp which contain numeric input and data table with button in rows. Numbers of row in data table the same as numeric input. Also every button is observed and generate alert when…
1
vote
1 answer

Observing multiple action Buttons Shiny

I'm new to R development and I am struggling a little bit how I can achieve that. I have a piece of code where I observe two action buttons waiting for clicks on them. Now I want know in the if statement which one of them was clicked, but my…
Erick
  • 147
  • 2
  • 12
1
vote
1 answer

actionButton in Shiny DataTable that has a Different on-click URL by Row

I am trying to create an action button in a Shiny DataTable that when clicked links to a specific Amazon product. I modeled my code after R Shiny: Handle Action Buttons in Data Table. When the button is clicked, I need the user to navigate to a…
Jacksonsox
  • 1,114
  • 15
  • 25
1
vote
1 answer

Running codes upon clicking on Action Button in R shiny

I am running a bunch of codes (around 100 lines) in R shiny. I want the Shiny interface to open at first and there should be an Action Button, Clicking which it will execute the code and show a pop up that it has finished. the codes should not…
Narendra Sahu
  • 136
  • 2
  • 14
1
vote
0 answers

if then statement not working and crashes

Been trying to get my code to work but it seems to comes crashing. Can anyone help me? Thank you in advance :-) EditText HbA1c; TextView result; Button button; @Override protected void onCreate(Bundle savedInstanceState) { …
Louell Sala
  • 45
  • 1
  • 7
1
vote
1 answer

Accessing Action Buttons from Another File PyQt4

I have one .py file which is generated by pyuic of Pyqt4. In this file, I have a toolbar and a rotate icon which is connected to actionRotate action. Here is a small partition of the code; from PyQt4 import QtCore, QtGui try: _fromUtf8 =…
BjkOcean
  • 65
  • 1
  • 9
1
vote
1 answer

Hiding button A on click of button B in Shiny

Very simple question: In my shiny UI, I have two buttons, A and B on the click of button B I would like button A to be hidden, but I don't think updateActionButton has this capability. So how is this accomplished? Thanks in advance
John Smith
  • 393
  • 1
  • 6
  • 17
1
vote
2 answers

Shiny Action button not triggering observeEvent

I'm trying to create a simple shiny app that asks two questions in a sequence. I created a div for each question, with the second one hidden. I am trying to use observeEvent with an action button to trigger a hide for the first div and a show for…
jackStinger
  • 2,035
  • 5
  • 23
  • 36
1
vote
1 answer

share button and favorites folder in xcode 8

So this is my code: @IBOutlet weak var quoteLabel: UILabel! var quotes = ["I am no 1", "I am no2", "I am no3"] var currentQuoteIndex = 0 @IBAction func forwardAction(_ sender: UIButton) { currentQuoteIndex += 1 if…
1
vote
1 answer

Why won't my Shiny action button work?

library(shiny) library(leaflet) library(nycflights13) library(DT) parguera <- nycflights13::flights r_colors <- rgb(t(col2rgb(colors()) / 255)) names(r_colors) <- colors() ui <- fluidPage( titlePanel("NOAA Caribbean Coral…
madhatter5
  • 129
  • 2
  • 15
1
vote
1 answer

Android notification action button position

Currently in Android, the notification action button appears by default as right aligned to the screen. I am showing two action buttons in my app and they're shown right aligned by default. Can we alter the position of the action buttons as I want…
1
vote
1 answer

Sorting a named list using actionButton Shiny

I have a named list as follows: vegshop <- list( "FRUITS" = c("MANGO", "JACKFRUIT", "BANANA"), 'VEGETABLES' = c("OKRA", "BEANS", "CABBAGE") ) I am trying to order the list based on the names, and this works…
Apricot
  • 2,925
  • 5
  • 42
  • 88
1
vote
0 answers

Using index.html as UI doesn't work with eventReactive Shiny R

I've been struggling with this issue in the last 2 days and nothing seems to work for me so far. What I want this piece of code to do: user click searchButton, an empty data frame is created. eventReactive works fine for me on normal UI.R but when…
1
vote
1 answer

R Shiny delete button into data table doesn't work well

I have built a shiny App which allow user to update datatable whith a form. I have some trouble with a feature which allow user to delete a row in the datable by clicking on a actionLink into the rendered datatable. It works properly but I manage…
Christophe D.
  • 1,089
  • 11
  • 21
1
vote
3 answers

How to add white background to a float action button

I have a float action button which i implemented on my MainActivity, am still a rookie and what i intend to achieve is to add a white background to this float action button when the button is clicked. This is the code am currently using, i will…
Omega
  • 289
  • 1
  • 4
  • 14