Some components serve as a foundation of entire set of other components. A lot of qualities implemented by a core component is inherited by its descendants.
Simple components exist for the purpose of abstraction and creating a decent interface which you can rely on when programming your PHP application with Agile UI. In some cases it may make sense to rely on HTML templates for the simple elements such as Icons, but when you are working with dynamic and generic components quite often you need to abstract HTML yet let the user have decent control over even the small elements.
Interactive components rely on Callbacks, VirtualPage or Server Sent Event (JsSse) to communicate with themselves in the PHP realm. You add them just as you would add any other component, yet they will send additional requests, like loading additional data or executing other code. Here is how interactive components will typically communicate:
- request by browser is made.
- Callback invokes user-defined PHP code, which will generate some
- Response is encoded and
- sent back to the browser either as JSON or Server Sent Event (JsSse).
Composite elements such as Grid are the bread-and-butter of Agile UI. They will pass on rendering and
intractivity to several sub-components. Illustration shows how
Grid relies on
rendering the data table, but Grid will also rely on
Paginator when necessary.
Any component automatically becomes composite if, you use