<!DOCTYPE html>
<html>
<head>
<title></title>
<!-- Ignite UI for jQuery Required Combined CSS Files -->
<link href="http://cdn-na.infragistics.com/igniteui/2024.1/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" />
<link href="http://cdn-na.infragistics.com/igniteui/2024.1/latest/css/structure/infragistics.css" rel="stylesheet" />
<script src="http://ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.8.3.js"></script>
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="http://code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script>
<!-- Ignite UI for jQuery Required Combined JavaScript Files -->
<script src="http://cdn-na.infragistics.com/igniteui/2024.1/latest/js/infragistics.core.js"></script>
<script src="http://cdn-na.infragistics.com/igniteui/2024.1/latest/js/modules/encoding/infragistics.encoding.core.js"></script>
<script src="http://cdn-na.infragistics.com/igniteui/2024.1/latest/js/infragistics.dv.js"></script>
<script src="http://cdn-na.infragistics.com/igniteui/2024.1/latest/js/infragistics.lob.js"></script>
</head>
<body>
<div id="barcode"></div>
<table class="options">
<tr>
<td>データ:</td>
<td>
<div id="dataInput" style="width:70%" ></div>
</td>
<td>
<input id="setButton" type="button" value="適用" style="width:50px; float: left;" />
</td>
</tr>
<tr>
<td>エンコード モード:</td>
<td>
<div class="comboContainer">
<select id="encodingMode">
<option value="undefined">未定義</option>
<option value="numeric">数字</option>
<option value="alphanumeric">英数字</option>
<option value="byte" selected="selected">Byte</option>
<option value="anji">漢字</option>
</select>
</div>
</td>
</tr>
<tr>
<td>ECI ヘッダーの表示モード:</td>
<td>
<div class="comboContainer">
<select id="eciHeaderDisplayMode">
<option value="hide" selected="selected">非表示</option>
<option value="show">表示</option>
</select>
</div>
</td>
</tr>
</table>
<script src="/TypeScriptSamples/barcode/typescript.js"></script>
</body>
</html>
/// <reference path="/js/typings/jquery.d.ts" />
/// <reference path="/js/typings/jqueryui.d.ts" />
/// <reference path="/js/typings/igniteui.d.ts" />
$(function () {
$("#barcode").igQRCodeBarcode({
height: "300px",
width: "100%",
data: "http://www.infragistics.com/products/jquery/samples",
});
$("#dataInput").igTextEditor({
width: "300px",
value: "http://www.infragistics.com/products/jquery/help"
});
$("#setButton").click(function () {
$("#barcode").igQRCodeBarcode("option", "data", $("#dataInput").igTextEditor("value"));
});
$("#encodingMode").igCombo({
enableClearButton: false,
mode: "dropdown",
selectionChanged: function (evt, ui) {
if ($.isArray(ui.items) && ui.items[0] != undefined) {
$("#barcode").igQRCodeBarcode("option", "encodingMode", ui.items[0].data.value);
}
}
});
$("#eciHeaderDisplayMode").igCombo({
enableClearButton: false,
mode: "dropdown",
selectionChanged: function (evt, ui) {
if ($.isArray(ui.items) && ui.items[0] != undefined) {
$("#barcode").igQRCodeBarcode("option", "eciHeaderDisplayMode", ui.items[0].data.value);
}
}
});
});