How to get Custom Editor Instance
- Ngôn ngữ chính
- TypeScript
- Star
- 1.6k
- Fork
- 867
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
I having an issue with the custom editor on how to pass the instance parameters, though it's working as expected in the render mode.
renderComponent: CustomComponent,
onComponentInitFunction(instance) {
console.log(`instance: `, instance);
instance.xyz = 'xzy'
instance.xx= 'xx'
},
editor: {
type: 'custom',
component: CustomEditorComponent,
/* issue is here, is there is anyway we can get the current instance and set some extra parameter? */
onComponentInitFunction(instace) {
instance.xyz = 'xzy'
instance.xx= 'xx'
}
Can we get the custom editor instance as it does for rendering?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.