| 1234567891011121314151617181920212223242526272829303132 |
- module INSPECTOR {
- /**
- * Represents a html div element.
- * The div is built when an instance of BasicElement is created.
- */
- export abstract class BasicElement {
-
- protected _div : HTMLElement;
-
- constructor() {
- this._div = Helpers.CreateDiv();
- }
-
- /**
- * Returns the div element
- */
- public toHtml() : HTMLElement {
- return this._div;
- }
-
- /**
- * Build the html element
- */
- protected _build(){};
-
- public abstract update(data?:any): void;
-
- /** Default dispose method if needed */
- public dispose() {};
-
- }
- }
|