shiny.semantic icon indicating copy to clipboard operation
shiny.semantic copied to clipboard

Specific formats for numeric inputs to show up in UI display

Open AlexPars opened this issue 2 years ago • 0 comments

Combination of shiny.semantic, semantic.dashboard and Semantic (Fomantic) UI is truly outstanding. One area I still have problems with is how to make specific formats for numeric inputs (passed to UI using either shiny.semantic::numericInput or shiny.semantic::numeric_input) to show up in UI display.

For example, 0.045 to show up as 4.5%, or 1234 euros to show up as 1234 followed up (or preceded by) the euro sign, or 13583135 and 23/100 to be written as 13,583,135.23 (US notation) or 13 583 135,23 (European notation) or 13.583.135,23 (another European notation)

I have not found this info in any examples provided for shiny.semantic, and I perhaps I have missed something.

I have found other very good packages to do this, such as shinyWidgets (for example functions formatNumericInput and autonumericInput), but they rely on Bootstrap rather than on SemanticUI

AlexPars avatar Jun 10 '22 11:06 AlexPars