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

Learn React Todo-List #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

cheney103
Copy link

@cheney103 cheney103 commented Mar 5, 2021

PROJECT CONTRIBUTIONS ARE ALLOWED AND WELCOMED. Follow the guidelines as outlined below!

Learn React todo-list for editing and deleting items.

Description

Changes that were made for the delete functionality were passing index as a parameter in the handleRemove function.
In addition, within the handleRemove a filter was applied to the data to aquire data matching the particular index value and
deleting it, if it was not equals to the parameter passed in the handleRemove fuction. SetTask was then called to update
the list.

For the edit functionality, a textarea tag was implemented around the list field so as to allow the the area to be editable
to edit values. Onchange was implemented also to the textfield , when the text field is clicked the area becomes editable.
Within the handleEdit function findindex function was used to get the index value and match it with the row selected.
When that happens settask is called again to override the old data with the new.

Other fictionalities implemented were a screen refresh function which was called in the delete to update the deleted values presented on screen.

Related Issue / Asana Task

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

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.

2 participants