N°8641 - Dashboard editor front-end first commit for Form SDK integration.

* No dashlet edition
* Dashboard are not persisted
* Unable to load a dashboard from an endpoint (refresh)
* Grid library need proper npm integration
This commit is contained in:
Stephen Abello
2026-01-06 15:23:51 +01:00
parent 3e879c64a7
commit a713e1b56e
167 changed files with 32266 additions and 763 deletions

View File

@@ -0,0 +1,13 @@
(() => {
const oDashletEntries = document.querySelectorAll('#{{ oUIBlock.GetId() }} .ibo-dashlet-entry');
$('#{{ oUIBlock.GetId() }} .ibo-dashlet-entry').on('click', (event) => {
const sDashletClass = event.currentTarget.getAttribute('data-dashlet-class');
const oDashboard = document.querySelector('ibo-dashboard');
oDashboard.AddNewDashlet(sDashletClass, {
'minW': event.currentTarget.getAttribute('data-min-width'),
'minH': event.currentTarget.getAttribute('data-min-height'),
'w': event.currentTarget.getAttribute('data-preferred-width'),
'h': event.currentTarget.getAttribute('data-preferred-height')
});
});
})();