<!doctype html>
<html>
 <head> 
  <meta charset="UTF-8"> 
 </head>
 <body>
  <div>
   I would to open a dialog like this :
  </div>
  <div>
   <br>
  </div>
  <div>
   WAComponent subclass: #MyBootstrap
  </div>
  <div>
   <br>
  </div>
  <div>
   MyBootstrap>>renderContentOn: html
  </div>
  <div>
        html tbsButton
  </div>
  <div>
        bePrimary;
  </div>
  <div>
        callback: [self action: html];
  </div>
  <div>
        with: 'Modal'.
  </div>
  <div>
   <br>
  </div>
  <div>
   MyBootstrap>>action: html
   <br>     html
   <br>     html tbsModal
   <br>     id: 'myModal';
   <br>     with: [ html
   <br>              tbsModalDialog: [ html
   <br>                      tbsModalContent: [ html
   <br>etc, etc...
   <br>
  </div>
  <div>
   <br>
  </div>
  <div>
   The callback is never triggered.
   <br>
  </div>
  <div>
   <br>
  </div>
  <div>
   ---
  </div>
  <div>
   Dominique Dartois
  </div>
  <div>
   <br>
  </div>
  <blockquote type="cite">
   <div>
    Le 17 février 2019 à 23:23, Paul DeBruicker <
    <a href="mailto:pdebruic@gmail.com">pdebruic@gmail.com</a>> a écrit :
   </div>
   <div>
    <br>
   </div>
   <div>
    <br>
   </div>
   <div>
    Seaside callbacks shouldn't be affected by bootstrap at all.
   </div>
   <div>
    <br>
   </div>
   <div>
    <br>
   </div>
   <div>
    Bootstrap's javascript for their modal looks for the
   </div>
   <div>
    <br>
   </div>
   <div>
    data-toggle="modal"
   </div>
   <div>
    <br>
   </div>
   <div>
    attribute and sets a click handler on those elements that opens/closes the
   </div>
   <div>
    modal when clicked. (See the example at
   </div>
   <div>
    <a href="https://getbootstrap.com/docs/4.3/components/modal/" rel="noopener" target="_blank">https://getbootstrap.com/docs/4.3/components/modal/</a>)
   </div>
   <div>
    <br>
   </div>
   <div>
    <br>
   </div>
   <div>
    What are you trying to do that you can't get working?
   </div>
   <div>
    <br>
   </div>
   <div>
    <br>
   </div>
   <div>
    <br>
   </div>
   <div>
    <br>
   </div>
   <div>
    <br>
   </div>
   <div>
    <br>
   </div>
   <div>
    <br>
   </div>
   <div>
    Dominique Dartois-4 wrote
   </div>
   <blockquote type="cite">
    <div>
     Hi all.
    </div>
    <div>
     <br>
    </div>
    <div>
     I’m trying to use Bootstrap with Seaside and I don’t find the notion of
    </div>
    <div>
     Callback. In the ‘Modal example’ the launch of the modal window is done by
    </div>
    <div>
     a href attribute in a html statement and not a callback in the Smalltalk
    </div>
    <div>
     code.
    </div>
    <div>
     <br>
    </div>
    <div>
     The statement :
    </div>
    <div>
     <br>
    </div>
    <div>
     html: '
    </div>
    <div>
     Launch demo modal <#myModal>
    </div>
    <div>
     '.
    </div>
    <div>
     <br>
    </div>
    <div>
     Is it a choice for this example or is it impossible to use a Callback with
    </div>
    <div>
     Bootstrap for Seaside?
    </div>
    <div>
     <br>
    </div>
    <div>
     <br>
    </div>
    <div>
     I am using Pharo 7 64 bits and the latest package Seaside+Bootstrap.
    </div>
    <div>
     <br>
    </div>
    <div>
     Regards,
    </div>
    <div>
     ---
    </div>
    <div>
     Dominique Dartois
    </div>
    <div>
     <br>
    </div>
    <div>
     _______________________________________________
    </div>
    <div>
     seaside mailing list
    </div>
   </blockquote>
   <div>
    <br>
   </div>
   <blockquote type="cite">
    <div>
     <a href="mailto:seaside@.squeakfoundation">seaside@.squeakfoundation</a>
     <br>
    </div>
   </blockquote>
   <div>
    <br>
   </div>
   <blockquote type="cite">
    <div>
     <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="noopener" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
     <br>
    </div>
   </blockquote>
   <div>
    <br>
   </div>
   <div>
    <br>
   </div>
   <div>
    <br>
   </div>
   <div>
    <br>
   </div>
   <div>
    <br>
   </div>
   <div>
    --
   </div>
   <div>
    Sent from: 
    <a href="http://forum.world.st/Seaside-General-f86180.html" rel="noopener" target="_blank">http://forum.world.st/Seaside-General-f86180.html</a>
    <br>
   </div>
   <div>
    _______________________________________________
   </div>
   <div>
    seaside mailing list
   </div>
   <div>
    <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
    <br>
   </div>
   <div>
    <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="noopener" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
    <br>
   </div>
  </blockquote> 
 </body>
</html>