Skip to main content

mo.ui.batch

Combine multiple UI elements into a single object.

Overview

Batch allows you to group UI elements created with markdown or HTML and access their values as a dictionary.

Usage

Or directly:

Examples

With Forms

Combine batch() with form() to create submittable forms:

Return Value

  • When created from markdown with .batch(): returns list of values
  • When created with mo.ui.batch(html, dict): returns dictionary of values
Use batch to create complex forms with multiple related inputs.

Form

Create submittable forms

Dictionary

Create dictionaries of UI elements