This repository has been archived by the owner on Feb 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
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
8 changed files
with
152 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | ||
<meta name="viewport" | ||
content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/> | ||
<meta name="apple-mobile-web-app-capable" content="yes"/> | ||
|
||
<title>deliteful Buttons sample</title> | ||
|
||
<script type="text/javascript" src="../../requirejs/require.js"></script> | ||
|
||
<script type="text/javascript"> | ||
require.config({ | ||
baseUrl: "../..", | ||
config: { | ||
"requirejs-dplugins/has": { | ||
"bidi": true | ||
} | ||
} | ||
}); | ||
</script> | ||
|
||
<script type="text/javascript"> | ||
require(["deliteful-build/boot"], function(){ | ||
require([ | ||
"delite/register", | ||
"deliteful/CheckBox", | ||
"deliteful/Switch", | ||
"deliteful/ToggleButton", | ||
"deliteful/RadioButton", | ||
"requirejs-domready/domReady!" | ||
], function (register) { | ||
register.parse(); | ||
}); | ||
|
||
|
||
}); | ||
</script> | ||
<style> | ||
.d-icon-cut { | ||
background-image: url('../tests/images/paste.gif'); /* Contains both object and action icons in a sprite image for the enabled state. */ | ||
width: 16px; | ||
height: 16px; | ||
background-repeat: no-repeat; | ||
} | ||
.d-icon-copy { | ||
background-image: url('../tests/images/copy.gif'); /* Contains both object and action icons in a sprite image for the enabled state. */ | ||
width: 16px; | ||
height: 16px; | ||
background-repeat: no-repeat; | ||
} | ||
p { | ||
line-height: 1.7em; | ||
} | ||
d-switch { | ||
margin-left: 3px; | ||
margin-right: 3px; | ||
} | ||
.buttonPanel { | ||
width: 50%; | ||
} | ||
|
||
</style> | ||
</head> | ||
<body dir="ltr"> | ||
<div style="display:flex"> | ||
<fieldset class="buttonPanel"> | ||
<legend>Wrapped in label</legend> | ||
<p><label><d-radio-button checked="true" name="radio"></d-radio-button>Choice 1</label></p> | ||
<p><label><d-radio-button name="radio"></d-radio-button>Choice 2</label></p> | ||
<p><label><d-radio-button disabled="true" name="radio"></d-radio-button>Choice 3</label></p> | ||
<p><label><d-checkbox id="cb1"></d-checkbox>Option 1</label></p> | ||
<p><label><d-checkbox id="cb2" disabled checked="true"></d-checkbox>Option 2</label></p> | ||
<p><label>Option 3<d-switch id="sw1"></d-switch></label></p> | ||
<p><label>Option 4<d-switch id="sw2" checked="true" checkedLabel="ON" uncheckedLabel="OFF"></d-switch></label></p> | ||
</fieldset> | ||
<fieldset class="buttonPanel"> | ||
<legend>Using label for=</legend> | ||
<p><d-radio-button name="radio2" id="rb2" checked="true"></d-radio-button><label for="rb2">Choice 1</label></p> | ||
<p><d-radio-button name="radio2" id="rb3"></d-radio-button><label for="rb3">Choice 2</label></p> | ||
<p><d-radio-button disabled="true" name="radio2" id="rb4"></d-radio-button><label for="rb4">Choice 3</label></p> | ||
<p><d-checkbox id="cb3"></d-checkbox><label for="cb3">Option 1</label></p> | ||
<p><d-checkbox id="cb4" disabled checked="true"></d-checkbox><label for="cb4">Option 2</label></p> | ||
<p><d-switch id="sw3"></d-switch><label for="sw3">Option 3</label></p> | ||
<p><d-switch id="sw4" checked="true" checkedLabel="ON" uncheckedLabel="OFF"></d-switch><label for="sw4">option 4</label></p> | ||
</fieldset> | ||
</div> | ||
<fieldset> | ||
<legend>Toggle Buttons</legend> | ||
<button is="d-toggle-button" checkedLabel="On">Off</button> | ||
<button is="d-toggle-button" checked="true">Toggle</button> | ||
<button is="d-toggle-button" checkedLabel="On" checkedIconClass="d-icon-cut" iconClass="d-icon-copy">Off</button> | ||
<button is="d-toggle-button" checked="true" checkedIconClass="d-icon-cut" iconClass="d-icon-copy"></button> | ||
</fieldset> | ||
|
||
</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
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
Large diffs are not rendered by default.
Oops, something went wrong.