V
V
Vlad Sadovnik2021-07-12 12:15:14
Vue.js
Vlad Sadovnik, 2021-07-12 12:15:14

Please explain about the activator in tempalte vuetify?

<template v-slot:activator="{ on, attrs }">
please explain what an activator is and why it is atrs
<template v-slot:item.selectRow="{ item }">
and also this syntax I'm talking about curly braces why aye and what is there to fuck or is it a slot?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Aetae, 2021-07-12
@Aetae

Dude, here's the documentation for you . Read.
The Vue documentation is not the documentation of some Angular thread. Everything is clear, short, clear and to the point.
Unlike the usual situation, if you have a question about Vue - in the documentation you will find the answer faster and more clearly than by asking.

K
Konstantin Tolmachev, 2021-07-12
@dark_tke

please explain what an activator is and why it is atrs

You most likely took this slot from the v-dialog component. Inside it is placed an object that will be the activator of the dialog box, i.e. the activator in this case is simply the name of the slot. With v-on="on" you are forwarding a click event on the element that will open the dialog box. All this is described by examples in the documentation
. The second example seems to have been taken from the table object, this particular example allows you to override the standard handler of the table terms field. A string object is passed to it, and then you implement your logic. item is a constant in this case.
PS The advice about the documentation from the answer above, by the way, is extremely relevant

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question