{
  "id": "gradio-blocks-table",
  "kind": "table",
  "slug": "gradio-blocks",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/gradio-blocks/",
  "title": "Gradio Blocks builds custom apps from components wired together by event listeners",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "click()",
      "source": "Gradio guides",
      "detail": "is triggered when a Button is clicked; change() is triggered by typing in a Textbox. Different Components support different event listeners, like play() on Video."
    },
    {
      "name": ".then()",
      "source": "Gradio guides",
      "detail": "runs the next event after the previous one finishes, regardless of errors. .success() runs it only if the previous event succeeded, and .failure() only if it raised an error."
    },
    {
      "name": "gr.on(triggers=[...], fn=...)",
      "source": "Gradio guides",
      "detail": "binds multiple triggers to the same function, such as a submit button and pressing enter. With no triggers, it binds to the change events of the input components."
    }
  ],
  "related_slugs": [
    "hf-transformers-pipeline",
    "python-asyncio-basics"
  ],
  "license": "CC-BY-4.0",
  "source_license": "Apache-2.0 (Gradio guides); Apache-2.0 (gradio-app/gradio (GitHub)); prose restates cited source lines in own words",
  "as_of": "2026-11-18",
  "status": "fill-draft-20261118",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}