<!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>Data:</td>
<td>
<div id="dataInput" style="width:70%" ></div>
</td>
<td>
<input id="setButton" type="button" value="Set" style="width:50px; float: left;" />
</td>
</tr>
<tr>
<td>Encoding Mode:</td>
<td>
<div class="comboContainer">
<select id="encodingMode">
<option value="undefined">Undefined</option>
<option value="numeric">Numeric</option>
<option value="alphanumeric">Alphanumeric</option>
<option value="byte" selected="selected">Byte</option>
<option value="anji">Kanji</option>
</select>
</div>
</td>
</tr>
<tr>
<td>Eci Header Display Mode:</td>
<td>
<div class="comboContainer">
<select id="eciHeaderDisplayMode">
<option value="hide" selected="selected">Hide</option>
<option value="show">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);
}
}
});
});