Utils

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

Attributes

Companion
trait
Graph
Supertypes
trait Utils
trait UtilsSupport
class Object
trait Matchable
class Any
Self type
Utils.type

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