Uploading content
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
If you want to use this view overwrite the render method in PHP Livewire component
|
||||
</div>
|
||||
21
resources/views/livewire/examples/frame-component.blade.php
Normal file
21
resources/views/livewire/examples/frame-component.blade.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<div>
|
||||
<div class="card my-5">
|
||||
<div class="card-header p-3">
|
||||
<h4>Content</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul>
|
||||
<li><a href="{{ route('table_no_settings') }}">Table with no settings needed</a></li>
|
||||
<li><a href="{{ route('exportbale') }}">Exprtable</a></li>
|
||||
<li><a href="{{ route('action_column') }}">Action Columns</a></li>
|
||||
<li><a href="{{ route('with_filters') }}">Filters</a></li>
|
||||
<li><a href="{{ route('with_column_formatters') }}">Formatters</a></li>
|
||||
<li><a href="{{ route('with_binded_routes') }}">Binding Routes</a></li>
|
||||
<li><a href="{{ route('with_pagination_settings') }}">Pagination Settings</a></li>
|
||||
<li><a href="{{ route('with_drag_drop_ordering') }}">Drag and Drop Ordering</a></li>
|
||||
<li><a href="{{ route('with_bulk_actions') }}">Bulk Actions</a></li>
|
||||
<li><a href="{{ route('with_relationships') }}">Relationships</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
@generic_table($table)
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
@generic_table($table)
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
@generic_table($table)
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
@livewire('generic_table', ['table' => $table])
|
||||
</div>
|
||||
@@ -0,0 +1,13 @@
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-auto">
|
||||
<button wire:click = "$set('tab', 1)" class="w-100 btn btn-{{ $tab == 1 ? 'primary' : 'light' }}">Pendientes</button>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<button wire:click = "$set('tab', 2)" class="w-100 btn btn-{{ $tab == 2 ? 'primary' : 'light' }}">Pagados</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@generic_table($table, ['tabView' => $tab])
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
@generic_table($noSettingsTable)
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
@generic_table($table)
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
@generic_table($table)
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
@livewire('generic_table', ['table' => $table])
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
@generic_table($table)
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
@generic_table($table)
|
||||
</div>
|
||||
14
resources/views/livewire/test/child-component.blade.php
Normal file
14
resources/views/livewire/test/child-component.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<div>
|
||||
You id is {{ $id }}
|
||||
<button wire:click ="doSome">Hit child</button>
|
||||
</div>
|
||||
|
||||
@script
|
||||
<script>
|
||||
// After the first "Hit parent" this will gives youn the error of no component found
|
||||
// due the lack of hability of livewire to track correctly the previous component events
|
||||
@this.on('did', () => {
|
||||
alert('did it')
|
||||
})
|
||||
</script>
|
||||
@endscript
|
||||
4
resources/views/livewire/test/parent-component.blade.php
Normal file
4
resources/views/livewire/test/parent-component.blade.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<div>
|
||||
<button wire:click = "counting">Hit parent</button>
|
||||
<livewire:test.child-component :id="$count" :key="$count">
|
||||
</div>
|
||||
Reference in New Issue
Block a user