disabled

slinky.web.html.disabled$
object disabled extends Attr

option - If this Boolean attribute is set, this option is not checkable. Often browsers grey out such control and it won't receive any browsing event, like mouse clicks or focus-related ones. If this attribute is not set, the element can still be disabled if one of its ancestors is a disabled <optgroup> element. textarea - This Boolean attribute indicates that the user cannot interact with the control. (If this attribute is not specified, the control inherits its setting from the containing element, for example <fieldset>; if there is no containing element with the disabled attribute set, then the control is enabled.) menuitem - Boolean attribute which indicates that the command is not available in the current state. Note that disabled is distinct from hidden; the disabled attribute is appropriate in any context where a change in circumstances might render the command relevant. link - This attribute is used to disable a link relationship. In conjunction with scripting, this attribute could be used to turn on and off various style sheet relationships.

Note: While there is no disabled attribute in the HTML standard, there is a disabled attribute on the HTMLLinkElement DOM object.

The use of disabled as an HTML attribute is non-standard and only used by some browsers (W3 #27677). Do not use it. To achieve a similar effect, use one of the following techniques:

  • If the disabled attribute has been added directly to the element on the page, do not include the <link> element instead;
  • Set the disabled property of the StyleSheet DOM object via scripting. keygen - This Boolean attribute indicates that the form control is not available for interaction. fieldset - If this Boolean attribute is set, the form controls that are its descendants, except descendants of its first optional <legend> element, are disabled, i.e., not editable. They won't receive any browsing events, like mouse clicks or focus-related ones. Often browsers display such controls as gray. optgroup - If this Boolean attribute is set, none of the items in this option group is selectable. Often browsers grey out such control and it won't receive any browsing events, like mouse clicks or focus-related ones. select - This Boolean attribute indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example fieldset; if there is no containing element with the disabled attribute set, then the control is enabled. input -

This Boolean attribute indicates that the form control is not available for interaction. In particular, the click event will not be dispatched on disabled controls. Also, a disabled control's value isn't submitted with the form.

Unlike other browsers, Firefox will by default persist the dynamic disabled state of an <input> across page loads. Use the autocomplete attribute to control this feature. button -

This Boolean attribute indicates that the user cannot interact with the button. If this attribute is not specified, the button inherits its setting from the containing element, for example <fieldset>; if there is no containing element with the disabled attribute set, then the button is enabled.

Firefox will, unlike other browsers, by default, persist the dynamic disabled state of a <button> across page loads. Use the autocomplete attribute to control this feature.

Attributes

Graph
Supertypes
trait Attr
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

object tag extends TagElement

Attributes

Graph
Supertypes
class TagElement
class Object
trait Matchable
class Any
Self type
tag.type

Types

Inherited types

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

Attributes

Inherited from:
Attr

Value members

Concrete methods

def :=(v: Boolean): AttrPair[_disabled_attr.type]
def :=(v: Option[Boolean]): OptionalAttrPair[_disabled_attr.type]

Implicits

Implicits

implicit def boolToPairbuttonApplied(attrObj: disabled.type.this.type): AttrPair[tag.type]
implicit def boolToPairfieldsetApplied(attrObj: disabled.type.this.type): AttrPair[tag.type]
implicit def boolToPairinputApplied(attrObj: disabled.type.this.type): AttrPair[tag.type]
implicit def boolToPairkeygenApplied(attrObj: disabled.type.this.type): AttrPair[tag.type]
implicit def boolToPairlinkApplied(attrObj: disabled.type.this.type): AttrPair[tag.type]
implicit def boolToPairmenuitemApplied(attrObj: disabled.type.this.type): AttrPair[tag.type]
implicit def boolToPairoptgroupApplied(attrObj: disabled.type.this.type): AttrPair[tag.type]
implicit def boolToPairoptionApplied(attrObj: disabled.type.this.type): AttrPair[tag.type]
implicit def boolToPairselectApplied(attrObj: disabled.type.this.type): AttrPair[tag.type]
implicit def boolToPairstarApplied(attrObj: disabled.type.this.type): AttrPair[tag.type]
implicit def boolToPairtextareaApplied(attrObj: disabled.type.this.type): AttrPair[tag.type]