Webanizr Logo
Open / sluit menu
Module duplicateToAbs

The duplicateToAbs creates a duplicate of a node and sets it on a fixed position exactly op the place the original node is visible on the screen.

syntax

webanizr.send('duplicateToAbs', data, parameters, callback);

data

The data is send unaltered to the callback function. It is not used in this module.

parameters

The duplicateToAbs module accepts the following parameters:

node__target (required)

The node of which the copy should be made.

type__action (optional)

The action that should be performed:

  • copy: make the copy of the node
  • revert: undo the copy

if the parameter is not set the copy action is performed.

callback

The callback is called directly after the copy has been made and receives the data unaltered.

demo

https://cdn.cpmodules.webanizr.com/demo/item-to-screen/index.html