Hi,
I am trying to add KendoButton at runtime using NgComponentOutlet. The button rendered successfully but I am not able to set the inner text for it. Any idea how to do that? Here is the code.
Component.html
<ng-container *ngComponentOutlet="currentButton.component; inputs: currentButton.inputs;">
</ng-container>
Component.ts
get currentButton(){
return {
component: ButtonComponent ,
inputs: { size: 'large', fillMode: 'solid', themeColor: 'primary', innerText: 'Click Me' },
module: ButtonsModule
}
}
The above code sets the other inputs properly and it is reflected in the UI component [e.g. themeColor], but not the innerText. Here is the screenshot.
Is there any way to achieve this?
Thank you in advance.