Skip to content
Aric edited this page Jun 23, 2019 · 6 revisions

New Element Object

Return: New Constructor Prototype Instance Reference of the created object stored under:

LCARS.active['idOfElement']
LCARS.active.idOfElement
log: {data: {…}, receiver: {…}, event: {…}, broadcast: {…}, delete: {…}, …}

//Basic Usage
var element = LCARS.create({type:'button', color:'bg-blue-1', label:'Button'});

//Append To Body
$('body').append( LCARS.create({type:'button', color:'bg-blue-1', label:'Button'}).dom );

//Create From Array - Returns Array of Active Prototype Instances
var aElements = LCARS.create([
    {type:'button', color:'bg-blue-1', label:'Button'}, 
    {type:'button', color:'bg-blue-1', label:'Button'}
]);
Clone this wiki locally