File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -345,7 +345,7 @@ inputBox inputProps = formBuilder_ \{ readonly } s onChange ->
345
345
else Input .input inputProps
346
346
{ value = s
347
347
, onChange = capture targetValue (traverse_ onChange)
348
- , style = R .css { width: " 100%" }
348
+ , style = R .css { width: " 100%" } <> inputProps.style
349
349
}
350
350
351
351
-- | A simple text box makes a `FormBuilder` for strings
@@ -451,7 +451,7 @@ labeledCheckbox label =
451
451
}
452
452
where
453
453
lumiAlignToInput = element (R .unsafeCreateDOMComponent " lumi-align-to-input" )
454
-
454
+
455
455
-- | A form that edits an optional structure represented by group of radio
456
456
-- | buttons, visually oriented in either horizontal or vertical fashion.
457
457
-- |
Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ type InputProps =
97
97
, disabled :: Boolean
98
98
, max :: Nullable Number
99
99
, min :: Nullable Number
100
+ , maxLength :: Nullable Int
101
+ , minLength :: Nullable Int
100
102
, step :: Nullable InputStep
101
103
, name :: String
102
104
, onBlur :: Nullable EventHandler
@@ -133,6 +135,8 @@ input = makeStateless component $ element lumiInputElement <<< mapProps
133
135
, indeterminate: props.checked == Indeterminate
134
136
, max: props.max
135
137
, min: props.min
138
+ , maxLength: props.maxLength
139
+ , minLength: props.minLength
136
140
, step: toNullable $ map displayStep $ toMaybe props.step
137
141
, name: props.name
138
142
, onBlur: props.onBlur
@@ -156,6 +160,8 @@ text_ =
156
160
, disabled: false
157
161
, max: toNullable Nothing
158
162
, min: toNullable Nothing
163
+ , maxLength: toNullable Nothing
164
+ , minLength: toNullable Nothing
159
165
, step: toNullable Nothing
160
166
, name: " "
161
167
, onBlur: toNullable Nothing
You can’t perform that action at this time.
0 commit comments