{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# `ui.row`\n", "\n", "## 行元素\n", "\n", "提供一个容器,其子元素按行排列。\n", "\n", "`wrap`:是否换行内容(默认:`True`)" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from nicegui import ui\n", "\n", "with ui.row():\n", " ui.label('label 1')\n", " ui.label('label 2')\n", " ui.label('label 3')\n", "\n", "# ui.run()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "py311", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.7" } }, "nbformat": 4, "nbformat_minor": 2 }