Code writing principles:
A component can be created with a constructor, without a constructor, and with an empty constructor.
A component can be created without adding the component to DOM, in this case the getWidth and getHeight methods may return 0 because the real value is returned. After the component is placed to DOM, it may require to set size and redraw using the updateSize or refresh methods.
If some properties are used, component redraw may be required. The methods updateSize, refresh, refreshAll, draw and rerender are used to redraw components.
It is recommended to use component events in the component's DomNode instead of using custom events.
The hide() and setIsVisible(false) methods are used to hide a component. The hide() method removes the component from DOM; to return the component, use the show method.
The Content property may take string value, DomNode or platform component.
The ParendNode property may be the DomNode identifier or Node itself.
Next article: Requirements to CSS Code