whiteSpace

scalatags.generic.Styles.whiteSpace
object whiteSpace extends Style

The white-space CSS property is used to to describe how whitespace inside the element is handled.

MDN

Attributes

Graph
Supertypes
class Style
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
whiteSpace.type

Members list

Value members

Inherited methods

def :=[Builder, T](v: T)(implicit ev: StyleValue[Builder, T]): StylePair[Builder, T]

Creates an StylePair from an Style and a value of type T, if there is an StyleValue of the correct type.

Creates an StylePair from an Style and a value of type T, if there is an StyleValue of the correct type.

Attributes

Inherited from:
Style
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val normal: StylePair[Builder, String]

Sequences of whitespace are collapsed. Newline characters in the source are handled as other whitespace. Breaks lines as necessary to fill line boxes.

Sequences of whitespace are collapsed. Newline characters in the source are handled as other whitespace. Breaks lines as necessary to fill line boxes.

MDN

Attributes

lazy val nowrap: StylePair[Builder, String]

Collapses whitespace as for normal, but suppresses line breaks (text wrapping) within text.

Collapses whitespace as for normal, but suppresses line breaks (text wrapping) within text.

MDN

Attributes

lazy val pre: StylePair[Builder, String]

Sequences of whitespace are preserved, lines are only broken at newline characters in the source and at br elements.

Sequences of whitespace are preserved, lines are only broken at newline characters in the source and at br elements.

MDN

Attributes

lazy val pre-line: StylePair[Builder, String]

Sequences of whitespace are collapsed. Lines are broken at newline characters, at br, and as necessary to fill line boxes.

Sequences of whitespace are collapsed. Lines are broken at newline characters, at br, and as necessary to fill line boxes.

MDN

Attributes

lazy val pre-wrap: StylePair[Builder, String]

Sequences of whitespace are preserved. Lines are broken at newline characters, at br, and as necessary to fill line boxes.

Sequences of whitespace are preserved. Lines are broken at newline characters, at br, and as necessary to fill line boxes.

MDN

Attributes