N°2313 - Markup extensibility: Add meta information and hooks

Admin. console:
- Class and id on object form
- Class current and target state on object transition form
- Object form mode (view/edit/create/stimulus)
- Object attributes: Attribute code, attribute definition class and raw value
- Navigation menu: Their IDs on group and items
- Actions menu: Their IDs on items

Portal:
- Object attributes: Attribute code, attribute definition class and raw value
This commit is contained in:
Molkobain
2019-12-04 15:21:27 +01:00
parent d36340a3cd
commit 4db114f64d
22 changed files with 631 additions and 358 deletions

View File

@@ -276,6 +276,14 @@ $(function()
{
oFieldContainer.html(oField.html);
}
// HTML metadata
if( (oField.html_metadata !== undefined) && (Object.keys(oField.html_metadata).length > 0) )
{
for(var i in oField.html_metadata)
{
oFieldContainer.attr('data-' + i, oField.html_metadata[i]);
}
}
// JS files
if( (oField.js_files !== undefined) && (oField.js_files.length > 0) )
{