Is that JS language?
Yeah vue.js
wow my eyes
basically viewSeries and viewPublications are JS methods
They have like angle brackets <>, colons at the indentation parts, and @ sign, and triple equal sign.
if I am passing @callback="viewSeries" working fine could you write here snippet to pass methods as conditional ?
I don’t recognize that vue.js, just Vanilla JavaScript...
oh in vanila we could pass like this only table.resultView === 'Publication' ? viewSeries : viewPublication
This worked v-on="{ callback: table.resultView === 'Publication' ? viewSeries : viewPublication }"
Обсуждают сегодня