style

views.html.helper.style
object style extends BaseScalaTemplate[Appendable, Format[Appendable]]

Attributes

Graph
Supertypes
class BaseScalaTemplate[Appendable, Format[Appendable]]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
style.type

Members list

Value members

Concrete methods

def apply(args: (Symbol, String)*)(body: => Html)(implicit request: RequestHeader): Appendable

Generate an inline style with CSP nonce.

Generate an inline style with CSP nonce.

Example:

@style(args = Symbol("type") -> "text/css") {
 ...
}

See style element for more details.

Value parameters

args

Set of extra HTML attributes.

body

The style body.

Attributes

def f: (Array[(Symbol, String)]) => (=> Html) => RequestHeader => Appendable
def ref: this.type
def render(args: Array[(Symbol, String)], body: Html, request: RequestHeader): 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

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product