diff --git a/demo/lib/demo_web/live/post_live.ex b/demo/lib/demo_web/live/post_live.ex index 5aa84ecf..4662935e 100644 --- a/demo/lib/demo_web/live/post_live.ex +++ b/demo/lib/demo_web/live/post_live.ex @@ -111,6 +111,7 @@ defmodule DemoWeb.PostLive do body: %{ module: Backpex.Fields.Textarea, label: "Body", + rows: 10, except: [:index] }, published: %{ diff --git a/lib/backpex/fields/textarea.ex b/lib/backpex/fields/textarea.ex index a0c8cebf..0f9fa077 100644 --- a/lib/backpex/fields/textarea.ex +++ b/lib/backpex/fields/textarea.ex @@ -4,6 +4,7 @@ defmodule Backpex.Fields.Textarea do ## Options + * `:rows` - Optional integer number of visible text lines for the control. If it is not specified, the default value is 2. * `:placeholder` - Optional placeholder value or function that receives the assigns. * `:debounce` - Optional integer timeout value (in milliseconds), "blur" or function that receives the assigns. * `:throttle` - Optional integer timeout value (in milliseconds) or function that receives the assigns. @@ -34,6 +35,7 @@ defmodule Backpex.Fields.Textarea do