JSDoc: Module: noop.bind

noop.bind

NOOP Bind module.
Version:
  • 0.100
Author:
  • cisco211
Source:

Methods

(static) defaults() → {noop.bind.Defaults}

Return default CSS selectors.

Source:
Returns:
- An object containing the default CSS selectors.
Type
noop.bind.Defaults
Example
var defaults = noop.bind.defaults();

(static) linkable(e)

Make given element linkable.

A linkable will allow you to make hyperlinks working on any element. The attribute "data-linkable-href" will allow you to specify the address. The attribute "data-linkable-target" will allow you to control the window target.
Parameters:
Name Type Description
e Element A valid DOM element.
Source:

(private, static) linkableRegister_(q)

Register linkable for given CSS selector.

Parameters:
Name Type Description
q string | null A value CSS selector.
Source:

(static) register(o)

Register bindings.

Parameters:
Name Type Description
o object.<string, (string|null)> An object with CSS selectors.
Source:

(static) restrictable(e)

Make given element restrictable.

Parameters:
Name Type Description
e Element A valid DOM element.
Source:

(private, static) restrictableRegister_(q)

Register restrictable for given CSS selector.

Parameters:
Name Type Description
q string | null A value CSS selector.
Source:

(static) selectable(e)

Make given element selectable.

A selectable will mark the innerHTML on click, to have it easier copying the contents into clipboard.
Parameters:
Name Type Description
e Element A valid DOM element.
Source:

(private, static) selectableRegister_(q)

Register selectable for given CSS selector.

Parameters:
Name Type Description
q string | null A value CSS selector.
Source:

Type Definitions

Defaults

Default CSS selectors.

Type:
  • object.<string, string>
Properties:
Name Type Attributes Default Description
linkable string <optional>
'.linkable' Default CSS selector for linkable.
restrictable string <optional>
'.restrictable' Default CSS selector for restrictable.
selectable string <optional>
'.selectable' Default CSS selector for selectable.
Source: