GovukErrorMessage

uk.gov.hmrc.govukfrontend.views.html.components.GovukErrorMessage
class GovukErrorMessage() extends BaseScalaTemplate[Appendable, Format[Appendable]], Template1[ErrorMessage, Appendable]

Attributes

Graph
Supertypes
trait Template1[ErrorMessage, Appendable]
class BaseScalaTemplate[Appendable, Format[Appendable]]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def apply(params: ErrorMessage): Appendable

Implements https://design-system.service.gov.uk/components/error-message/

Note: The tests in the govuk-frontend component imply visuallyHiddenText is sometimes used as a boolean. https://github.com/alphagov/govuk-frontend/blob/v2.11.0/src/components/error-message/template.test.js#L82 Here it uses the type VisuallyHiddenText to encode the text or intention to hide it. If no value is passed defaults to show "Error" as the visually hidden text.

Attributes

def f: ErrorMessage => Appendable
def ref: this.type
def render(params: ErrorMessage): Appendable

Inherited methods

def _display_(o: Any)(implicit m: ClassTag[Appendable]): Appendable

Attributes

Inherited from:
BaseScalaTemplate
def _display_(x: Appendable): Appendable

Attributes

Inherited from:
BaseScalaTemplate
def _display_(x: NodeSeq): Appendable

Attributes

Inherited from:
BaseScalaTemplate
def _display_(x: Unit): Appendable

Attributes

Inherited from:
BaseScalaTemplate
def _display_(x: String): Appendable

Attributes

Inherited from:
BaseScalaTemplate
def _display_(x: AnyVal): Appendable

Attributes

Inherited from:
BaseScalaTemplate
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product