UtilsSupport

uk.gov.hmrc.supportfrontend.views.UtilsSupport
trait UtilsSupport

Attributes

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

Members list

Type members

Classlikes

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def nonEmptyStringOrDefault(optValue: Option[String], default: String): String
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

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

def urlEncode(s: String): String