Monday, July 1, 2019

Re: Modal Form reusable.

Buenos Dias,

May be this will help.

Modal has an event, fired when it is about to show https://getbootstrap.com/docs/4.0/components/modal/#events
Event - 'show.bs.modal'

So you may bind handler to it and render modal with fields you wish:

$('#dynamic_modal').on('show.bs.modal', function (e) {
    
$('#dynamic_modal').find(".modal-body").html(YOUR_NEW_CONTENT);
});

Regards,

V.

On Friday, June 28, 2019 at 8:05:34 PM UTC+3, Julio Parra-Sanchez wrote:
Buenos Dias Amigos,

Alguno de ustedes ha utilizado los modal de bootstrap y reutilizarlo como template, pasandole como variable el modal que van a renderizar?

Gracias y espero me haya explicado bien.
------------------------------------------------------
Hello Guys,
Have any of you used bootstrap's manners and reused it as a template, passing as a variable the modal to render it?
thanks

--

    name     : "Julio Parra Sanchez", 
    title    : "Apprentice Developer", 
    company  : "Techtonic", 
    location : "Denver, CO" 
}

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/484eec74-e439-48ad-88b1-d2fdadd57822%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment