© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
9 replies
Anom_Dkk

Disable Toggle Column by button

i have toggle column and i want to if i click the button click it will disable the toggle column, i have to tried to make function with button on livewire but its not working, this my code
this my function to handle click
public function lockdataTable()
{
$this->lockdata = !$this->lockdata;
}

this my code of the toggle column
ToggleColumn::make('mengajukan_rpl')->label('Mengajukan RPL')->disabled($this->lockdata),

i havent idea again, maybe someone can help me for fix my isue, thanks
Solution
i have toggle column and i want to if i click the button click it will disable the toggle column, i have to tried to make function with button on livewire but its not working, this my code
this my function to handle click
public function lockdataTable()
{
$this->lockdata = !$this->lockdata;
}

this my code of the toggle column
ToggleColumn::make('mengajukan_rpl')->label('Mengajukan RPL')->disabled($this->lockdata),

i havent idea again, maybe someone can help me for fix my isue, thanks
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Column selector toggle button
FilamentFFilament / ❓┊help
3y ago
Customise column toggle button
FilamentFFilament / ❓┊help
3y ago
Toggle button without database column?
FilamentFFilament / ❓┊help
2y ago
Toggle-column
FilamentFFilament / ❓┊help
2y ago