Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
apps.education
apps.education-front
Commits
f321827a
Commit
f321827a
authored
Apr 28, 2020
by
Mahëd Benzerga
Browse files
Autocomplete en mode dropdown
parent
fcc6b4cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
components/base/Autocomplete.vue
View file @
f321827a
<
template
>
<div
class=
"autocomplete"
>
<label>
<span
class=
"is-text is-semi-bold"
>
{{
label
?
label
:
placeholder
}}
</span>
<text-field
class=
"is-fullwidth is-mb-05"
:placeholder=
"placeholder"
v-model=
"filterInput"
></text-field>
</label>
<b-dropdown
v-model=
"selected"
aria-role=
"list"
ref=
"dropdown"
mobile-modal=
"false"
>
<b-dropdown
v-model=
"selected"
aria-role=
"list"
ref=
"dropdown"
:mobile-modal=
"false"
>
<template
slot=
"trigger"
>
<label>
<span
class=
"is-text is-semi-bold"
>
{{
label
?
label
:
placeholder
}}
</span>
<text-field
class=
"is-fullwidth is-mb-05"
:placeholder=
"placeholder"
v-model=
"filterInput"
></text-field>
</label>
</
template
>
<
template
v-if=
"!items.length && !selected"
>
<b-dropdown-item>
Aucun résultat
...
...
components/platform/PlatformAccess.vue
View file @
f321827a
...
...
@@ -50,9 +50,9 @@ export default {
},
computed
:
{
filteredAcademies
()
{
return
this
.
academies
.
filter
((
academie
)
=>
{
return
this
.
input
!==
''
?
this
.
academies
.
filter
((
academie
)
=>
{
return
academie
.
name
.
toLowerCase
().
indexOf
(
this
.
input
.
toLowerCase
())
!==
-
1
})
})
:
this
.
academies
},
isShown
:
{
get
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment