mirror of
https://github.com/kevinveenbirkenbach/roulette-wheel.git
synced 2025-04-03 22:34:16 +02:00
13 lines
323 B
TypeScript
13 lines
323 B
TypeScript
import { Component } from "./base-component";
|
|
|
|
export class ItemRemoval extends Component<HTMLImageElement> {
|
|
constructor(id: number) {
|
|
const el = document.createElement("img");
|
|
el.src = "static/close.png";
|
|
el.alt = "delete";
|
|
el.className = `item-delete`;
|
|
el.id = `${id}-delete`;
|
|
super(el);
|
|
}
|
|
}
|