Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isReactiveOptions usage is unclear #3

Open
dkoo761 opened this issue May 10, 2015 · 1 comment
Open

isReactiveOptions usage is unclear #3

dkoo761 opened this issue May 10, 2015 · 1 comment

Comments

@dkoo761
Copy link

dkoo761 commented May 10, 2015

I was looking through the source code wondering how to handle reactive options and stumbled upon isReactiveOptions. At first it looked very promising but I haven't been able to get it working. I have the following in my template:

{{> afQuickField name="homeCourt" type="selectize" selectizeOptions=homeCourtOptions isReactiveOptions=true multiple=true placeholder="First choose your Home City above..."}}

The homeCourtOptions function then returns an object with its 'options' property set to an array which is computed using a reactive variable. I can see the reactivity triggering a re-compute of homeCourtOptions, however, it doesn't appear that the object being returned from homeCourtOptions is being used by the autoform-selectize package to re-compute the options. Is there something else I need to do?

@dkoo761
Copy link
Author

dkoo761 commented May 10, 2015

FYI, I managed to get it working by using the sample code from Selectize's "City / State Selection" example using the load() function instead of using isReactiveOptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant