[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 /* 2 YUI 3.17.2 (build 9c3c78e) 3 Copyright 2014 Yahoo! Inc. All rights reserved. 4 Licensed under the BSD License. 5 http://yuilibrary.com/license/ 6 */ 7 8 YUI.add('datatable-paginator-templates', function (Y, NAME) { 9 10 var engine = new Y.Template(), 11 12 /* 13 { 14 wrapperClass, 15 numOfCols 16 } 17 */ 18 rowWrapper = '<tr><td class="<%= this.wrapperClass %>" colspan="' + 19 '<%= this.numOfCols %>"/></tr>', 20 21 /* 22 { 23 classNames: {} 24 } 25 */ 26 content = '<%= buttons %><%= this.classNames.gotoPage %>' + 27 '<%= this.classNames.perPage %>', 28 29 /* 30 { 31 classNames: {}, 32 type, 33 label 34 } 35 */ 36 button = '<button class="<%= this.classNames.control %> ' + 37 '<%= this.classNames.control %>-<%= this.type %>" ' + 38 'data-type="<%= this.type %>"><%= this.label %></button>', 39 40 /* 41 { 42 classNames, 43 buttons: [ 44 { type, label } 45 ] 46 } 47 */ 48 buttons = '<div class="<%= this.classNames.controls %> <%= this.classNames.group %>">' + 49 '<%== this.buttons %>' + 50 '</div>', 51 52 /* 53 { 54 classNames, 55 strings, 56 page 57 } 58 */ 59 gotoPage = '<form action="#" class="<%= this.classNames.group %>">' + 60 '<label><%= this.strings.goToLabel %>' + 61 '<input type="text" value="<%= this.page %>">' + 62 '<button><%= this.strings.goToAction %></button>' + 63 '</label>' + 64 '</form>', 65 66 /* 67 { 68 classNames, 69 strings, 70 options 71 } 72 */ 73 perPage = '<div class="<%= this.classNames.group %> <%= this.classNames.perPage %>">' + 74 '<label><%= this.strings.perPage %> <select>' + 75 '<% Y.Array.each(this.options, function (option, i) { %>' + 76 '<option value="<%= option.value %>" <%= option.selected %>>' + 77 '<%= option.label %></option>'+ 78 '<% }); %>' + 79 '</select></label></div>'; 80 81 82 83 84 Y.namespace('DataTable.Templates').Paginator = { 85 rowWrapper: engine.compile(rowWrapper), 86 button: engine.compile(button), 87 content: engine.compile(content), 88 buttons: engine.compile(buttons), 89 gotoPage: engine.compile(gotoPage), 90 perPage: engine.compile(perPage) 91 }; 92 93 94 }, '3.17.2', {"requires": ["template"]});
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |