Comments (4)
Copy and paste your code here.
from laravel-livewire-modals.
app.js:
require('./bootstrap');
require('../../vendor/bastinald/laravel-livewire-modals/js/modals');
user-profile-component.blade.php
blade file:
<button type="button"
wire:click="$emit('showModal', 'profile-update')">
{{ __('Update Profile') }}
</button>
UserProfileComponent.php
:
class UserProfileComponent extends Component
{
public $title = 'Update Profile';
public function render()
{
return view('user::livewire.user-profile-component');
}
}
now when i click on button, modal should be appear
from laravel-livewire-modals.
each modal should be have a single component?
is any sample code?
from laravel-livewire-modals.
Look at the example here: https://github.com/bastinald/laravel-livewire-auth/blob/master/stubs/app/Http/Livewire/Auth/ProfileUpdate.php
In fact I recommend you start with that package if you're new.
from laravel-livewire-modals.
Related Issues (13)
- modal not open HOT 3
- Support for bootstrap 4 HOT 4
- can't push javascript to @stack('script') HOT 3
- Please add support of Laravel 9 HOT 4
- Autofocus on input within Modal HOT 2
- Support for Laravel 10? HOT 4
- Support for Livewire 3
- JS & Crud improvements: protect and singleton HOT 1
- Improvement : url/Routes create, show & edit HOT 1
- Maybe add offcanvas here? HOT 2
- Wire:loading on the trigger element HOT 1
- Close on click out side. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-livewire-modals.