Created
May 1, 2024 03:08
-
-
Save naosim/4abc8b3d79c216c3319b842f31e5a849 to your computer and use it in GitHub Desktop.
gridjsサンプル
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<link | |
href="https://unpkg.com/gridjs/dist/theme/mermaid.min.css" | |
rel="stylesheet" | |
/> | |
</head> | |
<body> | |
<div id="wrapper"></div> | |
<script src="https://unpkg.com/gridjs/dist/gridjs.umd.js"></script> | |
<script> | |
new gridjs.Grid({ | |
columns: ["Name", "Email", "Phone Number"], | |
data: [ | |
["John", "[email protected]", "(353) 01 222 3333"], | |
["Mark", "[email protected]", "(01) 22 888 4444"], | |
["Eoin", "[email protected]", "0097 22 654 00033"], | |
["Sarah", "[email protected]", "+322 876 1233"], | |
["Afshin", "[email protected]", "(353) 22 87 8356"] | |
] | |
}).render(document.getElementById("wrapper")); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment