dcasia / conditional-container

Provides an easy way to conditionally show and hide fields in your Nova resources.
MIT License
115 stars 37 forks source link

Add Laravel Nova 4 support #76

Open dees040 opened 2 years ago

dees040 commented 2 years ago

As a reminder I wanted to say that Nova released a new version (v4). Upgrade guide.

cwray-tech commented 2 years ago

plus one for this. Nova 4 has dependent fields but they aren't great for grouping fields like this package works well for.

abishekrsrikaanth commented 2 years ago

+1

mateusgalasso commented 2 years ago

+1

anditsung commented 2 years ago

I have update some package to support nova4 but seems the maintainer is not active anymore. I will try to update this to support nova4 if the maintainer ok with it

milewski commented 2 years ago

Hey @anditsung, thanks, haven't got a nova4 license myself yet to be able to understand what changes need to be done...

anditsung commented 2 years ago

Hey @anditsung, thanks, haven't got a nova4 license myself yet to be able to understand what changes need to be done...

i have check the package... on vue3 the event bus is remove seems need to get other emitter. dont know if the nova4 event cant be use for this

mateusgalasso commented 2 years ago

Hey @anditsung, thanks, haven't got a nova4 license myself yet to be able to understand what changes need to be done...

i have check the package... on vue3 the event bus is remove seems need to get other emitter. dont know if the nova4 event cant be use for this

Like https://vuejs.org/guide/components/events.html ?

milewski commented 2 years ago

@stonkeep I think what he meant was that that before you could do:

const instance = new Vue()

instance.$on('something', () => {})
instance.$emit('something')
anditsung commented 2 years ago

seems the problem is here

this.$nextTick(() => this.deepSearch(this.$root.$children))

i can get the parent using this.$parent but cant find the child from parent