Feb
MAR
Apr
16
2020
2021
2022
About this capture
T h e W a y b a c k M a c h i n e - h t t p : / / w e b . a r c h i v e . o r g / w e b / 2 0 2 1 0 3 1 6 1 7 2 6 3 8 / h t t p s : / / g i t h u b . c o m / g i t h u b / a u t o - c o m p l e t e - e l e m e n t
S k i p t o c o n t e n t
S i g n up
S i g n up
●
F e a t u r e s →
● M o b i l e →
● A c t i o n s →
● C o d e s p a c e s →
● P a c k a g e s →
● S e c u r i t y →
● C o d e r e v i e w →
● P r o j e c t m a n a g e m e n t →
● I n t e g r a t i o n s →
● G i t H u b S p o n s o r s →
● C u s t o m e r s t o r i e s →
●
●
●
● E x p l o r e G i t H u b →
L e a r n a n d c o n t r i b u t e
● T o p i c s →
● C o l l e c t i o n s →
● T r e n d i n g →
● L e a r n i n g L a b →
● O p e n s o u r c e g u i d e s →
C o n n e c t w i t h o t h e r s
● T h e R e a d M E P r o j e c t →
● E v e n t s →
● C o m m u n i t y f o r u m →
● G i t H u b E d u c a t i o n →
● G i t H u b S t a r s p r o g r a m →
●
●
P l a n s →
● C o m p a r e p l a n s →
● C o n t a c t S a l e s →
● E d u c a t i o n →
In this repository
All GitHub
↵
Jump to
↵
No suggested jump to results
{ { m e s s a g e } }
●
N o t i f i c a t i o n s
●
S t a r
2 1 2
●
F o r k
53
A u t o - c o m p l e t e i n p u t v a l u e s f r o m s e r v e r s e a r c h r e s u l t s .
g i t h u b . g i t h u b . c o m / a u t o - c o m p l e t e - e l e m e n t / e x a m p l e s /
M I T L i c e n s e
2 1 2
s t a r s
53
f o r k s
S t a r
N o t i f i c a t i o n s
●
C o d e
●
I s s u e s
1
●
P u l l r e q u e s t s
0
●
A c t i o n s
●
S e c u r i t y
●
I n s i g h t s
M o r e
●
C o d e
●
I s s u e s
●
P u l l r e q u e s t s
●
A c t i o n s
●
S e c u r i t y
●
I n s i g h t s
N o t h i n g t o s h o w
r a n c h e s
N o t h i n g t o s h o w
1
b r a n c h
28
t a g s
G o t o f i l e
C o d e
C l o n e
U s e G i t o r c h e c k o u t w i t h S V N u s i n g t h e w e b U R L .
W o r k f a s t w i t h o u r o f f i c i a l C L I .
L e a r n m o r e .
●
O p e n w i t h G i t H u b D e s k t o p
●
D o w n l o a d Z I P
L a u n c h i n g G i t H u b D e s k t o p
I f n o t h i n g h a p p e n s , d o w n l o a d G i t H u b D e s k t o p a n d t r y a g a i n .
G o b a c k
L a u n c h i n g G i t H u b D e s k t o p
I f n o t h i n g h a p p e n s , d o w n l o a d G i t H u b D e s k t o p a n d t r y a g a i n .
G o b a c k
L a u n c h i n g X c o d e
I f n o t h i n g h a p p e n s , d o w n l o a d X c o d e a n d t r y a g a i n .
G o b a c k
L a u n c h i n g V i s u a l S t u d i o
I f n o t h i n g h a p p e n s , d o w n l o a d t h e G i t H u b e x t e n s i o n f o r V i s u a l S t u d i o a n d t r y a g a i n .
G o b a c k
L a t e s t c o m m i t
k o d d s s o n
M e r g e p u l l r e q u e s t # 4 4 f r o m g i t h u b / d e p e n d a b o t / n p m _ a n d _ y a r n / l o d a s h - 4 . 1 …
…
5 2 9 9 d 4 9
J u l 1 6 , 2 0 2 0
M e r g e p u l l r e q u e s t # 4 4 f r o m g i t h u b / d e p e n d a b o t / n p m _ a n d _ y a r n / l o d a s h - 4 . 1 …
…7.19
Bump lodash from 4.17.15 to 4.17.19
5 2 9 9 d 4 9
G i t s t a t s
●
1 9 7
c o m m i t s
F i l e s
P e r m a l i n k
F a i l e d t o l o a d l a t e s t c o m m i t i n f o r m a t i o n .
T y p e
N a m e
L a t e s t c o m m i t m e s s a g e
C o m m i t t i m e
. g i t h u b / w o r k f l o w s
S i m p l i f y w o r k f l o w s
J u n 4 , 2 0 2 0
e x a m p l e s
R e n a m e b r o w s e r . j s t o b u n d l e . j s
A p r 3 0 , 2 0 2 0
s r c
A d d r e t u r n t y p e d e f s =
J u n 4 , 2 0 2 0
t e s t
C o n v e r t t o T y p e S c r i p t
M a y 2 0 , 2 0 2 0
. e s l i n t r c . j s o n
U p g r a d e e s l i n t c o n f i g
J u n 4 , 2 0 2 0
. g i t i g n o r e
e l e m e n t " c l a s s = " L i n k - - s e c o n d a r y " h r e f = " / w e b / 2 0 2 1 0 3 1 6 1 7 2 6 3 8 / h t t p s : / / g i t h u b . c o m / g i t h u b / a u t o - c o m p l e t e - e l e m e n t / c o m m i t / 6 9 6 7 5 a 0 f b 2 9 4 a 5 f d 1 0 a 8 6 4 1 2 e 5 f 1 7 2 b 4 e a 5 4 3 7 0 5 " > I n i t i a l < a u t o - c o m p l e t e > e l e m e n t
A p r 1 1 , 2 0 1 8
C O D E O W N E R S
C r e a t e C O D E O W N E R S
M a r 1 0 , 2 0 2 0
L I C E N S E
e l e m e n t " c l a s s = " L i n k - - s e c o n d a r y " h r e f = " / w e b / 2 0 2 1 0 3 1 6 1 7 2 6 3 8 / h t t p s : / / g i t h u b . c o m / g i t h u b / a u t o - c o m p l e t e - e l e m e n t / c o m m i t / 6 9 6 7 5 a 0 f b 2 9 4 a 5 f d 1 0 a 8 6 4 1 2 e 5 f 1 7 2 b 4 e a 5 4 3 7 0 5 " > I n i t i a l < a u t o - c o m p l e t e > e l e m e n t
A p r 1 1 , 2 0 1 8
R E A D M E . m d
R e n a m e b r o w s e r . j s t o b u n d l e . j s
A p r 3 0 , 2 0 2 0
p a c k a g e - l o c k . j s o n
" c l a s s = " L i n k - - s e c o n d a r y " h r e f = " / w e b / 2 0 2 1 0 3 1 6 1 7 2 6 3 8 / h t t p s : / / g i t h u b . c o m / g i t h u b / a u t o - c o m p l e t e - e l e m e n t / c o m m i t / b 4 2 3 b 8 b d b e 1 b 2 5 a f 8 4 9 2 a c 5 c 7 7 7 3 8 6 a 6 3 c a 3 9 e 8 1 " > B u m p l o d a s h f r o m 4 . 1 7 . 1 5 t o 4 . 1 7 . 1 9
J u l 1 6 , 2 0 2 0
p a c k a g e . j s o n
3 . 0 . 2
J u n 4 , 2 0 2 0
r o l l u p . c o n f i g . j s
C o n v e r t t o T y p e S c r i p t
M a y 2 0 , 2 0 2 0
t s c o n f i g . j s o n
C o n v e r t t o T y p e S c r i p t
M a y 2 0 , 2 0 2 0
V i e w c o d e
R E A D M E . m d
< a u t o - c o m p l e t e > e l e m e n t
A u t o - c o m p l e t e i n p u t v a l u e s f r o m s e r v e r s e a r c h r e s u l t s .
I n s t a l l a t i o n
$ npm install --save @github/auto-complete-element
U s a g e
S c r i p t
I m p o r t a s E S m o d u l e s :
import '@github/auto-complete-element'
W i t h a s c r i p t t a g :
< script type ="module " src ="./node_modules/@github/auto-complete-element/dist/bundle.js ">
M a r k u p
< auto-complete src ="/users/search " for ="users-popup ">
< input type ="text ">
< ul id ="users-popup "> </ ul >
</ auto-complete >
T h e s e r v e r r e s p o n s e s h o u l d i n c l u d e t h e i t e m s t h a t m a t c h e d t h e s e a r c h q u e r y .
< li role ="option "> Hubot</ li >
< li role ="option "> Bender</ li >
< li role ="option "> BB-8</ li >
< li role ="option " aria-disabled ="true "> R2-D2 (powered down)</ li >
T h e d a t a - a u t o c o m p l e t e - v a l u e a t t r i b u t e c a n b e u s e d t o d e f i n e t h e v a l u e f o r a n
i t e m w h o s e d i s p l a y t e x t n e e d s t o b e d i f f e r e n t :
< li role ="option " data-autocomplete-value ="bb8 "> BB-8 (astromech)</ li >
A t t r i b u t e s
● o p e n i s t r u e w h e n t h e a u t o - c o m p l e t e r e s u l t l i s t i s v i s i b l e
● v a l u e i s t h e s e l e c t e d v a l u e f r o m t h e l i s t o r t h e e m p t y s t r i n g w h e n c l e a r e d
E v e n t s
N e t w o r k r e q u e s t l i f e c y c l e e v e n t s
R e q u e s t l i f e c y c l e e v e n t s a r e d i s p a t c h e d o n t h e < a u t o - c o m p l e t e > e l e m e n t . T h e s e e v e n t s d o n o t b u b b l e .
● l o a d s t a r t - T h e s e r v e r f e t c h h a s s t a r t e d .
● l o a d - T h e n e t w o r k r e q u e s t c o m p l e t e d s u c c e s s f u l l y .
● e r r o r - T h e n e t w o r k r e q u e s t f a i l e d .
● l o a d e n d - T h e n e t w o r k r e q u e s t h a s c o m p l e t e d .
N e t w o r k e v e n t s a r e u s e f u l f o r d i s p l a y i n g p r o g r e s s s t a t e s w h i l e t h e r e q u e s t i s i n - f l i g h t .
const completer = document . querySelector ( 'auto-complete' )
const container = completer . parentElement
completer . addEventListener ( 'loadstart' , ( ) => container . classList . add ( 'is-loading' ) )
completer . addEventListener ( 'loadend' , ( ) => container . classList . remove ( 'is-loading' ) )
completer . addEventListener ( 'load' , ( ) => container . classList . add ( 'is-success' ) )
completer . addEventListener ( 'error' , ( ) => container . classList . add ( 'is-error' ) )
A u t o - c o m p l e t e e v e n t s
a u t o - c o m p l e t e - c h a n g e i s d i s p a t c h e d a f t e r a v a l u e i s s e l e c t e d . I n e v e n t . d e t a i l y o u c a n f i n d :
● r e l a t e d T a r g e t : T h e H T M L I n p u t E l e m e n t c o n t r o l l i n g t h e a u t o - c o m p l e t e r e s u l t l i s t .
completer . addEventListener ( 'auto-complete-change' , function ( event ) {
console . log ( 'Auto-completed value chosen or cleared' , completer . value )
console . log ( 'Related input element' , event . relatedTarget )
} )
B r o w s e r s u p p o r t
B r o w s e r s w i t h o u t n a t i v e c u s t o m e l e m e n t s u p p o r t r e q u i r e a p o l y f i l l .
● C h r o m e
● F i r e f o x
● S a f a r i
● M i c r o s o f t E d g e
D e v e l o p m e n t
npm install
npm test
L i c e n s e
D i s t r i b u t e d u n d e r t h e M I T l i c e n s e . S e e L I C E N S E f o r d e t a i l s .
A b o u t
A u t o - c o m p l e t e i n p u t v a l u e s f r o m s e r v e r s e a r c h r e s u l t s .
g i t h u b . g i t h u b . c o m / a u t o - c o m p l e t e - e l e m e n t / e x a m p l e s /
T o p i c s
w e b - c o m p o n e n t s
c u s t o m - e l e m e n t s
R e s o u r c e s
R e a d m e
L i c e n s e
M I T L i c e n s e
v 3 . 0 . 2
L a t e s t
J u n 4 , 2 0 2 0
+ 2 7 r e l e a s e s
L a n g u a g e s
●
J a v a S c r i p t
5 0 . 2 %
●
T y p e S c r i p t
4 9 . 8 %
● © 2 0 2 1 G i t H u b , I n c .
● T e r m s
● P r i v a c y
● S e c u r i t y
● S t a t u s
● D o c s
● C o n t a c t G i t H u b
● P r i c i n g
● A P I
● T r a i n i n g
● B l o g
● A b o u t
Y o u c a n ’ t p e r f o r m t h a t a c t i o n a t t h i s t i m e .
Y o u s i g n e d i n w i t h a n o t h e r t a b o r w i n d o w . R e l o a d t o r e f r e s h y o u r s e s s i o n .
Y o u s i g n e d o u t i n a n o t h e r t a b o r w i n d o w . R e l o a d t o r e f r e s h y o u r s e s s i o n .