[Seaside] Seaside+Bootstrap and callbacks
Dominique Dartois
dom at dartois.org
Mon Feb 18 20:07:32 UTC 2019
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 < pdebruic at gmail.com mailto:pdebruic at gmail.com > 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
> >
> > >
>
> > > seaside at .squeakfoundation mailto:seaside at .squeakfoundation
> >
> > >
>
> > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
> > >
>
>
>
>
> --
> Sent from: http://forum.world.st/Seaside-General-f86180.html
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org mailto:seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20190218/27370c64/attachment.html>
More information about the seaside
mailing list