A widget is a short for a graphical component.
The basic, worst way to create components is a plain code.
For example, let’s say we need a menu which opens on click:
The content of this site is available under the terms of CC BY-NC-SA.
© Ilya Kantor, 2011.