Ui.Jstr_editorString editors.
String editors are for editing short strings. See the styling information.
val v : ?class':Jstr.t -> ?enabled:bool Note.signal -> ?on:'a Note.event -> ?length:int Note.signal -> Jstr.t Note.signal -> tv ~class' ~enabled ~on ~size s is an editor for a string:
s is the string value to edit.length is the length of the editor in number of characters (defaults to S.const 20).on can be used to put the string editor on focus and in editing mode.enabled indicates if the editor can be interacted with defaults to Note.S.Bool.true'.class' is added to the underlying element's classes.val action : t -> Jstr.t Note.eventaction e occurs with a new string when an edition was validated.
val enabled : t -> bool Note.signalenabled e is true iff the editor is enabled.
val editing : t -> bool Note.signalediting e is true whenever the string is being edited.
The element returned by el makes use of the following CSS classes: