mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 19:48:49 +02:00
Proposition that allows to include modules from ar array. Works both on usual page + ajax page
This commit is contained in:
@@ -135,6 +135,15 @@ interface iUIBlock
|
||||
*/
|
||||
public function AddJsFileRelPath(string $sPath);
|
||||
|
||||
/**
|
||||
* Add a JS module file (whole files inclusion + module configuration) to a block
|
||||
*
|
||||
* @param array $aModuleConfig relative path of a JS file to add
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function AddJsModuleConfigs(array $aModuleConfig);
|
||||
|
||||
/**
|
||||
* Add several JS files to a block.
|
||||
* Duplicates will not be added.
|
||||
@@ -145,6 +154,15 @@ interface iUIBlock
|
||||
*/
|
||||
public function AddMultipleJsFilesRelPaths(array $aPaths);
|
||||
|
||||
/**
|
||||
* Add several JS modules files to a block.
|
||||
*
|
||||
* @param string[] $aModulesConfig
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function AddMultipleJsModulesFilesRelPaths(array $aModulesConfig);
|
||||
|
||||
/**
|
||||
* Add a CSS file to a block (if not already present)
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user