FileUpload

uk.gov.hmrc.govukfrontend.views.viewmodels.fileupload.FileUpload
See theFileUpload companion object
case class FileUpload(name: String, id: String, describedBy: Option[String], label: Label, hint: Option[Hint], errorMessage: Option[ErrorMessage], formGroup: FormGroup, classes: String, attributes: Map[String, String], disabled: Option[Boolean], multiple: Option[Boolean], javascript: Option[Boolean], chooseFilesButtonText: Option[String], dropInstructionText: Option[String], multipleFilesChosenText: Option[FileUploadMultipleFilesMessages], noFileChosenText: Option[String], enteredDropZoneText: Option[String], leftDropZoneText: Option[String])

Parameters to GovukFileUpload Twirl template

Value parameters

attributes

optional additional HTML attributes to apply to the input

classes

optional additional CSS classes to apply to the input

describedBy

optional aria-describedby attribute for the input

disabled

optional disabled attribute for the input

errorMessage

optional ErrorMessage to display

formGroup

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

hint

optional Hint for the control

id

id attribute for the input

label

optional Label for the control

name

name attribute for the input

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