inst/gui/view/ui.R

library(shinyRGL)
source(system.file("gui/view", "helpers.R", package="x3pr"))


shinyUI(fluidPage(
  
  titlePanel("View Surface"),
  #Sidebar controls:
  sidebarLayout(
    sidebarPanel(
      fileInput(inputId = "surface", label = "Choose a surface", accept = "surface"),
      
      #Once the file is selected generate sliders:
      uiOutput("slider.zmag"),
      uiOutput("slider.theta"),
      uiOutput("slider.phi")
      
    ),
    
    #Main Panel:
    mainPanel(
    
      #h3(textOutput("header"))
      webGLOutput("plot", width="100%", height="600px")
          
    )
  )
  
))
npetraco/x3pr documentation built on May 23, 2019, 9:33 p.m.