Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amend text inputs for string params #801

Merged
merged 2 commits into from
Jan 24, 2024
Merged

Conversation

jernestmyers
Copy link
Contributor

Resolves #612

@jernestmyers jernestmyers requested a review from dmfalke January 24, 2024 20:30
Copy link
Member

@dmfalke dmfalke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the requested change below. It will necessitate a change in QuestionDecoders.ts, and requires completion of VEuPathDB/WDK#78.

onChange={onParamValueChange}
required={!parameter.allowEmptyValue}
size={40}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If parameter.isNumber is true, set this to 20.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realized that I never made it clear that StringParam can also be used for numbers, even though we do have a NumberParam. It's possible isNumber is not used anymore.

@jernestmyers jernestmyers requested a review from dmfalke January 24, 2024 21:39
@jernestmyers jernestmyers merged commit f9c23c4 into main Jan 24, 2024
1 check passed
@jernestmyers jernestmyers deleted the amend-string-param-ui branch January 24, 2024 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

text box (stringParam) in go term and other searches
2 participants