-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathui.R
More file actions
31 lines (26 loc) · 998 Bytes
/
Copy pathui.R
File metadata and controls
31 lines (26 loc) · 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
library(shiny)
library(jsme)
ui = shinyUI(
fluidPage(
sidebarLayout(
sidebarPanel(
actionButton('smilesButton', 'Smiles'),
actionButton('molFileButton', 'MOL File'),
actionButton('jmeFileButton', 'JME File'),
textInput('smilesTextInput', 'Smiles', width='100%'),
tags$textarea(id='molFileTextInput', rows=6, '', style='width: 100%'),
textInput('jmeFileTextInput', 'JME string', width='100%'),
actionButton('readSampleMoleculeButton', 'Read Molecule'),
actionButton('readSampleMultipartStructureButton', 'Read Multipart Structure'),
actionButton('readSampleReactionButton', 'Read Reaction'),
actionButton('useJmeButton', 'Use JME'),
actionButton('useMolButton', 'Use MOL file'),
actionButton('clearEditorButton', 'Clear Editor'),
actionButton('clearFieldsButton', 'Clear Fields')
),
mainPanel(
jsmeOutput('jsmeElement', '650px', '650px')
)
)
)
)