2 "name" : "Roo.bootstrap.UploadCropbox",
4 "Roo.bootstrap.Component",
11 "desc" : "Bootstrap UploadCropbox class",
12 "isSingleton" : false,
16 "isBuilderTop" : false,
17 "memberOf" : "UploadCropbox",
26 "desc" : "The config object",
37 "desc" : "list of events and functions to call for this object, \nFor example :\n<pre><code>\n listeners : { \n 'click' : function(e) {\n ..... \n } ,\n .... \n } \n </code></pre>",
38 "memberOf" : "Roo.util.Observable",
45 "desc" : "Text for the tooltip",
46 "memberOf" : "Roo.bootstrap.Component",
51 "name" : "container_method",
53 "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)",
54 "memberOf" : "Roo.bootstrap.Component",
59 "name" : "visibilityEl",
60 "type" : "string|object",
61 "desc" : "t) What element to use for visibility (@see getVisibilityEl(",
62 "memberOf" : "Roo.bootstrap.Component",
70 "name" : "errorTimeout",
72 "desc" : "default 3000",
80 "desc" : "default ['rotateLeft', 'pictureBtn', 'rotateRight']",
86 "name" : "can_build_overlaid",
88 "desc" : "True if element can be rebuild from a HTML page",
89 "memberOf" : "Roo.bootstrap.Component",
96 "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display",
97 "memberOf" : "Roo.Component",
105 "name" : "emptyText",
107 "desc" : "show when image has been loaded",
109 "isOptional" : false,
115 "desc" : "default 300",
117 "isOptional" : false,
123 "desc" : "default POST",
125 "isOptional" : false,
131 "desc" : "any extra css",
132 "memberOf" : "Roo.bootstrap.Component",
133 "isOptional" : false,
137 "name" : "allowDomMove",
139 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
140 "memberOf" : "Roo.Component",
141 "isOptional" : false,
145 "name" : "paramName",
147 "desc" : "default 'imageUpload'",
149 "isOptional" : false,
155 "desc" : "css class",
156 "memberOf" : "Roo.bootstrap.Component",
157 "isOptional" : false,
161 "name" : "minHeight",
163 "desc" : "default 300",
165 "isOptional" : false,
169 "name" : "isDocument",
171 "desc" : "e) default fal",
173 "isOptional" : false,
182 "desc" : "e) default tr",
184 "isOptional" : false,
193 "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)",
194 "memberOf" : "Roo.bootstrap.Component",
195 "isOptional" : false,
199 "name" : "actionMode",
201 "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl",
202 "memberOf" : "Roo.Component",
203 "isOptional" : false,
209 "desc" : "cutomer id",
210 "memberOf" : "Roo.bootstrap.Component",
211 "isOptional" : false,
215 "name" : "rotateNotify",
217 "desc" : "show when image too small to rotate",
219 "isOptional" : false,
225 "desc" : "action url",
227 "isOptional" : false,
233 "desc" : "Specifies name attribute",
234 "memberOf" : "Roo.bootstrap.Component",
235 "isOptional" : false,
239 "name" : "disableClass",
241 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
242 "memberOf" : "Roo.Component",
243 "isOptional" : false,
247 "name" : "loadingText",
249 "desc" : "default 'Loading...'",
251 "isOptional" : false,
257 "name" : "tooltipEl",
259 "desc" : "Fetch the element to display the tooltip on.",
260 "sig" : "()\n{\n\n}",
262 "memberOf" : "Roo.bootstrap.Component",
264 "isConstructor" : false,
276 "type" : "Roo.Element",
277 "desc" : "defaults to this.el"
284 "desc" : "Hide a component - adds 'hidden' class",
285 "sig" : "()\n{\n\n}",
287 "memberOf" : "Roo.bootstrap.Component",
289 "isConstructor" : false,
303 "desc" : "Show a component - removes 'hidden' class",
304 "sig" : "()\n{\n\n}",
306 "memberOf" : "Roo.bootstrap.Component",
308 "isConstructor" : false,
320 "name" : "setVisibilityEl",
322 "desc" : "Set the element that will be used to show or hide",
323 "sig" : "()\n{\n\n}",
325 "memberOf" : "Roo.bootstrap.Component",
327 "isConstructor" : false,
339 "name" : "getVisibilityEl",
341 "desc" : "Get the element that will be used to show or hide",
342 "sig" : "()\n{\n\n}",
344 "memberOf" : "Roo.bootstrap.Component",
346 "isConstructor" : false,
358 "name" : "initEvents",
360 "desc" : "Initialize Events for the element",
361 "sig" : "()\n{\n\n}",
363 "memberOf" : "Roo.bootstrap.Component",
365 "isConstructor" : false,
377 "name" : "getChildContainer",
379 "desc" : "Fetch the element to add children to",
380 "sig" : "()\n{\n\n}",
382 "memberOf" : "Roo.bootstrap.Component",
384 "isConstructor" : false,
396 "type" : "Roo.Element",
397 "desc" : "defaults to this.el"
404 "desc" : "Returns the id of this component.",
405 "sig" : "()\n{\n\n}",
407 "memberOf" : "Roo.Component",
409 "isConstructor" : false,
429 "desc" : "If this is a lazy rendering component, render it to its container element.",
430 "sig" : "(container)",
432 "memberOf" : "Roo.Component",
434 "isConstructor" : false,
444 "name" : "container",
445 "type" : "String/HTMLElement/Element",
446 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
455 "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.",
456 "sig" : "()\n{\n\n}",
458 "memberOf" : "Roo.Component",
460 "isConstructor" : false,
472 "name" : "isVisible",
474 "desc" : "Returns true if this component is visible.",
475 "sig" : "()\n{\n\n}",
477 "memberOf" : "Roo.Component",
479 "isConstructor" : false,
491 "name" : "setDisabled",
493 "desc" : "Convenience function for setting disabled/enabled by boolean.",
494 "sig" : "(disabled)",
496 "memberOf" : "Roo.Component",
498 "isConstructor" : false,
519 "desc" : "Try to focus this component.",
520 "sig" : "(selectText)",
522 "memberOf" : "Roo.Component",
524 "isConstructor" : false,
534 "name" : "selectText",
536 "desc" : "True to also select the text in this component (if applicable)",
543 "type" : "Roo.Component",
551 "desc" : "Enable this component.",
552 "sig" : "()\n{\n\n}",
554 "memberOf" : "Roo.Component",
556 "isConstructor" : false,
568 "type" : "Roo.Component",
574 "name" : "setVisible",
576 "desc" : "Convenience function to hide or show this component by boolean.",
579 "memberOf" : "Roo.Component",
581 "isConstructor" : false,
593 "desc" : "True to show, false to hide",
600 "type" : "Roo.Component",
608 "desc" : "Disable this component.",
609 "sig" : "()\n{\n\n}",
611 "memberOf" : "Roo.Component",
613 "isConstructor" : false,
625 "type" : "Roo.Component",
633 "desc" : "Returns the underlying {@link Roo.Element}.",
634 "sig" : "()\n{\n\n}",
636 "memberOf" : "Roo.Component",
638 "isConstructor" : false,
650 "type" : "Roo.Element",
651 "desc" : "The element"
656 "name" : "purgeListeners",
658 "desc" : "Removes all listeners for this object",
659 "sig" : "()\n{\n\n}",
661 "memberOf" : "Roo.util.Observable",
663 "isConstructor" : false,
677 "desc" : "Appends an event handler to this element (shorthand for addListener)",
678 "sig" : "(eventName, handler, scope, options)",
680 "memberOf" : "Roo.util.Observable",
682 "isConstructor" : false,
692 "name" : "eventName",
694 "desc" : "The type of event to listen for",
700 "desc" : "The method the event invokes",
706 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
712 "desc" : "(optional)",
721 "desc" : "Removes a listener (shorthand for removeListener)",
722 "sig" : "(eventName, handler, scope)",
724 "memberOf" : "Roo.util.Observable",
726 "isConstructor" : false,
736 "name" : "eventName",
738 "desc" : "The type of event to listen for",
744 "desc" : "The handler to remove",
750 "desc" : "(optional) The scope (this object) for the handler",
757 "name" : "addEvents",
759 "desc" : "Used to define events on this Observable",
762 "memberOf" : "Roo.util.Observable",
764 "isConstructor" : false,
776 "desc" : "The object with the events defined",
783 "name" : "releaseCapture",
785 "desc" : "Removes <b>all</b> added captures from the Observable.",
788 "memberOf" : "Roo.util.Observable",
790 "isConstructor" : false,
801 "type" : "Observable",
802 "desc" : "The Observable to release",
809 "name" : "removeListener",
811 "desc" : "Removes a listener",
812 "sig" : "(eventName, handler, scope)",
814 "memberOf" : "Roo.util.Observable",
816 "isConstructor" : false,
826 "name" : "eventName",
828 "desc" : "The type of event to listen for",
834 "desc" : "The handler to remove",
840 "desc" : "(optional) The scope (this object) for the handler",
847 "name" : "fireEvent",
849 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
850 "sig" : "(eventName, args)",
852 "memberOf" : "Roo.util.Observable",
854 "isConstructor" : false,
864 "name" : "eventName",
871 "type" : "Object...",
872 "desc" : "Variable number of parameters are passed to handlers",
880 "desc" : "returns false if any of the handlers return false otherwise it returns true"
885 "name" : "hasListener",
887 "desc" : "Checks to see if this object has any listeners for a specified event",
888 "sig" : "(eventName)",
890 "memberOf" : "Roo.util.Observable",
892 "isConstructor" : false,
902 "name" : "eventName",
904 "desc" : "The name of the event to check for",
912 "desc" : "True if the event is being listened for, else false"
919 "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\n<b>before</b> the event is fired. If the supplied function returns false,\nthe event will not fire.",
920 "sig" : "(o, fn, scope)",
922 "memberOf" : "Roo.util.Observable",
924 "isConstructor" : false,
935 "type" : "Observable",
936 "desc" : "The Observable to capture",
942 "desc" : "The function to call",
948 "desc" : "(optional) The scope (this object) for the fn",
955 "name" : "addListener",
957 "desc" : "Appends an event handler to this component",
958 "sig" : "(eventName, handler, scope, options)",
960 "memberOf" : "Roo.util.Observable",
962 "isConstructor" : false,
972 "name" : "eventName",
974 "desc" : "The type of event to listen for",
980 "desc" : "The method the event invokes",
986 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
992 "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:<ul>\n<li>scope {Object} The scope in which to execute the handler function. The handler function's \"this\" context.</li>\n<li>delay {Number} The number of milliseconds to delay the invocation of the handler after te event fires.</li>\n<li>single {Boolean} True to add a handler to handle just the next firing of the event, and then remove itself.</li>\n<li>buffer {Number} Causes the handler to be scheduled to run in an {@link Roo.util.DelayedTask} delayed\nby the specified number of milliseconds. If the event fires again within that time, the original\nhandler is <em>not</em> invoked, but the new handler is scheduled in its place.</li>\n</ul><br>\n<p>\n<b>Combining Options</b><br>\nUsing the options argument, it is possible to combine different types of listeners:<br>\n<br>\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t<pre><code>\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n \t\tdelay: 100,\n \t\tforumId: 4\n\t\t});\n\t\t</code></pre>\n<p>\n<b>Attaching multiple handlers in 1 call</b><br>\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n<pre><code>\n\t\tel.on({\n\t\t\t'click': {\n \t\tfn: this.onClick,\n \t\tscope: this,\n \t\tdelay: 100\n \t\t}, \n \t\t'mouseover': {\n \t\tfn: this.onMouseOver,\n \t\tscope: this\n \t\t},\n \t\t'mouseout': {\n \t\tfn: this.onMouseOut,\n \t\tscope: this\n \t\t}\n\t\t});\n\t\t</code></pre>\n<p>\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t<pre><code>\n\t\tel.on({\n\t\t\t'click': this.onClick,\n \t\t'mouseover': this.onMouseOver,\n \t\t'mouseout': this.onMouseOut,\n \t\tscope: this\n\t\t});\n\t\t</code></pre>",
1002 "type" : "function",
1003 "desc" : "Fire when arrange the file data",
1004 "sig" : "function (_self, formData)\n{\n\n}",
1013 "type" : "Roo.bootstrap.UploadCropbox",
1015 "isOptional" : false
1018 "name" : "formData",
1021 "isOptional" : false
1028 "type" : "function",
1029 "desc" : "Fire when inspect the file",
1030 "sig" : "function (_self, file)\n{\n\n}",
1039 "type" : "Roo.bootstrap.UploadCropbox",
1041 "isOptional" : false
1047 "isOptional" : false
1054 "type" : "function",
1055 "desc" : "Fire after initEvent",
1056 "sig" : "function (_self, data)\n{\n\n}",
1065 "type" : "Roo.bootstrap.UploadCropbox",
1067 "isOptional" : false
1073 "isOptional" : false
1080 "type" : "function",
1081 "desc" : "Fire when xhr upload the file",
1082 "sig" : "function (_self, data)\n{\n\n}",
1091 "type" : "Roo.bootstrap.UploadCropbox",
1093 "isOptional" : false
1099 "isOptional" : false
1106 "type" : "function",
1107 "desc" : "Fire after initEvent",
1108 "sig" : "function (_self)\n{\n\n}",
1117 "type" : "Roo.bootstrap.UploadCropbox",
1119 "isOptional" : false
1126 "type" : "function",
1127 "desc" : "Fire when resize",
1128 "sig" : "function (_self)\n{\n\n}",
1137 "type" : "Roo.bootstrap.UploadCropbox",
1139 "isOptional" : false
1146 "type" : "function",
1147 "desc" : "Fire when rotate the image",
1148 "sig" : "function (_self, pos)\n{\n\n}",
1157 "type" : "Roo.bootstrap.UploadCropbox",
1159 "isOptional" : false
1165 "isOptional" : false
1172 "type" : "function",
1173 "desc" : "Fire when preparing the file data",
1174 "sig" : "function (_self, file)\n{\n\n}",
1183 "type" : "Roo.bootstrap.UploadCropbox",
1185 "isOptional" : false
1191 "isOptional" : false
1197 "name" : "beforeloadcanvas",
1198 "type" : "function",
1199 "desc" : "Fire before load the canvas",
1200 "sig" : "function (_self, src)\n{\n\n}",
1209 "type" : "Roo.bootstrap.UploadCropbox",
1211 "isOptional" : false
1217 "isOptional" : false
1224 "type" : "function",
1225 "desc" : "Fire when trash image",
1226 "sig" : "function (_self)\n{\n\n}",
1235 "type" : "Roo.bootstrap.UploadCropbox",
1237 "isOptional" : false
1243 "name" : "beforeselectfile",
1244 "type" : "function",
1245 "desc" : "Fire before select file",
1246 "sig" : "function (_self)\n{\n\n}",
1255 "type" : "Roo.bootstrap.UploadCropbox",
1257 "isOptional" : false
1263 "name" : "footerbuttonclick",
1264 "type" : "function",
1265 "desc" : "Fire when footerbuttonclick",
1266 "sig" : "function (_self, type)\n{\n\n}",
1275 "type" : "Roo.bootstrap.UploadCropbox",
1277 "isOptional" : false
1283 "isOptional" : false
1289 "name" : "exception",
1290 "type" : "function",
1291 "desc" : "Fire when get exception",
1292 "sig" : "function (_self, xhr)\n{\n\n}",
1301 "type" : "Roo.bootstrap.UploadCropbox",
1303 "isOptional" : false
1307 "type" : "XMLHttpRequest",
1309 "isOptional" : false
1315 "name" : "download",
1316 "type" : "function",
1317 "desc" : "Fire when download the image",
1318 "sig" : "function (_self)\n{\n\n}",
1327 "type" : "Roo.bootstrap.UploadCropbox",
1329 "isOptional" : false
1335 "name" : "childrenrendered",
1336 "type" : "function",
1337 "desc" : "Fires when the children have been rendered..",
1338 "sig" : "function (_self)\n{\n\n}",
1339 "memberOf" : "Roo.bootstrap.Component",
1347 "type" : "Roo.bootstrap.Component",
1349 "isOptional" : false
1355 "name" : "beforerender",
1356 "type" : "function",
1357 "desc" : "Fires before the component is rendered. Return false to stop the render.",
1358 "sig" : "function (_self)\n{\n\n}",
1359 "memberOf" : "Roo.Component",
1367 "type" : "Roo.Component",
1369 "isOptional" : false
1376 "type" : "function",
1377 "desc" : "Fires after the component is disabled.",
1378 "sig" : "function (_self)\n{\n\n}",
1379 "memberOf" : "Roo.Component",
1387 "type" : "Roo.Component",
1389 "isOptional" : false
1396 "type" : "function",
1397 "desc" : "Fires after the component is rendered.",
1398 "sig" : "function (_self)\n{\n\n}",
1399 "memberOf" : "Roo.Component",
1407 "type" : "Roo.Component",
1409 "isOptional" : false
1416 "type" : "function",
1417 "desc" : "Fires after the component is destroyed.",
1418 "sig" : "function (_self)\n{\n\n}",
1419 "memberOf" : "Roo.Component",
1427 "type" : "Roo.Component",
1429 "isOptional" : false
1436 "type" : "function",
1437 "desc" : "Fires after the component is hidden.",
1438 "sig" : "function (_self)\n{\n\n}",
1439 "memberOf" : "Roo.Component",
1447 "type" : "Roo.Component",
1449 "isOptional" : false
1455 "name" : "beforehide",
1456 "type" : "function",
1457 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1458 "sig" : "function (_self)\n{\n\n}",
1459 "memberOf" : "Roo.Component",
1467 "type" : "Roo.Component",
1469 "isOptional" : false
1476 "type" : "function",
1477 "desc" : "Fires after the component is shown.",
1478 "sig" : "function (_self)\n{\n\n}",
1479 "memberOf" : "Roo.Component",
1487 "type" : "Roo.Component",
1489 "isOptional" : false
1495 "name" : "beforeshow",
1496 "type" : "function",
1497 "desc" : "Fires before the component is shown. Return false to stop the show.",
1498 "sig" : "function (_self)\n{\n\n}",
1499 "memberOf" : "Roo.Component",
1507 "type" : "Roo.Component",
1509 "isOptional" : false
1516 "type" : "function",
1517 "desc" : "Fires after the component is enabled.",
1518 "sig" : "function (_self)\n{\n\n}",
1519 "memberOf" : "Roo.Component",
1527 "type" : "Roo.Component",
1529 "isOptional" : false
1535 "name" : "beforedestroy",
1536 "type" : "function",
1537 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1538 "sig" : "function (_self)\n{\n\n}",
1539 "memberOf" : "Roo.Component",
1547 "type" : "Roo.Component",
1549 "isOptional" : false