Browse Source

add basic combinators

nottui-full-sensor
Simon Cruanes 1 year ago
committed by Frédéric Bour
parent
commit
9009a106b0
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      lib/nottui-widgets/nottui_widgets.ml

+ 4
- 0
lib/nottui-widgets/nottui_widgets.ml View File

@ -28,6 +28,10 @@ let string ?(attr=A.empty) str =
in
Ui.atom (I.vcat (split str 0))
let int ?attr x = string ?attr (string_of_int x)
let bool ?attr x = string ?attr (string_of_bool x)
let float ?attr x = string ?attr (string_of_float x)
let printf ?attr fmt =
Printf.ksprintf (string ?attr) fmt


Loading…
Cancel
Save