Dimitri Liakhovitski
2013-Oct-07 16:04 UTC
[R] Color font in verbatim text output in Shiny
Hello!
Is there any way to change the colors (and other characteristics) of the
font that is being used by Shiny when the ui.r code hase some
verbatimTextOutput?
For example, I am producing 2 outputs in two tabs.
mainPanel(
tabsetPanel(
tabPanel("Output 1", verbatimTextOutput("myoutput1")),
tabPanel("Output 2", verbatimTextOutput("myoutput2"))
)
)
Thank you!
Dimitri Liakhovitski
[[alternative HTML version deleted]]
inline below.
HTH,
-- David
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On Behalf Of Dimitri Liakhovitski
Sent: Monday, October 07, 2013 11:04 AM
To: r-help
Subject: [R] Color font in verbatim text output in Shiny
Hello!
Is there any way to change the colors (and other characteristics) of the
font that is being used by Shiny when the ui.r code hase some
verbatimTextOutput?
For example, I am producing 2 outputs in two tabs.
mainPanel(
tabsetPanel(
# You can set many attributes, not just colors
tags$style(type='text/css', '#myoutput1 {background-color:
rgba(255,255,0,0.40); color: green;}'),
tags$style(type='text/css', '#myoutput2 {background-color:
rgba(0,0,255,0.10); color: blue;}'),
tabPanel("Output 1", verbatimTextOutput("myoutput1")),
tabPanel("Output 2", verbatimTextOutput("myoutput2"))
)
)
Thank you!
Dimitri Liakhovitski
[[alternative HTML version deleted]]
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
This e-mail and any materials attached hereto, including, without limitation,
all content hereof and thereof (collectively, "XR Content") are
confidential and proprietary to XR Trading, LLC ("XR") and/or its
affiliates, and are protected by intellectual property laws. Without the prior
written consent of XR, the XR Content may not (i) be disclosed to any third
party or (ii) be reproduced or otherwise used by anyone other than current
employees of XR or its affiliates, on behalf of XR or its affiliates.
THE XR CONTENT IS PROVIDED AS IS, WITHOUT REPRESENTATIONS OR WARRANTIES OF ANY
KIND. TO THE MAXIMUM EXTENT PERMISSIBLE UNDER APPLICABLE LAW, XR HEREBY
DISCLAIMS ANY AND ALL WARRANTIES, EXPRESS AND IMPLIED, RELATING TO THE XR
CONTENT, AND NEITHER XR NOR ANY OF ITS AFFILIATES SHALL IN ANY EVENT BE LIABLE
FOR ANY DAMAGES OF ANY NATURE WHATSOEVER, INCLUDING, BUT NOT LIMITED TO, DIRECT,
INDIRECT, CONSEQUENTIAL, SPECIAL AND PUNITIVE DAMAGES, LOSS OF PROFITS AND
TRADING LOSSES, RESULTING FROM ANY PERSON'S USE OR RELIANCE UPON, OR
INABILITY TO USE, ANY XR CONTENT, EVEN IF XR IS ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES OR IF SUCH DAMAGES WERE FORESEEABLE.