Anik
Anik
Explore posts from servers
FFilament
Created by Anik on 5/21/2024 in #❓┊help
resource in multiple panels
bump
3 replies
FFilament
Created by AgonK on 5/22/2024 in #❓┊help
how to send request and get response inside action button
try
action($this->anyThing())

public function anything() {
// logic here
}
action($this->anyThing())

public function anything() {
// logic here
}
26 replies
FFilament
Created by AgonK on 5/22/2024 in #❓┊help
how to send request and get response inside action button
are you using it inside forms?
26 replies
FFilament
Created by AgonK on 5/22/2024 in #❓┊help
how to send request and get response inside action button
provide code
26 replies
FFilament
Created by Peet X on 10/6/2023 in #❓┊help
Reuse the same Resources in multiple panels
have you tried displaying different pages in the resource according to user?
10 replies
FFilament
Created by JJSanders on 5/21/2024 in #❓┊help
Small documentation page
use tailwind classes
9 replies
FFilament
Created by Mark Chaney on 1/31/2024 in #❓┊help
Tips for testing Wizard Steps?
I am talking about this scenerio as well
12 replies
FFilament
Created by Mark Chaney on 1/31/2024 in #❓┊help
Tips for testing Wizard Steps?
have tried it. call('next') tries to find the method in the page itself.
12 replies
FFilament
Created by Mark Chaney on 1/31/2024 in #❓┊help
Tips for testing Wizard Steps?
have you been able to find any solution for this?
12 replies
NNuxt
Created by Anik on 5/4/2024 in #❓・help
nitropack error nuxtjs/sitemap
bump
2 replies
FFilament
Created by Anik on 3/16/2024 in #❓┊help
navigationitems override
bump
3 replies
FFilament
Created by Anik on 3/5/2024 in #❓┊help
navigation item disabled
The extraAttributes method would do for now
15 replies
FFilament
Created by Anik on 3/5/2024 in #❓┊help
navigation item disabled
Umm, we would also need to remove the href I guess. I was hoping NavigationItem would have disabled method like Action buttons to handle all the code required for the disabled state internally. I can work on a PR if you want. https://css-tricks.com/how-to-disable-links/
15 replies
FFilament
Created by Anik on 3/5/2024 in #❓┊help
navigation item disabled
The scenario is useful in case when we want a user to do some onboarding task before getting access to the other pages. But we don't want to hide the pages through a viewall policy. Instead make the navigation item unclickable through a disabled policy
15 replies
FFilament
Created by Anik on 3/5/2024 in #❓┊help
navigation item disabled
Also we can add a lock icon for the $navigationDisabled by default. Disabled is a state just like active and can be implemented for NavigationItems. It is different from hidden as the user can view the link in the sidebar, but cannot click it until some steps are completed and $navigationDisabled returns false
15 replies
FFilament
Created by Anik on 3/5/2024 in #❓┊help
navigation item disabled
How about i add a property $navigationDisabled to pages and in item.blade.php
<a
{{ \Filament\Support\generate_href_html($url, $shouldOpenUrlInNewTab) }}
x-on:click="window.matchMedia(`(max-width: 1024px)`).matches && $store.sidebar.close()"
@if ($sidebarCollapsible)
x-data="{ tooltip: false }"
x-effect="
tooltip = $store.sidebar.isOpen
? false
: {
content: @js($slot->toHtml()),
placement: document.dir === 'rtl' ? 'left' : 'right',
theme: $store.theme,
}
"
x-tooltip.html="tooltip"
@endif
@class([
'fi-sidebar-item-button relative flex items-center justify-center gap-x-3 rounded-lg px-2 py-2 outline-none transition duration-75 hover:bg-gray-100 focus-visible:bg-gray-100 dark:hover:bg-white/5 dark:focus-visible:bg-white/5',
'bg-gray-100 dark:bg-white/5' => $active,
'pointer-events-none' => $navigationDisabled
])
>
<a
{{ \Filament\Support\generate_href_html($url, $shouldOpenUrlInNewTab) }}
x-on:click="window.matchMedia(`(max-width: 1024px)`).matches && $store.sidebar.close()"
@if ($sidebarCollapsible)
x-data="{ tooltip: false }"
x-effect="
tooltip = $store.sidebar.isOpen
? false
: {
content: @js($slot->toHtml()),
placement: document.dir === 'rtl' ? 'left' : 'right',
theme: $store.theme,
}
"
x-tooltip.html="tooltip"
@endif
@class([
'fi-sidebar-item-button relative flex items-center justify-center gap-x-3 rounded-lg px-2 py-2 outline-none transition duration-75 hover:bg-gray-100 focus-visible:bg-gray-100 dark:hover:bg-white/5 dark:focus-visible:bg-white/5',
'bg-gray-100 dark:bg-white/5' => $active,
'pointer-events-none' => $navigationDisabled
])
>
15 replies
FFilament
Created by Anik on 3/5/2024 in #❓┊help
navigation item disabled
Can I make a PR? I have almost figured it out
15 replies
FFilament
Created by Anik on 3/5/2024 in #❓┊help
navigation item disabled
Method Filament\Navigation\NavigationItem::extraAttributes does not exist. The pointer-events-none class works perfectly for the <a href> tag when applied through console. Now we need a way to apply it through NavigationItem::class.
15 replies
FFilament
Created by Anik on 2/25/2024 in #❓┊help
disable form when media is uploaded
bump
3 replies
FFilament
Created by Anik on 2/9/2024 in #❓┊help
search highlight
How can the highlightMatch function be implemented with table searchable columns? I can make a PR if you guide me in the right direction
16 replies