Textarea

uk.gov.hmrc.govukfrontend.views.viewmodels.textarea.Textarea
See theTextarea companion object
case class Textarea(id: String, name: String, rows: Int, value: Option[String], describedBy: Option[String], label: Label, hint: Option[Hint], errorMessage: Option[ErrorMessage], formGroup: FormGroup, classes: String, autocomplete: Option[String], attributes: Map[String, String], spellcheck: Option[Boolean], disabled: Option[Boolean])

Parameters to GovukTextarea Twirl template

Value parameters

attributes

optional additional HTML attributes to apply to the textarea

autocomplete

optional autocomplete attribute

classes

optional additional CSS classes to apply to the textarea

describedBy

optional aria-describedby attribute for the textarea element

disabled

optional disabled attribute

errorMessage

optional ErrorMessage to display

formGroup

additional CSS classes/attributes/etc. to apply to the form group

hint

optional Hint for the control

id

the id of the textarea element

label

optional Label for the control

name

the name of the textarea element

rows

height of the textarea in rows

spellcheck

optional spellcheck attribute

value

optional initial value of the textarea

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product