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
hi how to add select2 with document.createElement('select2') and set data tanks
The text was updated successfully, but these errors were encountered:
Like this? https://angular.dev/guide/elements
Sorry, something went wrong.
Thank you for your reply Yes, with the same method. But I test it and didn't work. If possible, please provide a sample code my code:
let slc=document.createElement('select2') as NgElement & WithProperties<{data:[]}>; //alse test with{data:Select2Data} slc.id='some id' let slc_data:Select2Data=[]; mydata.forEach((el:any,ix:any)=>{ slc_data.push({ value:ix, label: el, data: { color: 'white', name: el } }); }) slc.data!=slc_data; parent.appendChild(slc);
No branches or pull requests
hi
how to add select2 with document.createElement('select2')
and set data
tanks
The text was updated successfully, but these errors were encountered: