Global

Methods

checkScrollAtBottom(node) → {boolean}

Parameters:
Name Type Description
node Node DOM node of the scrollable element
Source:
Returns:
- true if the node is at the bottom
Type
boolean

copyToClipboard(text)

Copies a text to clipboard
Parameters:
Name Type Description
text string text to be copied to clipboard
Source:

generateSlug(input) → {string}

Creates/Updates a slug
Parameters:
Name Type Description
input Object title, seperator & previous slug
Source:
Returns:
- generated slug
Type
string

getServerURL(ServerConfiguration) → {string|ServerConfiguration}

Gets the Server URL for Bubblegum server
Parameters:
Name Type Description
ServerConfiguration ServerConfiguration custom configuration object
Source:
Returns:
serverURL or URL object depending on 'shouldReturnUrlObj'
Type
string | ServerConfiguration

Type Definitions

ServerConfiguration

Type:
  • Object
Properties:
Name Type Description
isProd boolean connects to prod instance
isStage boolean connects to stage instance
serverType 'lambda' | 'render' server source
shouldReturnUrlObj boolean returns url object if true. default is false
port number port for local server. default is 7000
Source: