roulette-wheel/src/components/item-removal.ts

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);
}
}