Skip to content
This repository was archived by the owner on Jul 22, 2018. It is now read-only.
Abdullah Marax edited this page Nov 1, 2016 · 2 revisions

###Catch event

List of events , Check for more Options


plekanEvent: {
    onAdd : () => {},
    onDelete : () => {},
    onSort : () => {},
    onDuplicate : () => {},
    onUpdate : () => {},
    onInit : () => {},
    onFileUpload(){}
}

Events are catch two different way ;

As global Vue instance

this.$plekanEvent.onAdd = (row,index) => { // do this} 

As on Vue.use

Vue.use(plekan.editor,{
  ...
  plekanEvent: {
    onAdd : () => {},
  }
  ...     
})

Clone this wiki locally