Home Manual Reference Source

References

Class Summary

Static Public Class Summary
public
public

Base class for widgets for WidgetRegistrySingleton.

public

HTML cleaner with extra post cleaning that makes it suitable for cleaning input typed and pasted into contenteditable editors.

public
public
public
public

DOM replacer that is mainly intended for DOM replace where some other components may need to know about the change to the DOM.

public

Extends DOMReplace adn change the methods to replace by making a request to the server.

public

Extends DOMReplaceFromUrl to replace the element with the same element from the server response.

public
public

HTML parser.

public

Makes working with document.cookie easy.

public

Extends HttpFileRequest with automatic handling of the Django csrftoken.

public

Extends HttpJsonRequest with automatic handling of the Django csrftoken.

public

Extends HttpRequest with file request/response handling.

public

Extends HttpResponse with extra functionality for working with JSON response data.

public

Extends HttpResponse with extra functionality for working with JSON response data.

public

API for performing HTTP requests.

public

HTTP response.

public

Extends HttpRequest with transparent JSON request/response handling.

public

Defines valid log levels.

public
public

A logging system.

public
public

Utility-class with several static functions to simplify validation, merging and other standard operations on javascript-Objects.

public

Pretty format any javascript object.

public

Query-string creator and parser.

public

Represents information about the received signal.

public

A script that is loaded or being loaded by ScriptLoaderSingleton.

public

Asyncronous script loader.

public

Object containing debugging information about a sent signal.

public

Signal handler singleton for global communication.

public
public

URL parser.

public

A very lightweight widget system.

public

Function Summary

Static Public Function Summary
public

attributeObjectToHtml(attributes: {}): string

Takes an object that maps attribute names to values, and returns it as html formatted attributes.

public

Element.remove() polyfill for IE11 compatibility

public

ensureMapHasDataInReduxStore(typeMap: *, dispatchAction: *, dispatch: *): boolean

Used to ensure that a map built by makeTypeMappedReduxMapFromApiData or makeImmutableOrderedMapFromValueArray is loaded in redux-store

public

Escape HTML attribute value.

public

getFileExtension(filename: *): string

Get file extension.

public

getObjectFromReduxMapOrNullIfLoading(map: *, id: *, dispatchAction: *, dispatch: *): null | Immutable.Map

Simple util to fetch data from a redux-api-map (which should always be built by makeApiDataMapIsLoading, makeApiDataMapNewData or makeApiDataMapError).

public

getValuesFromTypeMappedReduxMap(typeMappedReduxMap: *, typeKey: *, fallbackToDefault: *): Immutable.OrderedMap<string, Immutable.Map<string, string>>

Used to fetch the ImmutableOrderedMap of values for a <typeKey> in a structure built by makeTypeMappedReduxMapFromApiData.

public

isInlineTag(tagName: string): *

Returns True if the provided tagName is an inline tag.

public

isSelfClosingTag(tagName: string): *

Returns True if the provided tagName is a self closing tag.

public

makeApiDataMapDeleted(oldData: *): Immutable.Map

Used to mark an object in redux-state as deleted.

public

makeApiDataMapError(error: *): Immutable.Map

Util used by all action.js-files in redux/api/*.

public

makeApiDataMapIsLoading(oldApiDataMap: *): Immutable.Map<string, any>

Util used by all action.js-files in redux/api/*.

public

makeApiDataMapNewData(newData: *, fromList: *, noWrap: *): Immutable.Map

Util used by all action.js-files in redux/api/*.

public

makeCustomError(name: string, extendsError: Error): Error

Make a custom error "class".

public

Make a HTML end tag.

public

makeHtmlStartTag(tagName: string, attributes: {}): string

Make a HTML start tag.

public

makeImmutableOrderedMapFromValueArray(valueArray: *, valueKey: *): Immutable.OrderedMap<string, Immutable.Map<string, string>>

Used for the internal OrderedMap from makeTypeMappedReduxMapFromApiData, and should be used for other type-lists from api.

public

makeTypeMappedReduxMapFromApiData(apiResponseBodydata: *): Immutable.Map<string, Immutable.OrderedMap<string, Immutable.Map<string, string>>>

Used for apis like nodePaymentSubscriptionTypes and nodeMembershipTypes.

public

onDocumentReady(callback: *)

Wrap a callback that is called when the document is done loading.

public

typeDetect(obj: *): string

Detect the type of an object and return the result as a string.

Variable Summary

Static Public Variable Summary
public

Exception raised by HttpCookies#getStrict when the cookie is not found.

public

Exception thrown when an element where we expect the data-ievv-jsbase-widget-instanceid attribute does not have this attribute.

public

Exception thrown when an element with the data-ievv-jsbase-widget-instanceid=<widgetInstanceId> attribute is not in the WidgetRegistrySingleton with <widgetInstanceId>.

public

Exception thrown when an element that we expect to have the data-ievv-jsbase-widget attribute does not have this attribute.

public

Exception raised by HttpCookies#getStrict when the cookie is not found.

public

Error class created by HttpResponse#toError.

public

Exception thrown when an element has a data-ievv-jsbase-widget with a value that is not an alias registered in the WidgetRegistrySingleton.

public
public

The default key for maps built by makeTypeMappedReduxMapFromApiData.