Back to Top

Hype Action Events master

Extension that offers code execution based on events and can be declared by data attributes. Furthermore, it offers code execution through the Custom Behavior interface

isHypePreview()

This function is determins if we in a Hype Preview.

Returns

Bolean

Return true if not on device

setDefault(key, value)

This function allows to override a global default by key or if a object is given as key to override all default at once

Parameters

Name Type Description
key String

This is the key to override

value String Function Object

This is the value to set for the key

Returns

Void

getDefault(key)

This function returns the value of a default by key or all default if no key is given

Parameters

Name Type Description
key String

This the key of the default.

Returns

Returns the current value for a default with a certain key.

hypeDocument.getSymbolInstance(element)

hypeDocument.getSymbolInstance 1.1 (by Stephen, modified by Max Ziebell)

Parameters

Name Type Description
element HTMLDivElement

The starting point for the search

Returns

symbolInstance

Is either the symbolInstance or null

hypeDocument.triggerAction(code, options)

hypeDocument.triggerAction

Parameters

Name Type Description
code String

The code to be executed

options Object

The options for context

Returns

whatever the code returns

HypeActionEvents()

Properties

Name Type Description
version String

Version of the extension

getDefault Function

Get a default value used in this extension

setDefault Function

Set a default value used in this extension

Returns

Void