diff --git a/examples/reference/widgets/TextAreaInput.ipynb b/examples/reference/widgets/TextAreaInput.ipynb index b9a990b568..7371245083 100644 --- a/examples/reference/widgets/TextAreaInput.ipynb +++ b/examples/reference/widgets/TextAreaInput.ipynb @@ -39,6 +39,7 @@ "* **`name`** (str): The title of the widget\n", "* **`placeholder`** (str): A placeholder string displayed when no value is entered\n", "* **`rows`** (int, default=2): The number of rows in the text input field. \n", + "* **`resizable`** (boolean | str): Whether the layout is interactively resizable, and if so in which dimensions: `width`, `height`, or `both`.\n", "\n", "___" ] diff --git a/panel/widgets/input.py b/panel/widgets/input.py index 26d811161a..17749338d9 100644 --- a/panel/widgets/input.py +++ b/panel/widgets/input.py @@ -141,6 +141,10 @@ class TextAreaInput(TextInput): rows = param.Integer(default=2, doc=""" Number of rows in the text input field.""") + resizable = param.ObjectSelector(objects=["both", "width", "height", False], doc=""" + Whether the layout is interactively resizable, + and if so in which dimensions: `width`, `height`, or `both`.""") + _widget_type: ClassVar[Type[Model]] = _bkTextAreaInput