Skip to content
Discussion options

You must be logged in to vote

I think I found the solution. The first arg in Unicorn.call is componentNameOrKey:

https://github.com/adamghill/django-unicorn/blob/dca46768e031057cb764f36ae23652d570968d6b/django_unicorn/static/unicorn/js/unicorn.js#L130

So you can call the child component as follows:

Unicorn.call('example_key', 'select_state', this.value, this.selectedIndex)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@adamghill
Comment options

Answer selected by jacksund
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants