-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
117 changed files
with
1,135 additions
and
830 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>PCUI GridView</title> | ||
<meta charset="utf-8"> | ||
<style> | ||
body { | ||
background-color: #364346; | ||
} | ||
|
||
.font-regular, .font-bold, .font-thin, .font-light { | ||
font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; | ||
} | ||
|
||
.icon-info > .pcui-label { | ||
font-size: 16px; | ||
line-height: 2; | ||
} | ||
|
||
.pcui-gridview-item-text::before { | ||
font-family: pc-icon; | ||
content: attr(data-before); | ||
padding-right: 10px; | ||
} | ||
</style> | ||
<script async src="https://unpkg.com/es-module-shims/dist/es-module-shims.js"></script> | ||
<script type="importmap"> | ||
{ | ||
"imports": { | ||
"@playcanvas/pcui": "https://cdn.skypack.dev/@playcanvas/pcui", | ||
"@playcanvas/pcui/styles": "https://cdn.skypack.dev/@playcanvas/pcui/styles" | ||
} | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
<script type="module"> | ||
import { GridView, GridViewItem } from '@playcanvas/pcui'; | ||
import '@playcanvas/pcui/styles' | ||
|
||
const gridView = new GridView({ | ||
multiSelect: false | ||
}); | ||
|
||
const ranges = [ | ||
[ 111, 392 ], | ||
[ 394, 415 ], | ||
[ 421, 426 ], | ||
[ 430, 439 ] | ||
]; | ||
|
||
for (const range of ranges) { | ||
for (let i = range[0]; i <= range[1]; i++) { | ||
const item = new GridViewItem({ | ||
class: 'icon-info', | ||
text: `E${i}` | ||
}); | ||
|
||
const span = item.dom.childNodes[0]; | ||
const icon = String.fromCodePoint(parseInt(`E${i}`, 16)); | ||
span.setAttribute('data-before', icon); | ||
|
||
gridView.append(item); | ||
} | ||
} | ||
|
||
document.body.appendChild(gridView.dom); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.