Master Detail Fancy in Laravel

QuestionsMaster Detail Fancy in Laravel
Radek asked 2 years ago

I can't use option "Master Detail Fancy" in Laravel. When I click on link, app doesn't show modal form. URL looks like this: …/public/client2#box_detail_grid.

1 Answers
Abu Ghufran answered 2 years ago

To connect fancy box to link, following steps are necessary. Make sure you have it:
1) Include css/js
<!– Add fancyBox main JS and CSS files –>
<link type="text/css" rel="stylesheet" href="//cdn.jsdelivr.net/fancybox/2.1.4/jquery.fancybox.css" />
<script type="text/javascript" src="//cdn.jsdelivr.net/fancybox/2.1.4/jquery.fancybox.js"></script>

2) On link, apply class e.g. class='fancybox'
$col = array();
$col["title"] = "Detail Info";
$col["name"] = "detail";
$col["default"] = "<a class='fancybox' onclick='jQuery("#list1").setSelection({client_id});' href='#box_detail_grid'>View Details</a>";
$col["width"] = "40";

3) Connect JS code with this class:
<script>
$(document).ready(function() {
$('.fancybox').fancybox({
afterClose : function() { $('#list1').trigger("reloadGrid"); }
});
});
</script>

Your Answer

9 + 4 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!