Replies: 1 comment 1 reply
-
You can write a macro for ComponentAttributesBag, look at livewire implementation:
If you name the macro "directive", you could do |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm creating a component, but i need the attributes modifiers list, ex:
<x-button tooltip.left.top="Click To Save">Click</x-button>
I need to get the left and top modifiers.
When check if the tooltip attribute exists, its return false
$attributes->has('tooltip')
Is false because the
tooltip.left.top
is set together.I can implement this feature, but I don know if will be accepted.
I think:
or
$attributes->getModifiers(): Collection or array
@taylorotwell
Beta Was this translation helpful? Give feedback.
All reactions