ratiw / vuetable-2-tutorial

MIT License
258 stars 67 forks source link

format field using callback, bind additionals parameters #24

Open Dri4n opened 7 years ago

Dri4n commented 7 years ago

Hi,

how to format field using callback, and pass additionals parameters, for example, Id or object value

object = { id:1, checked:true }

callback(value,object){ return }

thanks, pd: sorry for mi english.. xD

ratiw commented 7 years ago

@Dri4n You have to use __component or __slot option, see lesson-11 for example. The callback will only pass the value of the current column to your callback, nothing else. Its main purpose is to allow using external library to format your data value.