Skip to content

Extend the library functions

Arturo Vasquez edited this page Apr 18, 2021 · 1 revision

To extend the library functions, make a plugin or something like this you should do the following:

How to extend the library 1

Creates a new function

	genrl.extend({
		myfunction:function(options){
			//write code below
		});
	});

Use new function

	genrl.myfunction(options);

How to extend the library (private functions) 2

Creates a new function

	genrl.fn.extend({
		myfunction:function(options){
			//write code below
		});
	});

Use new function

	genrl.fn.myfunction(options);

Search into the pages for more info

Clone this wiki locally