diff --git a/src/types.ts b/src/types.ts index 2901b97..3381801 100644 --- a/src/types.ts +++ b/src/types.ts @@ -46,6 +46,10 @@ export abstract class Component { this.wrapper.style.margin = size; return this; } + setId(id: string) { + this.wrapper.id = id; + return this; + } draw() { return this.wrapper; }