Utils

uk.gov.hmrc.govukfrontend.views.Utils
See theUtils companion object
trait Utils extends UtilsSupport

Attributes

Companion
object
Graph
Supertypes
trait UtilsSupport
class Object
trait Matchable
class Any
Known subtypes
object Utils

Members list

Type members

Inherited classlikes

Attributes

Inherited from:
UtilsSupport
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

def nonEmptyStringOrDefault(optValue: Option[String], default: String): String

Attributes

Inherited from:
UtilsSupport
def toAttributes(attributes: Map[String, String], padCount: Int): Html

Creates an HTML fragment with pairs of attribute=value. The attributes HTML fragment is padded on the left with 1 space by default so when it is used in a template it is nicely separated from the previous element.

Creates an HTML fragment with pairs of attribute=value. The attributes HTML fragment is padded on the left with 1 space by default so when it is used in a template it is nicely separated from the previous element.

Attributes

Returns

Html

Inherited from:
UtilsSupport
def toClasses(firstClass: String, rest: String*): String

Creates a space-separated list of CSS classes to be included in a template.

Creates a space-separated list of CSS classes to be included in a template.

Attributes

Inherited from:
UtilsSupport
def toGovukPluralisedI18nAttributes(translationKey: String, pluralForms: Option[Map[String, String]]): Map[String, String]

Attributes

Inherited from:
UtilsSupport
def urlEncode(s: String): String

Attributes

Inherited from:
UtilsSupport