Content

uk.gov.hmrc.govukfrontend.views.viewmodels.content.Content
See theContent companion trait
object Content

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Content.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def readsHtmlContent(jsPath: JsPath): Reads[HtmlContent]
def readsHtmlOrText(htmlJsPath: JsPath, textJsPath: JsPath, defaultContent: Content): Reads[Content]
def readsText(jsPath: JsPath): Reads[Text]
def readsWithDefault(defaultContent: Content): Reads[Content]
def writesContent(htmlField: String, textField: String): OWrites[Content]

Implicits

Implicits

implicit val reads: Reads[Content]
implicit val writes: OWrites[Content]