Custom Class - StudioDeTelevision/admiraljs GitHub Wiki

The Custom folder is the place to add your own extensions data structure should be custom -> myproject -> editors custom -> myproject -> sidebar etc... to keep a clean code

the myproject folder must contain a myproject.js file see custom/example/example.js

this file will trigger all hooks

will load custom editors definition in custom/myproject/editors/editors.js ex: define(["./import/import","./datetimearray/datetimearray","./pictosrestaurant/pictosrestaurant","./pictoszugast/pictoszugast",'./gifupload/gifupload','./arrowselect/arrowselect','./imagekino/imagekino','./imagetheater/imagetheater','./logos/logos','./textareacounter/textareacounter'],function(Import,Datetimearray,Pictorestaurant,Pictozugast,GifUpload,ArrowSelect,ImageK,ImageT,Logos,TextAC) {

var MyClass=function() {

AJS.fieldClasses["import"]=Import;
AJS.fieldClasses["datetimearray"]=Datetimearray;
AJS.fieldClasses["pictosrestaurant"]=Pictorestaurant;
AJS.fieldClasses["pictoszugast"]=Pictozugast;
AJS.fieldClasses["gifupload"]=GifUpload;
AJS.fieldClasses["arrowselect"]=ArrowSelect;
AJS.fieldClasses["imagekino"]=ImageK;
AJS.fieldClasses["imagetheater"]=ImageT;
AJS.fieldClasses["logos"]=Logos;
AJS.fieldClasses["textareacounter"]=TextAC;

}

return MyClass;

});