Skip to content

Commit

Permalink
refactor: add sample
Browse files Browse the repository at this point in the history
  • Loading branch information
ochairo committed Mar 30, 2024
1 parent d9a542c commit 3fb1b3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/features/showcase/presentation/showcase.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class ShowcaseComponent extends BaseComponent {
*/
private renderTable(): void {
const tbody = this._dom.querySelector("tbody");
const inputSample1 = '<input-component override-style="input {color: black;}"></input-component>'
const inputSample2 = '<input-component override-style="input {color: blue;}"></input-component>'
if (tbody) {
tbody.innerHTML = this._apiData
.map(
Expand All @@ -50,7 +52,7 @@ class ShowcaseComponent extends BaseComponent {
<td>${item.name}</td>
<td>${item.description}</td>
<td>${item.price}</td>
<td><input-component override-style="input {color: blue;}"></input-component></td>
<td>${item.id % 3 === 0 ? inputSample1 : inputSample2}</td>
</tr>
`
)
Expand Down

0 comments on commit 3fb1b3d

Please sign in to comment.