from shiny.ui.css import as_css_unit
0) as_css_unit(
'0'
ui.css.as_css_unit(value)
Convert a value into a CSS unit.
value: None | CssUnit
A value to convert into a CSS unit.
Type | Description |
---|---|
None | str | If the value is None , then None . If the value is 0 , then "0" . If the value is numeric, then a formatted pixel value. Otherwise, the value as-is. |