-
Notifications
You must be signed in to change notification settings - Fork 8
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
->options() not working as expected #19
Comments
Hey - anything on this? Thanks |
Hi there, We have an update for the Livewire pattern coming soon that may fox this. In the meantime you could try optionsRaw() with a json syntax to see if that's better or try a normal livewire component where you can control the public properties and methods better than in an anonymous component. If you share a bit more about what you're trying to achieve it'll help make sure tbe livewire upgrade works for your use case. |
Ok great news, I'll keep a look out. I'm using this in combination with Filamentphp, and actually the TipTap extension (https://v2.filamentphp.com/plugins/tiptap) through the use of custom blocks: https://github.com/awcodes/filament-tiptap-editor#user-content-custom-blocks I input the datapoints into a form, which is then stored in the database. Through the tiptip editor the chart is rendered using this view:
which is then supported by this class via a facade.
As I say, everything is fine except for the options. Currently the charts are displaying without axis labels: Looking forward to the update. |
Just tagged release v1.4 which works with more patterns for options eg options(), optionsRaw() and no options at all. Maybe have a go and see if the updated code works for your situation now. |
Hello,
I have been having issues getting the options to work for the chart. For example, the axis labelling wasn't working.
I'm using a plugin which is delivering my template using an anonymous livewire template.
If I use the ->livewire() method is leaves an error message because "$this->model" isn't accessible in the "chart-template-livewire.blade.php" file.
If I remove the livewire() method, it is ok if I remove the if function around the $options variable in "chart-template.blade.php". See attached screenshots.
I tried a pull request, but it reverted back to the original repository.
The text was updated successfully, but these errors were encountered: