new plastic.Element($el)
Plastic Element Prototype
This creates a new plastic.js element and executes all processes needed to get the final result
Name | Type | Description |
---|---|---|
$el |
Object |
jQuery DOM Element |
Example
plastic.elements[i] = new plastic.Element(el);
Members
-
$elObject
-
This plastic elements jQuery DOM Element
-
plastic.js ElementAttibutes Object (Instance)
-
benchmarkCompletednumber
-
Benchmark Time Completed (ms timestamp)
-
benchmarkDataLoadednumber
-
Benchmark Time Data loaded (ms timestamp)
-
benchmarkModulesLoadedArray
-
Benchmark Time Modules loaded (Array of ms timestamp)
-
benchmarkStartnumber
-
Benchmark Time Start (ms timestamp)
-
dataModuleplastic.element.Element boolean
-
Element Data Module Instance
-
dependenciesArray
-
Module Dependencies Those are
-
displayModuleplastic.element.Element boolean
-
Element Display Module Instance
-
events
-
Element specific Event PubSub
-
eventsProgressnumber
-
Current Number of asynchronous Events that already happened
If this equals this.eventsTotal, the Element can be
-
eventsTotalnumber
-
Total Number of asynchronous Events to wait for
-
idString
-
HTML ID if available, otherwise auto generated ID
-
optionsObject
-
Inherited (and overwritten) general element options
-
queryModuleplastic.element.Element boolean
-
Element Query Module Instance
-
innerselfplastic.Element
-
Current plastic Element (pEl)
Methods
-
applySchema()
core/Element.js, line 447 -
Applies Data Description to generate "annotated / enriched" processed data
-
cancelProgress()
core/Element.js, line 331 -
Cancels the processing of the element and displays the info to the user
-
completeProgress()
core/Element.js, line 342 -
This executes all remaining actions after all events are completed
-
createDisplayContainer()
core/Element.js, line 285 -
Helper Functin which creates a HTML Element for use as a Display Container
- TODO
-
- $el.find unnecessary?
-
createInfoContainer()
core/Element.js, line 304 -
Helper Functin which creates a HTML Element for use as InfoBox
-
createMessageContainer()
core/Element.js, line 273 -
Helper Functin which creates a HTML Element for use as a Message Container
- TODO
-
- $el.find unnecessary?
-
displayBenchmark()
core/Element.js, line 413 -
Dumps benchmark data to the console
-
displayInfoBox()
core/Element.js, line 436 -
Fills the Infobox with informations about the current plastic element, for example loading time.
-
execute()
core/Element.js, line 180 -
Executes the processing of the plastic.element
-
mergeOptions()
core/Element.js, line 405 -
Merges the current plastic element options with the general options. Local settings overwrite global settings Makes a deep copy
-
registerDependencies()
core/Element.js, line 376 -
Looks for all external dependencies that are required by the currently used modules
Registers all Dependencys for Lazyloading
- TODO
-
- Use a Set Datastructure?
-
updateAttributes()
core/Element.js, line 264 -
Creates a new Attributes Object which parses and stores all Attributes of the plastic.js element
-
updateProgress()
core/Element.js, line 313 -
Updates the Progress of asynchronal events
-
innerdepLoaded()
core/Element.js, line 157 -
Helper Function: On dependency load