For example, in my application I created a custom front end controller to display a document using the full "work" area of Espo's screen (<div id="main>) called "FullPage" so I followed these steps:
1) created first the controller script: client/custom/src/controllers/full-page.js which includes a function called "showFullPage"
2) created the clientDefs metadata custom/Espo/Custom/Resources/metadata/clientDefs/FullPage.json which contains the following:
Code:
{ "controller": "custom:controllers/full-page" }
Leave a comment: