A first component
This section describes a minimal ‘Hello World’ component. It:
- Calls the constructor of Component, passing an ID to it.
- Creates a new button widget with a ‘Hello World’ Label appended to it
- Before it is rendered, adds this label to itself (and hence the application)
- Fires the ready() method of the application module created in the previous section the first time it is shown
Next page Example layout and basic style
Previous page Launching the application