Skip to content

Commit

Permalink
Layout Preview: Interactive Actions (#2794)
Browse files Browse the repository at this point in the history
* WIP: Implementing XLR interactive actions

* Layout Preview: Revert unnecessary variable

* Layout Preview: XLR Interactive Actions
relates to xibosignage/xibo#3502

* Layout Preview: XLR Fix - remove iframe pointer events to enable clickability
relates to xibosignage/xibo#3502
  • Loading branch information
rubenberttpingol authored Nov 6, 2024
1 parent 6a038ab commit 53edc92
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/layout-renderer.twig
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
(function($){
$(document).ready(function(){
var xiboLayoutRenderer = new XiboLayoutRenderer({{ layoutObj|json_encode()|raw }}, {{ xlrOptions|json_encode()|raw }});
xiboLayoutRenderer.init().then(function(xlr) {
xlr.playSchedules(xlr);
});
Expand Down
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"dependencies": {
"@fortawesome/fontawesome-free": "^5.13.0",
"@mapbox/leaflet-pip": "^1.1.0",
"@xibosignage/xibo-layout-renderer": "^1.0.4",
"ajax-bootstrap-select": "^1.4.5",
"ajv": "^6.12.2",
"blueimp-file-upload": "^9.34.0",
Expand Down
4 changes: 2 additions & 2 deletions ui/bundle_preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
window.jQuery = window.$ = require('jquery');

// XLR
require('xibo-layout-renderer/dist/styles.css');
import '@xibosignage/xibo-layout-renderer/dist/styles.css';

import XiboLayoutRenderer from 'xibo-layout-renderer';
import XiboLayoutRenderer from '@xibosignage/xibo-layout-renderer';

window.XiboLayoutRenderer = XiboLayoutRenderer;

0 comments on commit 53edc92

Please sign in to comment.