Page class can be used to combine multiple widgets into a single page. A dictionary is returned with entries containing values from input widgets. These entries are labelled with the widget message if no key is provided.
Basic use of Page class. You can customize the submit button text passing a string to the run method. The default value is 'Next'.
Using the key param to label the returning dict
Using the actions param to show multiple buttons at the end of the page
You can create pages with dinamic content using the reactive widget. You simply create a function that receives a partial result from the page and returns a new Page, with the widgets you wish to be rendered, which can be both inputs and outputs.
You can pass a validate function to the run method in your page in order to validate it. This function receives a partial result and can return either a boolean (True for valid and False for invalid) or a string with an error message to show the user.