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