We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am trying to implement dabeng/OrgChart to my app but its not loading i use npm install orgchart and my blade look like this:
<div wire:ignore class="relative mx-auto mt-5" id="chart-container"></div> @script <script type="text/javascript"> // $wire.on('post-created', () => { $(function() { document.addEventListener('livewire:init', () =>{ var datascource = { 'name': 'Lao Lao', 'title': 'general manager', 'children': [ { 'name': 'Bo Miao', 'title': 'department manager', 'className': 'middle-level', 'children': [ { 'name': 'Li Jing', 'title': 'senior engineer', 'className': 'product-dept' }, { 'name': 'Li Xin', 'title': 'senior engineer', 'className': 'product-dept', 'children': [ { 'name': 'To To', 'title': 'engineer', 'className': 'pipeline1' }, { 'name': 'Fei Fei', 'title': 'engineer', 'className': 'pipeline1' }, { 'name': 'Xuan Xuan', 'title': 'engineer', 'className': 'pipeline1' } ] } ] }, { 'name': 'Su Miao', 'title': 'department manager', 'className': 'middle-level', 'children': [ { 'name': 'Pang Pang', 'title': 'senior engineer', 'className': 'rd-dept' }, { 'name': 'Hei Hei', 'title': 'senior engineer', 'className': 'rd-dept', 'children': [ { 'name': 'Xiang Xiang', 'title': 'UE engineer', 'className': 'frontend1' }, { 'name': 'Dan Dan', 'title': 'engineer', 'className': 'frontend1' }, { 'name': 'Zai Zai', 'title': 'engineer', 'className': 'frontend1' } ] } ] } ] }; console.log(test, JSON.stringify(datascource)); var oc = $('#chart-container').orgchart({ // 'data' : @js($employees), 'data' : datascource, 'nodeContent': 'title' })(jQuery); console.log(oc); }) }); // }) </script> @endscript
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am trying to implement dabeng/OrgChart to my app but its not loading i use npm install orgchart and my blade look like this:
The text was updated successfully, but these errors were encountered: