cursor

object cursor extends Style

The cursor CSS property specifies the mouse cursor displayed when the mouse pointer is over an element.

MDN

class Style
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
cursor.type

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.

Inherited from:
Style
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product

Concrete fields

lazy val alias: StylePair[Builder, String]

Indicating an alias or shortcut is to be created.

Indicating an alias or shortcut is to be created.

MDN

lazy val all-scroll: StylePair[Builder, String]

Cursor showing that something can be scrolled in any direction (panned).

Cursor showing that something can be scrolled in any direction (panned).

MDN

lazy val auto: StylePair[Builder, String]

The browser determines the cursor to display based on the current context. E.g. equivalent to text when hovering text.

The browser determines the cursor to display based on the current context. E.g. equivalent to text when hovering text.

MDN

lazy val cell: StylePair[Builder, String]

Indicating that cells can be selected.

Indicating that cells can be selected.

MDN

lazy val col-resize: StylePair[Builder, String]

The item/column can be resized horizontally. Often rendered as arrows pointing left and right with a vertical separating.

The item/column can be resized horizontally. Often rendered as arrows pointing left and right with a vertical separating.

MDN

lazy val context-menu: StylePair[Builder, String]

A context menu is available under the cursor.

A context menu is available under the cursor.

MDN

lazy val copy: StylePair[Builder, String]

Indicating that something can be copied

Indicating that something can be copied

MDN

lazy val crosshair: StylePair[Builder, String]

Cross cursor, often used to indicate selection in a bitmap.

Cross cursor, often used to indicate selection in a bitmap.

MDN

lazy val cssWait: StylePair[Builder, String]

The program is busy (sometimes an hourglass or a watch).

The program is busy (sometimes an hourglass or a watch).

MDN

lazy val default: StylePair[Builder, String]

Default cursor, typically an arrow.

Default cursor, typically an arrow.

MDN

lazy val e-resize: StylePair[Builder, String]

The right edge is to be moved.

The right edge is to be moved.

MDN

lazy val ew-resize: StylePair[Builder, String]
lazy val grab: StylePair[Builder, String]

Indicates that something can be grabbed (dragged to be moved).

Indicates that something can be grabbed (dragged to be moved).

MDN

lazy val grabbing: StylePair[Builder, String]

Indicates that something can be grabbed (dragged to be moved).

Indicates that something can be grabbed (dragged to be moved).

MDN

lazy val help: StylePair[Builder, String]

Indicating help is available.

Indicating help is available.

MDN

lazy val move: StylePair[Builder, String]

The hoevered object may be moved.

The hoevered object may be moved.

MDN

lazy val n-resize: StylePair[Builder, String]

The top edge is to be moved.

The top edge is to be moved.

MDN

lazy val ne-resize: StylePair[Builder, String]

The top-right corner is to be moved.

The top-right corner is to be moved.

MDN

lazy val nesw-resize: StylePair[Builder, String]
lazy val no-drop: StylePair[Builder, String]

Cursor showing that a drop is not allowed at the current location.

Cursor showing that a drop is not allowed at the current location.

MDN

lazy val none: StylePair[Builder, String]

No cursor is rendered.

No cursor is rendered.

MDN

lazy val not-allowed: StylePair[Builder, String]

Cursor showing that something cannot be done.

Cursor showing that something cannot be done.

MDN

lazy val ns-resize: StylePair[Builder, String]
lazy val nw-resize: StylePair[Builder, String]

The top-left corner is to be moved.

The top-left corner is to be moved.

MDN

lazy val nwse-resize: StylePair[Builder, String]
lazy val pointer: StylePair[Builder, String]

E.g. used when hovering over links, typically a hand.

E.g. used when hovering over links, typically a hand.

MDN

lazy val progress: StylePair[Builder, String]

The program is busy in the background but the user can still interact with the interface (unlike for wait).

The program is busy in the background but the user can still interact with the interface (unlike for wait).

MDN

lazy val row-resize: StylePair[Builder, String]

The item/row can be resized vertically. Often rendered as arrows pointing up and down with a horizontal bar separating them.

The item/row can be resized vertically. Often rendered as arrows pointing up and down with a horizontal bar separating them.

MDN

lazy val s-resize: StylePair[Builder, String]

The bottom edge is to be moved.

The bottom edge is to be moved.

MDN

lazy val se-resize: StylePair[Builder, String]

The bottom-right corner is to be moved.

The bottom-right corner is to be moved.

MDN

lazy val sw-resize: StylePair[Builder, String]

The bottom-left corner is to be moved.

The bottom-left corner is to be moved.

MDN

lazy val text: StylePair[Builder, String]

Indicating text can be selected, typically an I-beam.

Indicating text can be selected, typically an I-beam.

MDN

lazy val vertical-text: StylePair[Builder, String]

Indicating that vertical text can be selected, typically a sideways I-beam

Indicating that vertical text can be selected, typically a sideways I-beam

MDN

lazy val w-resize: StylePair[Builder, String]

The left edge is to be moved.

The left edge is to be moved.

MDN

lazy val zoom-in: StylePair[Builder, String]

Indicates that something can be zoomed (magnified) in.

Indicates that something can be zoomed (magnified) in.

MDN

lazy val zoom-out: StylePair[Builder, String]

Indicates that something can be zoomed (magnified) out.

Indicates that something can be zoomed (magnified) out.

MDN