.removeData - PeterNaydenov/code-assembly-line GitHub Wiki

Remove data record/records.

tplEngine.removeData ( dataRecord )

  • dataRecord: string | string[]. Data record names for remove;
  • Method return options:
    • tplEngine;
  • Method is chainable;

Example:

const data = {
                 'alt'  : 'This image has no alt text.'
               , 'user' : 'user unknown'
            };
 

 tplEngine.insertData ( data )
 // Now data is loaded



 tplEngine.removeData ( 'alt' )
 //  ->  Only available data-record is 'user'.