app.table.component.js
Functions
renderRecommendationLine(item)
Render recommendation line adding elements to the DOM
| Param | Type | Description |
|---|---|---|
| item | Recommendation | Recommendation retrieve by the back |
generateButtonRadio(line, id) ⇒ HTMLElement
Generate button radio and fill it from local storage
Returns: HTMLElement - th element containing a element with radio.
| Param | Type | Description |
|---|---|---|
| line | Recommendation | Recommendation line HTML |
| id | string | ID Item |
unSavedIdSelected(id)
Unsave id from the local storage
| Param | Type | Description |
|---|---|---|
| id | string | ID Item |
renderInventoryLine(host)
Render inventory line adding elements to the DOM
| Param | Type | Description |
|---|---|---|
| host | Inventory | Host from inventory |
renderCell(textDisplayed)
Render cell
| Param | Type | Description |
|---|---|---|
| textDisplayed | Recommendation | Text added in the celle |