How to properly hide / show headerAction dynamically ?
as shown in the video, the header action should be hidden on mount but it didnt and it also render three dots menu when the button is hidden.
it work as intended when i replace the hidden method to be extraAttribute ( alpine x-show )
below is the code :
5 Replies
Please read the #✅┊rules about how to format your code properly.
hidden is $this->showHeaderActionsButton = false, hidden(false) means it will show.. you will need to update it accordingly to invert what you want:
$hideHeaderActionsButton = true;
hidden($this->hideHeaderActionsButton)
ah, i mixed up with visible
but here is my another test
this is my blade view