#236-dropdown-list-component #257
No reviewers
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked-waiting-for-further-changes
bug
bug-only-on-server-for-mobile-not-webpage
Bug-Report-After-Merge
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
further-changes-needed
future-problem-not-fixint-this-period
help wanted
invalid
last-week-issue-to-fix
library
low-priority
needs input
needs review
not-implemented.
project documentation
question
research
reviewed
Script
security
SQL
style
Team 1
Team 2
team leaders
test-creation
testing
topLevel
unassigned
Under-review
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K!257
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "#236-dropdown-list-component"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Setup
The dropdown component is now added, to use the dropdown you have to follow this structure:
First import the dropdown into your "file":
Structure your data that you want to display in the drop down:
To display it on your view use this structure and set each parameter which are three, the title (description of dropdown), data you want to set the dropdown with and the function that the handler will pass the data to.
Specify the function that the value should be passed to (onChange event handler) which could be to update a view with new output-data.
The dropdown-function is created with an array of data, the map()-function transforms every element in the array to an option-element. The dropdown uses an event handler to access the value of the element that is passed into the function.
Everything works as mentioned in the Setup comment above, the code looks clean and is working with no errors.
One issue is that this branch has something wrong, running the app locally (frontend npm start) causes white page with the error
The review has been conducted in a correct way, i will accept this pull request.
@c22abdal wrote in #257 (comment):
Thanks for the review! I am unsure why you get this error, I have had issues with
npm startif the containers are not up and running. I'm usingnpm startwhen developing so I personally did not get any errors like that, perhaps some sort of version error? Did you try rebuilding it before runningnpm start?@b24erika wrote in #257 (comment):
Yes, according to the error there is a possibility of React version mismatch.