mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
chore(): update e2e tests
* chore(): update e2e tests * chore(): back to ion-page * fix(): generate component def * chore(): fix missed tests * fix(): indent * fix(): indent * fix(): indent * fix(): indent * fix(): add closing icon tag
This commit is contained in:
@ -1,11 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html dir="ltr">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Segment - Basic</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<script src="/dist/ionic.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<ion-app>
|
||||
<ion-page>
|
||||
@ -87,31 +89,32 @@
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var dynamicAttrDisable = document.getElementById('dynamicAttrDisable');
|
||||
var dynamicPropDisable = document.getElementById('dynamicPropDisable');
|
||||
var dynamicAttrDisable = document.getElementById('dynamicAttrDisable');
|
||||
var dynamicPropDisable = document.getElementById('dynamicPropDisable');
|
||||
|
||||
function toggleDisabled() {
|
||||
const attrIsDisabled = dynamicAttrDisable.getAttribute('disabled') === 'true' ? false : true;
|
||||
const propIsDisabled = dynamicPropDisable.disabled === true ? false : true;
|
||||
dynamicAttrDisable.setAttribute('disabled', attrIsDisabled);
|
||||
dynamicPropDisable.disabled = propIsDisabled;
|
||||
}
|
||||
|
||||
function toggleValue() {
|
||||
var dynamicAttrElem = document.getElementById('dynamicAttrElem');
|
||||
var dynamicAttrValue = dynamicAttrElem.getAttribute('value');
|
||||
|
||||
if (dynamicAttrValue === 'active') {
|
||||
dynamicAttrElem.setAttribute('value', 'inactive');
|
||||
} else if (dynamicAttrValue === 'inactive') {
|
||||
dynamicAttrElem.setAttribute('value', 'disabled');
|
||||
} else {
|
||||
dynamicAttrElem.setAttribute('value', 'active');
|
||||
}
|
||||
function toggleDisabled() {
|
||||
const attrIsDisabled = dynamicAttrDisable.getAttribute('disabled') === 'true' ? false : true;
|
||||
const propIsDisabled = dynamicPropDisable.disabled === true ? false : true;
|
||||
dynamicAttrDisable.setAttribute('disabled', attrIsDisabled);
|
||||
dynamicPropDisable.disabled = propIsDisabled;
|
||||
}
|
||||
|
||||
function toggleValue() {
|
||||
var dynamicAttrElem = document.getElementById('dynamicAttrElem');
|
||||
var dynamicAttrValue = dynamicAttrElem.getAttribute('value');
|
||||
|
||||
if (dynamicAttrValue === 'active') {
|
||||
dynamicAttrElem.setAttribute('value', 'inactive');
|
||||
} else if (dynamicAttrValue === 'inactive') {
|
||||
dynamicAttrElem.setAttribute('value', 'disabled');
|
||||
} else {
|
||||
dynamicAttrElem.setAttribute('value', 'active');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</ion-content>
|
||||
</ion-page>
|
||||
</ion-app>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user