ListBox height sandbox (android)
Attempt to manipulate listbox after creation
by Chris99
HTML
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<script src="http://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.android.css">
<script src="https://getfirebug.com/releases/lite/latest/firebug-lite.js"></script>
<div id='jqxListBox'></div>
<div id="log"></div>
CSS
.approvalListBoxContent { width:100%; white-space:normal;}
.approvalListBoxContent .vendorName { font-weight: bold; }
.approvalListBoxContent .iconTableCell { width: 20px; vertical-align: top; }
.approvalListBoxContent .listIcon { width: 20px; height: 20px; background-repeat: no-repeat; }
.approvalListBoxContent .listIconNotOverdue { width: 18px; height: 18px; margin: 1px; background-color: #77bb22; }
.approvalListBoxContent .listIconNearlyOverdue { width: 18px; height: 18px; margin: 1px; background-color: #bb7722; }
.approvalListBoxContent .listIconOverdue { width: 18px; height: 18px; margin: 1px; background-color: #bb2222; }
.approvalListBoxContent .listIconUrgent { width: 18px; height: 18px; margin: 1px; background-color: cyan; }
.approvalListBoxContent .listIconOnHold { width: 18px; height: 18px; margin: 1px; background-color: peachpuff; }
JavaScript
function generateInvoiceHeaderData() {
var data =
[
{
id: 1, documenttype:"Invoice", invoicenumber: "INV108855", invoicedate: new Date(2015, 1, 11), vendornumber: "WIL109004", vendorname: "Williams Electronic", goodsamount: 100.0, taxamount: 17.5, totalamount: 117.5, currency: "GBP",
priority: 1, overdue: 1, onhold: false, unread: false
},
{
id: 2, documenttype: "Invoice", invoicenumber: "INV835792", invoicedate: new Date(2015, 1, 7), vendornumber: "HAR109022", vendorname: "Harris Acquisitions Limited", goodsamount: 250, taxamount: 43.75, totalamount: 293.75, currency: "GBP",
priority: 2, overdue: -1, onhold: false, unread: false, authorisers: [{ id: 1, name: "Anthony Freeman" }]
},
{
id: 3, documenttype: "Invoice", invoicenumber: "INV926524", invoicedate: new Date(2014, 11, 17), vendornumber: "HUG109030", vendorname: "Hughes Instrumentation", goodsamount: 350, taxamount: 61.25, totalamount: 411.25, currency: "EUR",
priority: 3, overdue: -3, onhold: true, unread: true
},
{
id: 4, documenttype: "Invoice", invoicenumber: "INV644522", invoicedate: new Date(2014, 12, 3), vendornumber: "HAR109035", vendorname: "Harrison Trading Ltd", goodsamount: 550, taxamount: 96.25, totalamount: 646.25, currency: "USD",
priority: 1, overdue: 3, onhold: false, unread: true
},
{
id: 5, documenttype: "Invoice", invoicenumber: "INV744565", invoicedate: new Date(2014, 11, 14), vendornumber: "SCO109036", vendorname: "Scott Printing Limited", goodsamount: 1350, taxamount: 236.25, totalamount: 1586.25, currency: "GBP",
priority: 8, overdue: -1.5, onhold: false, unread: true, authorisers: [{ id: 1, name: "John Smith" }, { id: 2, name: "Zoe Barker" }]
},
{
id: 6, documenttype: "Invoice", invoicenumber: "INV835267", invoicedate: new Date(2014, 12, 21), vendornumber: "TUR109041", vendorname: "Turner Printing Limited", goodsamount: 257.5, taxamount: 45.06, totalamount: 302.56, currency: "EUR",
priority: 1,...