vsts-extension-samples/data-storage/settings.html

67 строки
1.9 KiB
HTML
Исходник Обычный вид История

2016-02-25 08:21:54 +03:00
<!DOCTYPE html>
<html>
<head>
<title>Data storage service sample</title>
<script src="lib/VSS.SDK.min.js"></script>
2016-02-25 23:47:33 +03:00
<link rel="stylesheet" href="css/main.css" />
2016-02-25 08:21:54 +03:00
</head>
<body>
<script type="text/javascript">
// Initialize the VSS SDK
VSS.init({
usePlatformScripts: true,
2016-02-25 23:47:33 +03:00
moduleLoaderConfig: {
paths: {
"dataStorage": "scripts"
2016-02-25 23:47:33 +03:00
}
}
2016-02-25 08:21:54 +03:00
});
// Wait for the SDK to be initialized
VSS.ready(function () {
2016-02-25 23:47:33 +03:00
require(["dataStorage/settings"], function () { });
2016-02-25 08:21:54 +03:00
VSS.notifyLoadSucceeded();
});
</script>
<div id="vss-extension">
<div class="user">
<div class="bool">
<label>Boolean Value</label>
<input class="booleanValue" type="checkbox" />
</div>
<div class="number">
<label>Integer Value</label>
<input class="numberValue" />
</div>
<div class="obj">
<label>Object Value 1</label>
<input class="objectValue1" />
<label>Object Value 2</label>
<input class="objectValue2" />
</div>
</div>
<div class="default">
<div class="bool">
<label>Boolean Value</label>
<input class="booleanValue" type="checkbox" />
</div>
<div class="number">
<label>Integer Value</label>
<input class="numberValue" />
</div>
<div class="obj">
<label>Object Value 1</label>
<input class="objectValue1" />
<label>Object Value 2</label>
<input class="objectValue2" />
</div>
</div>
<br />
<button class="saveButton">Save Settings</button>
</div>
</body>
</html>