textfield
Text fields with exposed components
ExpressionField(value, on_value, event_on_append, messages=[], error=False)
#
Expression editor component
Note
this is a vue component. look at the relevant vue file.
Source code in src/sdss_explorer/dashboard/components/textfield.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
InputTextExposed(label, value='', on_value=None, disabled=False, password=False, continuous_update=False, update_events=['focusout', 'keyup.enter'], error=False, message=None, loading=False, hint=None, placeholder=None, classes=[], style=None, **kwargs)
#
Free form text input with hint and messages exposed
Arguments#
label
: Label to display next to the slider.value
: The currently entered value.on_value
: Callback to call when the value changes.disabled
: Whether the input is disabled.password
: Whether the input is a password input (typically shows input text obscured with an asterisk).continuous_update
: Whether to call theon_value
callback on every change or only when the input loses focus or the enter key is pressed.update_events
: A list of events that should triggeron_value
. If continuous update is enabled, this will effectively be ignored, since updates will happen every change.error
: If truthy, show the input as having an error (in red). If a string is passed, it will be shown as the error message.message
: Message to show below the input. Iferror
is a string, this will be ignored.classes
: List of CSS classes to apply to the input.style
: CSS style to apply to the input.
Source code in src/sdss_explorer/dashboard/components/textfield.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
|