Save and Update Invoice Totals

36 views
Skip to first unread message

brendan...@gmail.com

unread,
Jan 13, 2020, 9:16:40 PM1/13/20
to intercooler-js

<span id="invoice_download_link" class="btn btn-default btn-sm" ic-get-from="{{route('billing.invoice-download-link',['id' => $invoice->id])}}" ic-trigger-on="load">
</span>

Works great when the page loads. I would like to trigger this #invoice_download_link again when the user hits the save button which does an ic-post, basically the download link will change based from time to time.

Think of an invoice page, when you add an item and hit the save button it should reload the #invoice_download_link... Basically this is done onload how do I tell it to reload after an IC event.

Justin T. Sampson

unread,
Jan 14, 2020, 1:36:15 AM1/14/20
to brendan...@gmail.com, intercooler-js
Hi Brendan,

This sounds like a natural case for Intercooler's dependency mechanism.


Cheers,
Justin

--
You received this message because you are subscribed to the Google Groups "intercooler-js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to intercooler-j...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/intercooler-js/5bdbc16c-2fb3-49a3-af57-7063c747a01c%40googlegroups.com.

brendan...@gmail.com

unread,
Jan 14, 2020, 1:56:38 AM1/14/20
to intercooler-js
Thank you...

You are correct and it worked great for me...

On Tuesday, January 14, 2020 at 8:36:15 AM UTC+2, Justin Sampson wrote:
Hi Brendan,

This sounds like a natural case for Intercooler's dependency mechanism.


Cheers,
Justin

On Mon, Jan 13, 2020 at 6:16 PM <brenda...@gmail.com> wrote:

<span id="invoice_download_link" class="btn btn-default btn-sm" ic-get-from="{{route('billing.invoice-download-link',['id' => $invoice->id])}}" ic-trigger-on="load">
</span>

Works great when the page loads. I would like to trigger this #invoice_download_link again when the user hits the save button which does an ic-post, basically the download link will change based from time to time.

Think of an invoice page, when you add an item and hit the save button it should reload the #invoice_download_link... Basically this is done onload how do I tell it to reload after an IC event.

--
You received this message because you are subscribed to the Google Groups "intercooler-js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to interco...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages