-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui5-select): selection, styling and playground sample (#4)
- Loading branch information
Showing
6 changed files
with
195 additions
and
18 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
119 changes: 119 additions & 0 deletions
119
packages/main/test/sap/ui/webcomponents/main/samples/Select.sample.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<title><ui5-select></title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta charset="utf-8"> | ||
|
||
<link rel="stylesheet" href="../../../../../../www/home/core.css"> | ||
|
||
<script src="../../../../../../test-resources/playground/libs/google-code-prettify/prettify.js"></script> | ||
<link href="../../../../../../test-resources/playground/libs/google-code-prettify/sunburst.css" type="text/css" rel="stylesheet"> | ||
|
||
<link href="../../../../../../test-resources/playground/css/api.css" type="text/css" rel="stylesheet"> | ||
|
||
<script data-id="sap-ui-config" type="application/json"> | ||
{ | ||
"theme": "sap_fiori_3", | ||
"language": "EN" | ||
} | ||
</script> | ||
|
||
<script src="../../../../../../resources/sap/ui/webcomponents/main/bundle.esm.js" | ||
type="module" | ||
> | ||
</script> | ||
|
||
<script nomodule src="../../../../../../resources/sap/ui/webcomponents/main/bundle.es5.js"> | ||
</script> | ||
|
||
<style> | ||
.select { | ||
width:300px; | ||
margin: 0.5rem; | ||
} | ||
</style> | ||
</head> | ||
<body class="sapUiBody example-wrapper"> | ||
|
||
<header> | ||
<h2 class="control-header">Select</h2> | ||
<div style="margin-bottom: 2rem; font-weight: 300; font-size: 1.1rem; color: #666666;"><ui5-select></div> | ||
</header> | ||
|
||
<section> | ||
<h3>Basic Input</h3> | ||
<div class="snippet"> | ||
<ui5-select class="select"> | ||
<ui5-li icon="sap-icon://iphone" type="Active">Phone</ui5-li> | ||
<ui5-li icon="sap-icon://ipad" type="Active">Tablet</ui5-li> | ||
<ui5-li icon="sap-icon://laptop" type="Active" selected>Desktop</ui5-li> | ||
</ui5-select> | ||
<ui5-select disabled class="select"> | ||
<ui5-li icon="sap-icon://iphone" type="Active" selected>Phone</ui5-li> | ||
<ui5-li icon="sap-icon://ipad" type="Active">Tablet</ui5-li> | ||
<ui5-li icon="sap-icon://laptop" type="Active">Desktop</ui5-li> | ||
</ui5-select> | ||
</div> | ||
<pre class="prettyprint lang-html"><xmp> | ||
<ui5-select class="select"> | ||
<ui5-li icon="sap-icon://iphone" type="Active">Phone</ui5-li> | ||
<ui5-li icon="sap-icon://ipad" type="Active">Tablet</ui5-li> | ||
<ui5-li icon="sap-icon://laptop" type="Active" selected>Desktop</ui5-li> | ||
</ui5-select> | ||
<ui5-select disabled class="select"> | ||
<ui5-li icon="sap-icon://iphone" type="Active" selected>Phone</ui5-li> | ||
<ui5-li icon="sap-icon://ipad" type="Active">Tablet</ui5-li> | ||
<ui5-li icon="sap-icon://laptop" type="Active">Desktop</ui5-li> | ||
</ui5-select> | ||
</xmp></pre> | ||
</section> | ||
|
||
<section> | ||
<h3>Select with Value State</h3> | ||
<div class="snippet"> | ||
<ui5-select value-state="Success" class="select"> | ||
<ui5-li icon="sap-icon://meal" type="Active" selected>Apple</ui5-li> | ||
<ui5-li icon="sap-icon://meal" type="Active">Avocado</ui5-li> | ||
<ui5-li icon="sap-icon://meal" type="Active">Mango</ui5-li> | ||
</ui5-select> | ||
<ui5-select value-state="Warning" class="select"> | ||
<ui5-li icon="sap-icon://meal" type="Active">Orange</ui5-li> | ||
<ui5-li icon="sap-icon://meal" type="Active" selected>Pumpkin</ui5-li> | ||
<ui5-li icon="sap-icon://meal" type="Active">Carrot</ui5-li> | ||
</ui5-select> | ||
<ui5-select value-state="Error" class="select"> | ||
<ui5-li icon="sap-icon://meal" type="Active">Strawberry</ui5-li> | ||
<ui5-li icon="sap-icon://meal" type="Active">Tomato</ui5-li> | ||
<ui5-li icon="sap-icon://meal" type="Active" selected>Red Chili Pepper</ui5-li> | ||
</ui5-select> | ||
</div> | ||
<pre class="prettyprint lang-html"><xmp> | ||
<ui5-select value-state="Success" class="select"> | ||
<ui5-li icon="sap-icon://meal" type="Active" selected>Apple</ui5-li> | ||
<ui5-li icon="sap-icon://meal" type="Active">Avocado</ui5-li> | ||
<ui5-li icon="sap-icon://meal" type="Active">Mango</ui5-li> | ||
</ui5-select> | ||
<ui5-select value-state="Warning" class="select"> | ||
<ui5-li icon="sap-icon://meal" type="Active">Orange</ui5-li> | ||
<ui5-li icon="sap-icon://meal" type="Active" selected>Pumpkin</ui5-li> | ||
<ui5-li icon="sap-icon://meal" type="Active">Carrot</ui5-li> | ||
</ui5-select> | ||
<ui5-select value-state="Error" class="select"> | ||
<ui5-li icon="sap-icon://meal" type="Active">Strawberry</ui5-li> | ||
<ui5-li icon="sap-icon://meal" type="Active">Tomato</ui5-li> | ||
<ui5-li icon="sap-icon://meal" type="Active" selected>Red Chili Pepper</ui5-li> | ||
</ui5-select> | ||
</xmp></pre> | ||
</section> | ||
|
||
<script> | ||
window.prettyPrint(); | ||
</script> | ||
|
||
<script defer src="../../../../../../www/samples/settings.js"></script> | ||
</body> | ||
|
||
</html> |