A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/uiv-lib/uiv/commit/66904bc9008118e54cef7a7101d92d92fba0cdbf below:

fix typeahead custom template example · uiv-lib/uiv@66904bc · GitHub

14 14

:async-function="queryFunction"

15 15

item-key="login"

16 16

>

17 -

<template #item="props">

17 +

<template #item="{ items, activeIndex, select, highlight }">

18 18

<li

19 -

v-for="(item, index) in props.items"

20 -

:key="index"

21 -

:class="{ active: props.activeIndex === index }"

19 +

v-for="(item, index) in items"

20 +

:key="item.id"

21 +

:class="{ active: activeIndex === index }"

22 22

>

23 -

<a role="button" @click="props.select(item)">

24 -

<img width="22px" height="22px" :src="item.avatar_url + '&s=40'" />

25 -

<span v-html="props.highlight(item)"></span>

23 +

<a role="button" @click="select(item)">

24 +

<img

25 +

style="width: 22px; height: 22px; margin-right: 5px"

26 +

:src="item.avatar_url + '&s=40'"

27 +

alt="avatar"

28 +

/>

29 +

<span v-html="highlight(item)"></span>

26 30

</a>

27 31

</li>

28 32

</template>


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4