Created
May 16, 2014 21:22
-
-
Save JanMiksovsky/204ab7fe217d9f9b54bf to your computer and use it in GitHub Desktop.
Web components example: text-input-with-button
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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="bower_components/platform/platform.js"></script> | |
<link rel="import" href="text-input-with-button.html"> | |
<script> | |
document.addEventListener( "go", function( event ) { | |
alert( event.detail ); | |
}); | |
</script> | |
<style> | |
text-input-with-button::shadow * { | |
border-radius: 5px; | |
} | |
</style> | |
</head> | |
<body> | |
<text-input-with-button value="Hello"></text-input-with-button> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment