<v-data-table @click:row="onClickRow">
methods: {
onClickRow(item) {
console.log(item);
},
...
<yandex-map
ref="map"
...
<button
@click="$refs.map.myMap.balloon.open(координаты, содержимое)"
...
<div v-for="element in emelents">
<div v-if="element.type === 'text'">
<input />
</div>
<div v-if="element.type === 'textarea'">
<textarea><textarea/>
</div>
</div>
data: () => ({
checked: null,
items: [ 'hello, world!!', 'fuck the world', 'fuck everything' ],
}),
<label v-for="(n, i) in items">
<input
type="checkbox"
:checked="checked === i"
@change="checked = $event.target.checked ? i : null"
>
{{ n }}
</label>
$i = 1;
foreach($arr as $item) {
if ($i > 2) break;
echo $item;
$i++;
}