inst/shinyoptiPlus/shinyUtils.R

print("toto")


exaBox <- function(title, value, icon, width, color){

  if(color == "paramCol"){
    cla <- "exaBox"
  }
  if(color == "scoreCol"){
    cla <- "exaBoxdarkblue"
  }


      htmlB <- paste0(
        '<div class="',cla,'"><div><img src="',
        icon,
        '"/><br>',
        title,
        '<br><b>',
        value,
        '</b></div></div>'
      )



   column(HTML(htmlB), width = width)

}
anaislaot/optiPlus documentation built on May 23, 2019, 6:03 a.m.