File tree Expand file tree Collapse file tree 7 files changed +171
-221
lines changed Expand file tree Collapse file tree 7 files changed +171
-221
lines changed Original file line number Diff line number Diff line change 1
- Copyright (c) 2018 GitHub, Inc.
1
+ Copyright (c) 2019 GitHub, Inc.
2
2
3
3
Permission is hereby granted, free of charge, to any person obtaining
4
4
a copy of this software and associated documentation files (the
Original file line number Diff line number Diff line change 1
- # < ; custom-element > ; element
1
+ # < ; filterable-input > ; element
2
2
3
3
Boilerplate for creating a custom element.
4
4
5
5
## Installation
6
6
7
7
```
8
- $ npm install @github/custom-element -element
8
+ $ npm install @github/filterable-input -element
9
9
```
10
10
11
11
## Usage
12
12
13
13
``` js
14
- import ' @github/custom-element -element'
14
+ import ' @github/filterable-input -element'
15
15
```
16
16
17
17
``` html
18
- <custom-element ></custom-element >
18
+ <filterable-input ></filterable-input >
19
19
```
20
20
21
21
## Browser support
Original file line number Diff line number Diff line change 2
2
< html lang ="en ">
3
3
< head >
4
4
< meta charset ="utf-8 ">
5
- < title > custom-element demo</ title >
5
+ < title > filterable-input demo</ title >
6
6
</ head >
7
7
< body >
8
- < custom-element > </ custom-element >
9
-
8
+ < filterable-input > </ filterable-input >
9
+
10
10
<!-- GitHub Pages development script, uncomment when running example locally and comment out the production one -->
11
11
<!-- <script src="../dist/index.umd.js"></script> -->
12
-
12
+
13
13
<!-- GitHub Pages demo script -->
14
- < script src ="https://unpkg.com/@github/custom-element-boilerplate @latest/dist/index.umd.js "> </ script > </ body >
14
+ < script src ="https://unpkg.com/@github/filterable-input-element @latest/dist/index.umd.js "> </ script > </ body >
15
15
</ html >
Original file line number Diff line number Diff line change 1
1
/* @flow strict */
2
2
3
- class CustomElementElement extends HTMLElement {
3
+ class FilterableInputElement extends HTMLElement {
4
4
constructor ( ) {
5
5
super ( )
6
6
}
@@ -12,9 +12,9 @@ class CustomElementElement extends HTMLElement {
12
12
disconnectedCallback ( ) { }
13
13
}
14
14
15
- export default CustomElementElement
15
+ export default FilterableInputElement
16
16
17
- if ( ! window . customElements . get ( 'custom-element ' ) ) {
18
- window . CustomElementElement = CustomElementElement
19
- window . customElements . define ( 'custom-element ' , CustomElementElement )
17
+ if ( ! window . customElements . get ( 'filterable-input ' ) ) {
18
+ window . FilterableInputElement = FilterableInputElement
19
+ window . customElements . define ( 'filterable-input ' , FilterableInputElement )
20
20
}
You can’t perform that action at this time.
0 commit comments