✨ Implement the ContactTable
Summary
This is a table that displays a list of all available contacts.
How would you like the feature to work ?
The component to be implemented is the ContactTable
component that:
-
Renders an html table. -
Renders an ItemCollectionAdder
that allows to create a new contact (Static button for the MWE) -
For the v0, the table is populated by a JSON object -
Should have the properties: -
contacts={JSON}
that will populate the table -
onNew
function that is called when the adder button is clicked (if the function is undefined, theItemCollectionAdder
button is not displayed (This is a behaviour relative to the display of a list in the home page. Since contacts are not displayed in the home page, the adder should always appear below the table in theContactsPage
)
-
Useful resources
/cc @flecavalier
Edited by Pascale Stark