JS.logify: JS Functions To Logify A 'sliderInput'

View source: R/0_ui_helpers.R

JS.logifyR Documentation

JS Functions To Logify A sliderInput

Description

Make Shiny sliderInput support logarithmic scale. JS.logify create a Javascript function in string, and JS.onload register the functions to sliderInput. Search the usage in ⁠/inst/app/ui.R⁠ for examples.

Usage

JS.logify(digits = 2)

JS.onload(slider_id_vec, sci = FALSE)

Arguments

digits

digits after numerical point

slider_id_vec

vector of slider ids. Multiple functions for multiple sliderInput can be registered at once.

sci

use scientific notation

Value

JS code in string to logify sliderInput

JS code in string to register the JS logify functions

Functions

  • JS.logify: JS Function To Logify A sliderInput

  • JS.onload: JS code in string to register JS logify functions for each sliderInput


ctmm-initiative/ctmm-webapp documentation built on Aug. 21, 2023, 4:39 a.m.