Enumeration

Cursor

static

string

List of cursors.

Value

OPEN

CLOSED

DELETE

Properties

CONTENT

static

Array making up the CSS content for Blockly.

Cursor

static

string

List of cursors.

Value

OPEN

CLOSED

DELETE

Methods

inject

static

inject(hasCss, pathToMedia)

Inject the CSS into the DOM. This is preferable over using a regular CSS file since: a) It loads synchronously and doesn't force a redraw later. b) It speeds up loading by not blocking on a separate HTTP transfer. c) The CSS content may be made dynamic depending on init options.

Parameter

hasCss

boolean

If false, don't inject CSS (providing CSS becomes the document's responsibility).

pathToMedia

string

Path from page to the Blockly media directory.

setCursor

static

setCursor(cursor)

Set the cursor to be displayed when over something draggable. See See https://github.com/google/blockly/issues/981 for context.

Parameter

cursor

Blockly.Css.Cursor

Enum.

Deprecated
April 2017.