Re: Seaside+Bootstrap and callbacks

Dominique Dartois <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
I would to open a dialog like this :

WAComponent subclass: #MyBootstrap

MyBootstrap>>renderContentOn: html
html tbsButton
bePrimary;
callback: [self action: html];
with: 'Modal'.

MyBootstrap>>action: html
html
html tbsModal
id: 'myModal';
with: [ html
tbsModalDialog: [ html
tbsModalContent: [ html
etc, etc...

The callback is never triggered.

---
Dominique Dartois


>     Le 17 février 2019 à 23:23, Paul DeBruicker < [email protected] mailto:[email protected] > a écrit :
> 
> 
>     Seaside callbacks shouldn't be affected by bootstrap at all.
> 
> 
>     Bootstrap's javascript for their modal looks for the
> 
>     data-toggle="modal"
> 
>     attribute and sets a click handler on those elements that opens/closes the
>     modal when clicked. (See the example at
>     https://getbootstrap.com/docs/4.3/components/modal/)
> 
> 
>     What are you trying to do that you can't get working?
> 
> 
> 
> 
> 
> 
> 
>     Dominique Dartois-4 wrote
> 
>         > >         Hi all.
> > 
> >         I’m trying to use Bootstrap with Seaside and I don’t find the notion of
> >         Callback. In the ‘Modal example’ the launch of the modal window is done by
> >         a href attribute in a html statement and not a callback in the Smalltalk
> >         code.
> > 
> >         The statement :
> > 
> >         html: '
> >         Launch demo modal <#myModal>
> >         '.
> > 
> >         Is it a choice for this example or is it impossible to use a Callback with
> >         Bootstrap for Seaside?
> > 
> > 
> >         I am using Pharo 7 64 bits and the latest package Seaside+Bootstrap.
> > 
> >         Regards,
> >         ---
> >         Dominique Dartois
> > 
> >         _______________________________________________
> >         seaside mailing list
> > 
> >     > 
> 
>         > >         [email protected] mailto:[email protected]
> > 
> >     > 
> 
>         > >         http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> > 
> >     > 
> 
> 
> 
> 
>     --
>     Sent from: http://forum.world.st/Seaside-General-f86180.html
>     _______________________________________________
>     seaside mailing list
>     [email protected] mailto:[email protected]
>     http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.