mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
make textarea rows configurable (#3042)
* make textarea rows configurable * add comments * better defaults
This commit is contained in:
@@ -140,6 +140,8 @@ describe("values", () => {
|
||||
warning: null,
|
||||
minLength: null,
|
||||
maxLength: null,
|
||||
minRows: 3,
|
||||
maxRows: 6,
|
||||
placeholder: null,
|
||||
}).build({} as any)
|
||||
const validator = value.validator
|
||||
@@ -452,6 +454,8 @@ describe("values", () => {
|
||||
warning: null,
|
||||
minLength: null,
|
||||
maxLength: null,
|
||||
minRows: 3,
|
||||
maxRows: 6,
|
||||
placeholder: null,
|
||||
})).build({} as any)
|
||||
const validator = value.validator
|
||||
|
||||
@@ -81,8 +81,10 @@ const {InputSpec, List, Value, Variants} = sdk
|
||||
required: !(value.nullable || false),
|
||||
default: value.default,
|
||||
placeholder: value.placeholder || null,
|
||||
maxLength: null,
|
||||
minLength: null,
|
||||
maxLength: null,
|
||||
minRows: 3,
|
||||
maxRows: 6,
|
||||
},
|
||||
null,
|
||||
2,
|
||||
|
||||
Reference in New Issue
Block a user