admin管理员组文章数量:1125616
I'm using datatable in my application downlaoded from link
Works well with wire:navigate and even #[Lazy] but I implemented checkbox for each row in table and once i click checkbox to run function, this table stop working i mean all filters and sorting. Script to run this script after page is loaded:
<div x-data="initFilters()"></div>
@script
<script>
Alpine.data('initFilters',() => ({
init() {
let tf_config = {
sort: true,
alternate_rows: false,
status: false,
sort_config: {
sort_types:['String','String','Number','Number','Number','Number','Number','String']
},
display_all_text: "< Show All >",
col_0: 'input',
col_1: 'select',
col_2: 'select',
col_3: 'select',
col_4: 'select',
col_5: 'input',
col_6: 'select',
col_9: 'select',
external_flt_grid: true,
external_flt_grid_ids: ['intOrderId','strLoadId','strDemandType','strDeliveryMethod','strDeliveryDate','strRange'],
};
setFilterGrid("table",tf_config);
}}));
</script>
@endscript
Checkbox:
<input type="checkbox" wire:click="checked({{ $item->intOrderId }})" >
Table before i click checkbox: Before
After click checkbox After Maybe someone have had this problem?
本文标签: Laravel Livewire script stop working after wireclickStack Overflow
版权声明:本文标题:Laravel Livewire script stop working after wire:click - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736608717a1945390.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论