Skip to content
Discussion options

You must be logged in to vote

It seems there is no way to solve this problem with pure SQLpage.

You have to design a custom component and add few javascript snippets such as :

in the custom component :

<script>
  // Écoute la fermeture de n'importe quel modal SQLPage
  window.addEventListener("sqlpage:modal:close", function (event) {
    console.log("Modal SQLPage fermé", event);
    // Recharge toute la page pour récupérer les dates mises à jour
    location.reload();
  });

  document.addEventListener('click', function(e) {
  if (e.target.matches('[data-bs-dismiss="modal"], .btn-close, .btn[data-bs-dismiss="modal"]')) {
    window.parent.postMessage({ 
      action: 'refresh', 
      source: 'modal_chart',
      tim…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Aesth
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants