akveo / akveo/ng2-smart-table

How to get Custom Editor Instance

Ouverte
#1,220 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
1.6k
Forks
867
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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?

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.