Page is the top most container for all other controls. It is is automatically added when a new page is created or app session started.
Page control has a reserved
page control ID. You cannot add Page control, however you can change its properties. Technically, the Page is a vertical Stack control, so it has similar behavior and shares some properties.
|string||A title of browser window.|
|bool||Defines whether page contents takes 100% of the height of browser window.|
|string||Defines how to align page children horizontally: |
|string||Defines how to align page children vertically: |
|string||The width of a page container.|
|string||The padding of a page container.|
|string||A gap between page child controls.|
Creating a new page with a random name and connecting to it:
Create a new app with name
app1 and wait for connections.
web=True makes app UI displaying at Pglet service.
main function is an entry point for a new user session. When a new user connects we just greem them with
Hello, world! message:
To update page title: