import { TemplateConfig } from "../interface/config/template-config" ; export class GridCustomTemplate { private static customTemplates : { [ key ] : TemplateConfig ; } = { } ; static register ( templates ) { if ( templates ) Object . keys ( templates ) . forEach ( templateKey => GridCustomTemplate . customTemplates [ templateKey ] = templates [ templateKey ] ) ; } static getTemplate ( templateName ) { return GridCustomTemplate . customTemplates [ templateName ] ; } }