kippie1985
kippie1985
FFilament
Created by John Wink on 4/17/2024 in #❓┊help
Cluster Pages + Navigation Groups
Ahh ok. I thought you tried to cluster the main nav.
17 replies
FFilament
Created by John Wink on 4/17/2024 in #❓┊help
Cluster Pages + Navigation Groups
No description
17 replies
FFilament
Created by John Wink on 4/17/2024 in #❓┊help
Cluster Pages + Navigation Groups
Sorry, didn't read it correct. In this case, you should use navigationgroups. In your PanelProvider, define navigationgroups using
->navigationGroups(['Loans'])
->navigationGroups(['Loans'])
In your resource, define
protected static ?string $navigationGroup = 'Loans';
protected static ?string $navigationGroup = 'Loans';
This should do the trick. Reference: https://filamentphp.com/docs/2.x/admin/navigation#grouping-navigation-items
17 replies
FFilament
Created by John Wink on 4/17/2024 in #❓┊help
Cluster Pages + Navigation Groups
17 replies
FFilament
Created by kippie1985 on 4/10/2024 in #❓┊help
Action->extraAttributes(['target' => 'my_frame']) is not showing
Your solution will print the current page. I'll try to explain the problem more detailed: I have a resource, let's say: PicklistResource. In this resource, i can see all the products i have to pick today for all pending orders. I need a signature from the carrier that he picked up the products, just to have proof, it's a client requirement. It's just a simple list with a barcode, Product description and order number. Beneath that, there will be some space for the driver name, license plate and a signature, so a completely other view
29 replies
FFilament
Created by kippie1985 on 4/10/2024 in #❓┊help
Action->extraAttributes(['target' => 'my_frame']) is not showing
I think we don't understand each other haha. I have a button, that should load a route in a frame that's dedicated to print only some texts. The route will load a controller and the controller will load a view. In this view, i have a javascript window.print(), so this page will show the printer dialog, without opening the actual print page
29 replies
FFilament
Created by kippie1985 on 4/10/2024 in #❓┊help
Action->extraAttributes(['target' => 'my_frame']) is not showing
Very true!! I already did try to use JS like this:
<script>
document.addEventListener('DOMContentLoaded', function() {
document.querySelectorAll('[data-target]').forEach(function(element) {
element.setAttribute('target', element.dataset.target);
});
});
</script>
<script>
document.addEventListener('DOMContentLoaded', function() {
document.querySelectorAll('[data-target]').forEach(function(element) {
element.setAttribute('target', element.dataset.target);
});
});
</script>
But that's only on the DOMContentLoaded of course., so it works only on page load. As documented in the LW documentation, i can only use these JS hooks: livewire:initialized and livewire:init. In this resource, i only have a date filter. Can i hook into Filament as well?
29 replies
FFilament
Created by kippie1985 on 4/10/2024 in #❓┊help
Action->extraAttributes(['target' => 'my_frame']) is not showing
As far as i can see, the target attribute is valid: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/target. Anyway, i've "fixed" it now by making the ->label() an anchor.
29 replies
FFilament
Created by kippie1985 on 4/10/2024 in #❓┊help
Action->extraAttributes(['target' => 'my_frame']) is not showing
No description
29 replies
FFilament
Created by kippie1985 on 4/10/2024 in #❓┊help
Action->extraAttributes(['target' => 'my_frame']) is not showing
No description
29 replies