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

Editing entries via API #39

Open
13 tasks
Mirv opened this issue Nov 16, 2018 · 1 comment
Open
13 tasks

Editing entries via API #39

Mirv opened this issue Nov 16, 2018 · 1 comment

Comments

@Mirv
Copy link
Owner

Mirv commented Nov 16, 2018

Editing of objects ...

  • make a constructor in fruit to add state editable

  • make a button in fruit that checks state of editable & outputs edit if able

  • in fruit's render function, write let function to setup the values of the state for the edit button

  • add name & description fields to the fruit render function's return function

  • fruit constructor needs a function bound to itself to bind to object

  • the function above needs a function definition (handleEdit) made in fruit but outside the constructor

  • the handleEdit needs to be bound in the render's return method for onClick

  • Body class needs to have a method (handleUpdate) to form fetch request & return the result

  • Body class needs function (handleUpdate) to update state of fruit avoiding an extra rendering

  • Body class needs to bind that function handleUpdate to the AllItems in Body class's render function's return function

  • AllFruits class needs to have function handleUpdate bound

  • Fruit needs to have the constructor bind handleEdit to the class and component it's interacting

  • Fruit needs to define the function handleEdit to do let styles of variables

@Mirv
Copy link
Owner Author

Mirv commented Nov 21, 2018

  • make a constructor in fruit to add state editable

  • make a button in fruit that checks state of editable & outputs edit if able

  • in fruit's render function, write let function to setup the values of the state for the edit button

  • add name & description fields to the fruit render function's return function

  • fruit constructor needs a function bound to itself to bind to object

  • the function above needs a function definition (handleEdit) made in fruit but outside the constructor

  • the handleEdit needs to be bound in the render's return method for onClick

  • Body class needs to have a method (handleUpdate) to form fetch request & return the result

  • Body class needs function (handleUpdate) to update state of fruit avoiding an extra rendering

  • Body class needs to bind that function handleUpdate to the AllItems in Body class's render function's return function

  • AllFruits class needs to have function handleUpdate bound

  • Fruit needs to have the constructor bind handleEdit to the class and component it's interacting

  • Fruit needs to define the function handleEdit to do let styles of variables

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

No branches or pull requests

1 participant