wrap

object wrap extends Attr

textarea - Indicates how the control wraps text. Possible values are:

  • <code>hard</code>: The browser automatically inserts line breaks (CR+LF) so that each line has no more than the width of the control; the <code>cols</code> attribute must be specified.
  • <code>soft</code>: The browser ensures that all line breaks in the value consist of a CR+LF pair, but does not insert any additional line breaks.
  • <code>off</code>: <span title="This API has not been standardized."><i class="icon-warning-sign"> </i></span> Like <code>soft</code> but changes appearance to <code>white-space: pre</code> so line segments exceeding <code>cols</code> are not wrapped and area becomes horizontally scrollable.

If this attribute is not specified, <code>soft</code> is its default value. pre - Is a <em>hint</em> indicating how the overflow must happen. In modern browser this hint is ignored and no visual effect results in its present; to achieve such an effect, use CSS <a title="The white-space CSS property determines how whitespace inside an element is handled. To make words break within themselves, use overflow-wrap, word-break, or hyphens instead." href="/en-US/docs/Web/CSS/white-space"><code>white-space</code></a> instead.

trait Attr
class Object
trait Matchable
class Any

Type members

Classlikes

object tag extends TagElement

Types

Inherited types

type supports[T <: Tag] = AttrPair[attrType] => AttrPair[tagType]
Inherited from
Attr

Value members

Concrete methods

@inline
def :=(v: String): AttrPair[_wrap_attr]
@inline
def :=(v: Option[String]): OptionalAttrPair[_wrap_attr]