Your cart is empty!
After Build
public function onAfterBuildMap( string &$html ) : void
Fires after displaying the tables map.
Description
Trigger hook to allow the plugins to manipulate the HTML generated by the layout that renders the map.
Any string appended to the $html
argument will then be included within the document.
Parameters
- &$html
-
(string) The HTML of the map.
Return Value
None.
Example
The example below can be used to append a javascript block to start supporting new actions.
/**
* Trigger hook to allow the plugins to manipulate the HTML
* generated by the layout that renders the map.
*
* @param string &$html The HTML of the map.
*
* @return void
*/
public function onAfterBuildMap(&$html)
{
$html .= "<script>console.log('Here's my custom script');</script>";
}
Changelog
Version | Description |
---|---|
1.8 | Introduced. |
Last Update: 2023-12-29 14:15
Helpful?