akveo / akveo/ng2-smart-table

How to get Custom Editor Instance

Đang mở
#1,220 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
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á.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.