Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shiny R Button Alignment

Tags:

r

shiny

I have two buttons in my U.i file

 submitButton("Analysis"),width=6,downloadButton('downloadData', 'Download Data'))

Which gives the following output as the app

enter image description here

However I am trying to align these buttons so that the download data is right aligned and the analysis button is on the left, instead of how it looks now. How do i go about this?

like image 420
vik Avatar asked Feb 25 '15 02:02

vik


1 Answers

You can do the following. Please look into shiny 4 small textInput boxes side-by-side also

library(shiny)

ui =fluidPage(
  div(style="display:inline-block",submitButton("Analysis"),width=6),
  div(style="display:inline-block",downloadButton('downloadData', 'Download Data'))
)
server = function(input, output, session){}
runApp(list(ui = ui, server = server))

enter image description here

like image 182
Pork Chop Avatar answered Oct 16 '22 00:10

Pork Chop