Matthew
Form to PDF
@toeknee Thanks for supplying this. It is similar to what I am doing, but I have an issue with the extensive CSS from filament and the other locations not being available.
Other than creating the css and making them statically available (not keen), have you found a way around that ?
@SoraKeyheart , does Typeset.sh go anyway to solve the CSS issue?
10 replies
Filtering a Select Box
@Povilas K , @ralphjsmit - (cheeky, I could find this out myself with enough research, but you'll know straight away question)... do these solutions work where the Create form is already modal\slideover ? (I understand nesting modals is challenging) ??
11 replies
Using rules on data not inside the form
Thanks for the suggestion. I thought about that, then you've still got to pass the data somewhere in CreateAction.
My resolution was to actually something I should have thought of before, which was to go direct to get the information I previously wanted to pass, within the form:
->where('cdt_type', enumCdtType::from($livewire->activeTab)->value)
4 replies
Global filter...how to refresh on change though.
Answer:
->afterStateUpdated(function (Component $livewire) {
$livewire->dispatch('locationrefresh');
})
in a blade:
@push('scripts')
<script>
document.addEventListener('DOMContentLoaded', function () {
Livewire.on('locationrefresh', refresh => {
window.location.reload(true);
});
});
</script>
@endpush
5 replies