Button with Modal Popup
How to create simple link OR button in Filament livewire which ideally open a Modal popup?
Solution:Jump to solution
```html
<!-- resources/views/custom-view.blade.php -->
<div>
<x-filament::modal id="myModal">
<x-slot name="heading">...
16 Replies
take a look:
https://discordapp.com/channels/883083792112300104/1134059696970539018/1134142053639536650
modal window.. what does it mean?
Simple Popup
Like Bootstrap Popup window
But that's at second stage
Currently I'm trying to add a Simple button
are you using filament admin panel?
Yes\
TextInput::make('title')->required(),
By doing so, I'm able to creat a text box but in similar way I like to create a button
But as far as I considered the documentation I didn't find suitable control in From builder list
there is modal on Filament
Thanks and Yes certainly I may find out a way for adding a Modal
But Here my point is how to add Button
Solution
I tried by adding above piece of code but it's showing an error
use Filament\Forms\Components\View;
Already added
share the whole code following #✅┊rules
View::make('custom-view')
instead of Forms\Components\View::make('custom-view')
Thank you, Its working
I need to pass relationship data in custom view, So How can I manage this thing?
$getRecord()
@leandro_ferreira , I have a question on this question. Actually, I'm also facing similar issue. But when I try to do this it's saying Relationship doesn't exist.
Am i doing anything wrong ?
hey, sorry for the delay. Can you open a new topic and share the code please?