technocrat
technocrat
FFilament
Created by technocrat on 6/27/2024 in #❓┊help
How to Programmatically Navigate to a Specific Step in a Wizard
How can I programmatically navigate to step 2 ("Delivery") using a function call or dispatch in Livewire? I tried:
Livewire.dispatch('next-wizard-step', { statePath: 'mountedTableActionsData.2' });
Livewire.dispatch('next-wizard-step', { statePath: 'mountedTableActionsData.2' });
However, it's not behaving accurately. Sometimes it goes to step 2, but other times it skips to step 3.
Wizard::make([
Wizard\Step::make('Order')
->schema([
// ...
]),
Wizard\Step::make('Delivery')
->schema([
// ...
]),
Wizard\Step::make('Billing')
->schema([
// ...
]),
])
Wizard::make([
Wizard\Step::make('Order')
->schema([
// ...
]),
Wizard\Step::make('Delivery')
->schema([
// ...
]),
Wizard\Step::make('Billing')
->schema([
// ...
]),
])
8 replies
FFilament
Created by technocrat on 5/13/2024 in #❓┊help
Wizard Step event dispatching issue inside aftervaliadtion()
I'm having trouble opening a modal in during the step form validation. Here's what my code looks like:
Step::make('step1')
->schema([])
->aftervalidation(function(){
$this->dispatch('open-modal', id: 'posmodal');
// other logic codes ..........

});
Step::make('step1')
->schema([])
->aftervalidation(function(){
$this->dispatch('open-modal', id: 'posmodal');
// other logic codes ..........

});
The issue is that the modal only opens after the entire code execution of aftervalidation, instead of when the next button is clicked means at the starting of aftervalidation code execution. My goal is to display the modal on next button click and keep it open until a specific code is executed inside fo the aftervalidation(). I've set up a JavaScript listener, but it seems the dispatch event is only happening after whole the code execution. Is there any way i can open the modal instantaneously on next button click ?
4 replies
FFilament
Created by technocrat on 5/9/2024 in #❓┊help
Wizard step - Step Forward, Step Back Without Clicking the Action Button
Currently, I am working on wizard steps. Is there any way I can go to the next step or previous step without clicking the button, something like dispatching an event?
5 replies
FFilament
Created by technocrat on 4/30/2024 in #❓┊help
Troubleshooting Step Wizard: Next Button Loader Spinning Infinitely
I am using a step wizard. Inside the step wizard, I have used afterValidation. Inside that, I am making a function call. I am getting the response within a maximum of 2 minutes. However, the next step is not opening; the next button loader keeps spinning indefinitely.
Step::make('step1')
->afterValidation(function (Set $set, $state) {
if ($state['payment_gateway'] === 'Payment Terminals') {

$response = publisher(strval(floatval($state['amount']) * 100), $state['pos_epi_id']);

if ( $response['STATE'] === '0') {
$payment = $this->paymentCreate($state);

info('Payment created');
}
}
}),
Step::make('step2')
->schema([View::make('forms.components.workshop-payment-response')])
Step::make('step1')
->afterValidation(function (Set $set, $state) {
if ($state['payment_gateway'] === 'Payment Terminals') {

$response = publisher(strval(floatval($state['amount']) * 100), $state['pos_epi_id']);

if ( $response['STATE'] === '0') {
$payment = $this->paymentCreate($state);

info('Payment created');
}
}
}),
Step::make('step2')
->schema([View::make('forms.components.workshop-payment-response')])
i am getting payment created but its not jumping to step two,
6 replies
FFilament
Created by technocrat on 1/16/2024 in #❓┊help
Database notification slowing down the app performance
I've observed a performance issue while utilizing the database notification feature. When dealing with a substantial number of notifications, approximately 1,000, the application tends to slow down and become unresponsive. is there any way to handle it by adding pagination or any other approach
14 replies
FFilament
Created by technocrat on 10/31/2023 in #❓┊help
View::make() not working properly inside of wizard
issue: stripe element not get loaded inside of view make Actually i want to integrate the stripe payments , so i need to generate card token using their js element code (https://codepen.io/Dracarys115/pen/OzjxVg) - I have to make the card payment inside of a multi step wizard and i have to implement the stripe card element in the second step - So i have created a different blade for stripe element and placed that using View:make()
Section::make('Take Payment')
->schema([
View::make(('forms.components.stripe-payment')),
])
Section::make('Take Payment')
->schema([
View::make(('forms.components.stripe-payment')),
])
- But the problem is stripe js elements are not loading in second step. If i put the view in first step it is showing but when i select or update any value in the form the stripe element not loaded - i think its also happening with when i am changing the step is there any way to get the things work properly? code- https://gist.github.com/ckbsbal/87db36c930c0a4434485d6b9b6567b64
15 replies
FFilament
Created by technocrat on 8/14/2023 in #❓┊help
How to prevent table scrollable in small screen?
I want all the columns to fit in one screen not the scrollable to be appear ( from 1080px to above screen sizes)
4 replies
FFilament
Created by technocrat on 8/9/2023 in #❓┊help
lazy loading in Table
Is there any way to lazy load the table view ?
4 replies
FFilament
Created by technocrat on 8/7/2023 in #❓┊help
Elastic Search
is there any way to integrate elastic search with filament? i integrated with laravel scout but it seems not working https://filamentphp.com/docs/3.x/tables/advanced#searching-records-with-laravel-scout
9 replies
FFilament
Created by technocrat on 8/7/2023 in #❓┊help
Infinite scroll In Table
Is there any way i can archieve infinite scroll in table list view instead of pagination
17 replies
FFilament
Created by technocrat on 8/1/2023 in #❓┊help
How to Get the relation manager view in list page?
4 replies
FFilament
Created by technocrat on 7/31/2023 in #❓┊help
How to Get the relation manager view in list page?
10 replies
FFilament
Created by technocrat on 7/29/2023 in #❓┊help
Is there any way i can make fully functional chat functionality with filamet?
i want to create a chat application using filament. I need some suggestion
3 replies
FFilament
Created by technocrat on 7/4/2023 in #❓┊help
How can i add custom icon to resource
protected static ?string $navigationIcon = 'heroicon-o-collection'; also all hero icon not working here
5 replies