3 <h1>Chart Picker Testpage</h1>
8 All charts: [% L.chart_picker('chart_id', '', style="width: 400px") %]text after icon<br>
9 Only booked charts: [% L.chart_picker('chart_id_booked', '', booked=1, style="width: 400px") %]<br>
10 All charts choose: [% L.chart_picker('chart_id_choose', '', choose=1, style="width: 400px") %]<br>
15 AR_paid: [% L.chart_picker('chart_id_ar_paid', undef, type='AR_paid', category='I,A' style="width: 400px") %]<br>
16 AR: [% L.chart_picker('chart_id_ar', undef, type='AR', style="width: 400px") %]<br>
17 AP: [% L.chart_picker('chart_id_ap', undef, type='AP', style="width: 400px") %]<br>
18 AR or AP: [% L.chart_picker('chart_id_arap', undef, type='AR,AP', style="width: 400px") %]<br>
19 IC_income,IC_sale: [% L.chart_picker('chart_id_icis', undef, type='IC_income,IC_sale', style="width: 400px") %]<br>
20 IC_expense,IC_cogs: [% L.chart_picker('chart_id_icco', undef, type='IC_expense,IC_cogs', style="width: 400px") %]<br>
24 Filter by category:<br>
25 I: [% L.chart_picker('chart_id_i', undef, category='I', style="width: 400px") %]<br>
26 IE: [% L.chart_picker('chart_id_ie', undef, category='I,E', style="width: 400px") %]<br>
27 AQL: [% L.chart_picker('chart_id_aql', undef, category='A,Q,L', style="width: 400px") %]<br>
31 Filter by special type:<br>
32 GuV: [% L.chart_picker('chart_id_guv', undef, type='guv', style="width: 400px") %]<br>
35 <p>bank (fat): [% L.chart_picker('bank_id', '', type='bank', fat_set_item=1, choose=1, style="width: 400px") %]
41 [% FOREACH i IN [ 1 2 3 4 5 6 ] %]
42 S [% i %]: [% L.chart_picker('credit_' _ i) %] - H [% i %]: [% L.chart_picker('debit' _ i) %] <br>
48 <script type='text/javascript'>
50 // do something when a chartpicker with fat_set_item and a certain id changes
51 $('#bank_id').on('set_item:ChartPicker', function (e, item) {
53 $('#banktext').html('Selected fat item with category ' + item.category);