Add support for form schema property setting textarea rows value #3759
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds an ability to set the initial rows setting for the textarea, instead of it being hard-coded to 1. This allows you to then pass into the form widget the following schema:
The main use case here is that if you have a large value on the form, being able to set the rows allows to have it expanded by default, instead of the user only seeing 1 line of a very large string. Let me know if there's any better places to put the config.
Fixes #3758
Summary:
Enhanced
textarea
inLightweightArgInput.svelte
to support dynamic rows setting from schema, improving UX for larger text inputs.Key points:
LightweightArgInput.svelte
to dynamically settextarea
rows from schema.extra?.['rows'] || 1
to determine rows count, defaulting to 1 if not specified.Generated with ❤️ by ellipsis.dev