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"
43 "desc" : "Text for the tooltip",
44 "memberOf" : "Roo.bootstrap.Component"
47 "name" : "container_method",
49 "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)",
50 "memberOf" : "Roo.bootstrap.Component"
53 "name" : "visibilityEl",
54 "type" : "string|object",
55 "desc" : "t) What element to use for visibility (@see getVisibilityEl())",
56 "memberOf" : "Roo.bootstrap.Component"
59 "name" : "errorTimeout",
61 "desc" : "default 3000",
62 "memberOf" : "Roo.bootstrap.UploadCropbox"
67 "desc" : "default ['rotateLeft', 'pictureBtn', 'rotateRight']",
68 "memberOf" : "Roo.bootstrap.UploadCropbox"
71 "name" : "can_build_overlaid",
73 "desc" : "True if element can be rebuild from a HTML page",
74 "memberOf" : "Roo.bootstrap.Component"
79 "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\".",
80 "memberOf" : "Roo.Component"
85 "desc" : "show when image has been loaded",
86 "memberOf" : "Roo.bootstrap.UploadCropbox"
91 "desc" : "default 300",
92 "memberOf" : "Roo.bootstrap.UploadCropbox"
97 "desc" : "default POST",
98 "memberOf" : "Roo.bootstrap.UploadCropbox"
103 "desc" : "any extra css",
104 "memberOf" : "Roo.bootstrap.Component"
107 "name" : "allowDomMove",
109 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
110 "memberOf" : "Roo.Component"
113 "name" : "paramName",
115 "desc" : "default 'imageUpload'",
116 "memberOf" : "Roo.bootstrap.UploadCropbox"
121 "desc" : "css class",
122 "memberOf" : "Roo.bootstrap.Component"
125 "name" : "minHeight",
127 "desc" : "default 300",
128 "memberOf" : "Roo.bootstrap.UploadCropbox"
131 "name" : "isDocument",
133 "desc" : "e) default false",
134 "memberOf" : "Roo.bootstrap.UploadCropbox"
139 "desc" : "e) default true",
140 "memberOf" : "Roo.bootstrap.UploadCropbox"
145 "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)",
146 "memberOf" : "Roo.bootstrap.Component"
149 "name" : "actionMode",
151 "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",
152 "memberOf" : "Roo.Component"
157 "desc" : "cutomer id",
158 "memberOf" : "Roo.bootstrap.Component"
161 "name" : "rotateNotify",
163 "desc" : "show when image too small to rotate",
164 "memberOf" : "Roo.bootstrap.UploadCropbox"
169 "desc" : "action url",
170 "memberOf" : "Roo.bootstrap.UploadCropbox"
175 "desc" : "Specifies name attribute",
176 "memberOf" : "Roo.bootstrap.Component"
179 "name" : "disableClass",
181 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
182 "memberOf" : "Roo.Component"
185 "name" : "loadingText",
187 "desc" : "default 'Loading...'",
188 "memberOf" : "Roo.bootstrap.UploadCropbox"
193 "name" : "tooltipEl",
195 "desc" : "Fetch the element to display the tooltip on.",
196 "sig" : "()\n{\n\n}",
198 "memberOf" : "Roo.bootstrap.Component",
200 "isConstructor" : false,
212 "type" : "Roo.Element",
213 "desc" : "defaults to this.el"
220 "desc" : "Hide a component - adds 'hidden' class",
221 "sig" : "()\n{\n\n}",
223 "memberOf" : "Roo.bootstrap.Component",
225 "isConstructor" : false,
239 "desc" : "Show a component - removes 'hidden' class",
240 "sig" : "()\n{\n\n}",
242 "memberOf" : "Roo.bootstrap.Component",
244 "isConstructor" : false,
256 "name" : "setVisibilityEl",
258 "desc" : "Set the element that will be used to show or hide",
259 "sig" : "()\n{\n\n}",
261 "memberOf" : "Roo.bootstrap.Component",
263 "isConstructor" : false,
275 "name" : "getVisibilityEl",
277 "desc" : "Get the element that will be used to show or hide",
278 "sig" : "()\n{\n\n}",
280 "memberOf" : "Roo.bootstrap.Component",
282 "isConstructor" : false,
294 "name" : "initEvents",
296 "desc" : "Initialize Events for the element",
297 "sig" : "()\n{\n\n}",
299 "memberOf" : "Roo.bootstrap.Component",
301 "isConstructor" : false,
313 "name" : "getChildContainer",
315 "desc" : "Fetch the element to add children to",
316 "sig" : "()\n{\n\n}",
318 "memberOf" : "Roo.bootstrap.Component",
320 "isConstructor" : false,
332 "type" : "Roo.Element",
333 "desc" : "defaults to this.el"
340 "desc" : "Returns the id of this component.",
341 "sig" : "()\n{\n\n}",
343 "memberOf" : "Roo.Component",
345 "isConstructor" : false,
365 "desc" : "If this is a lazy rendering component, render it to its container element.",
366 "sig" : "(container)",
368 "memberOf" : "Roo.Component",
370 "isConstructor" : false,
380 "name" : "container",
381 "type" : "String/HTMLElement/Element",
382 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
391 "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}.",
392 "sig" : "()\n{\n\n}",
394 "memberOf" : "Roo.Component",
396 "isConstructor" : false,
408 "name" : "isVisible",
410 "desc" : "Returns true if this component is visible.",
411 "sig" : "()\n{\n\n}",
413 "memberOf" : "Roo.Component",
415 "isConstructor" : false,
427 "name" : "setDisabled",
429 "desc" : "Convenience function for setting disabled/enabled by boolean.",
430 "sig" : "(disabled)",
432 "memberOf" : "Roo.Component",
434 "isConstructor" : false,
455 "desc" : "Try to focus this component.",
456 "sig" : "(selectText)",
458 "memberOf" : "Roo.Component",
460 "isConstructor" : false,
470 "name" : "selectText",
472 "desc" : "True to also select the text in this component (if applicable)",
479 "type" : "Roo.Component",
487 "desc" : "Enable this component.",
488 "sig" : "()\n{\n\n}",
490 "memberOf" : "Roo.Component",
492 "isConstructor" : false,
504 "type" : "Roo.Component",
510 "name" : "setVisible",
512 "desc" : "Convenience function to hide or show this component by boolean.",
515 "memberOf" : "Roo.Component",
517 "isConstructor" : false,
529 "desc" : "True to show, false to hide",
536 "type" : "Roo.Component",
544 "desc" : "Disable this component.",
545 "sig" : "()\n{\n\n}",
547 "memberOf" : "Roo.Component",
549 "isConstructor" : false,
561 "type" : "Roo.Component",
569 "desc" : "Returns the underlying {@link Roo.Element}.",
570 "sig" : "()\n{\n\n}",
572 "memberOf" : "Roo.Component",
574 "isConstructor" : false,
586 "type" : "Roo.Element",
587 "desc" : "The element"
592 "name" : "purgeListeners",
594 "desc" : "Removes all listeners for this object",
595 "sig" : "()\n{\n\n}",
597 "memberOf" : "Roo.util.Observable",
599 "isConstructor" : false,
613 "desc" : "Appends an event handler to this element (shorthand for addListener)",
614 "sig" : "(eventName, handler, scope, options)",
616 "memberOf" : "Roo.util.Observable",
618 "isConstructor" : false,
628 "name" : "eventName",
630 "desc" : "The type of event to listen for",
636 "desc" : "The method the event invokes",
642 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
648 "desc" : "(optional)",
657 "desc" : "Removes a listener (shorthand for removeListener)",
658 "sig" : "(eventName, handler, scope)",
660 "memberOf" : "Roo.util.Observable",
662 "isConstructor" : false,
672 "name" : "eventName",
674 "desc" : "The type of event to listen for",
680 "desc" : "The handler to remove",
686 "desc" : "(optional) The scope (this object) for the handler",
693 "name" : "addEvents",
695 "desc" : "Used to define events on this Observable",
698 "memberOf" : "Roo.util.Observable",
700 "isConstructor" : false,
712 "desc" : "The object with the events defined",
719 "name" : "releaseCapture",
721 "desc" : "Removes <b>all</b> added captures from the Observable.",
724 "memberOf" : "Roo.util.Observable",
726 "isConstructor" : false,
737 "type" : "Observable",
738 "desc" : "The Observable to release",
745 "name" : "removeListener",
747 "desc" : "Removes a listener",
748 "sig" : "(eventName, handler, scope)",
750 "memberOf" : "Roo.util.Observable",
752 "isConstructor" : false,
762 "name" : "eventName",
764 "desc" : "The type of event to listen for",
770 "desc" : "The handler to remove",
776 "desc" : "(optional) The scope (this object) for the handler",
783 "name" : "fireEvent",
785 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
786 "sig" : "(eventName, args)",
788 "memberOf" : "Roo.util.Observable",
790 "isConstructor" : false,
800 "name" : "eventName",
807 "type" : "Object...",
808 "desc" : "Variable number of parameters are passed to handlers",
816 "desc" : "returns false if any of the handlers return false otherwise it returns true"
821 "name" : "hasListener",
823 "desc" : "Checks to see if this object has any listeners for a specified event",
824 "sig" : "(eventName)",
826 "memberOf" : "Roo.util.Observable",
828 "isConstructor" : false,
838 "name" : "eventName",
840 "desc" : "The name of the event to check for",
848 "desc" : "True if the event is being listened for, else false"
855 "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.",
856 "sig" : "(o, fn, scope)",
858 "memberOf" : "Roo.util.Observable",
860 "isConstructor" : false,
871 "type" : "Observable",
872 "desc" : "The Observable to capture",
878 "desc" : "The function to call",
884 "desc" : "(optional) The scope (this object) for the fn",
891 "name" : "addListener",
893 "desc" : "Appends an event handler to this component",
894 "sig" : "(eventName, handler, scope, options)",
896 "memberOf" : "Roo.util.Observable",
898 "isConstructor" : false,
908 "name" : "eventName",
910 "desc" : "The type of event to listen for",
916 "desc" : "The method the event invokes",
922 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
928 "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>",
939 "desc" : "Fire when arrange the file data",
940 "sig" : "function (_self, formData)\n{\n\n}",
949 "type" : "Roo.bootstrap.UploadCropbox",
965 "desc" : "Fire when inspect the file",
966 "sig" : "function (_self, file)\n{\n\n}",
975 "type" : "Roo.bootstrap.UploadCropbox",
991 "desc" : "Fire after initEvent",
992 "sig" : "function (_self, data)\n{\n\n}",
1001 "type" : "Roo.bootstrap.UploadCropbox",
1003 "isOptional" : false
1009 "isOptional" : false
1016 "type" : "function",
1017 "desc" : "Fire when xhr upload the file",
1018 "sig" : "function (_self, data)\n{\n\n}",
1027 "type" : "Roo.bootstrap.UploadCropbox",
1029 "isOptional" : false
1035 "isOptional" : false
1042 "type" : "function",
1043 "desc" : "Fire after initEvent",
1044 "sig" : "function (_self)\n{\n\n}",
1053 "type" : "Roo.bootstrap.UploadCropbox",
1055 "isOptional" : false
1062 "type" : "function",
1063 "desc" : "Fire when resize",
1064 "sig" : "function (_self)\n{\n\n}",
1073 "type" : "Roo.bootstrap.UploadCropbox",
1075 "isOptional" : false
1082 "type" : "function",
1083 "desc" : "Fire when rotate the image",
1084 "sig" : "function (_self, pos)\n{\n\n}",
1093 "type" : "Roo.bootstrap.UploadCropbox",
1095 "isOptional" : false
1101 "isOptional" : false
1108 "type" : "function",
1109 "desc" : "Fire when preparing the file data",
1110 "sig" : "function (_self, file)\n{\n\n}",
1119 "type" : "Roo.bootstrap.UploadCropbox",
1121 "isOptional" : false
1127 "isOptional" : false
1133 "name" : "beforeloadcanvas",
1134 "type" : "function",
1135 "desc" : "Fire before load the canvas",
1136 "sig" : "function (_self, src)\n{\n\n}",
1145 "type" : "Roo.bootstrap.UploadCropbox",
1147 "isOptional" : false
1153 "isOptional" : false
1160 "type" : "function",
1161 "desc" : "Fire when trash image",
1162 "sig" : "function (_self)\n{\n\n}",
1171 "type" : "Roo.bootstrap.UploadCropbox",
1173 "isOptional" : false
1179 "name" : "beforeselectfile",
1180 "type" : "function",
1181 "desc" : "Fire before select file",
1182 "sig" : "function (_self)\n{\n\n}",
1191 "type" : "Roo.bootstrap.UploadCropbox",
1193 "isOptional" : false
1199 "name" : "footerbuttonclick",
1200 "type" : "function",
1201 "desc" : "Fire when footerbuttonclick",
1202 "sig" : "function (_self, type)\n{\n\n}",
1211 "type" : "Roo.bootstrap.UploadCropbox",
1213 "isOptional" : false
1219 "isOptional" : false
1225 "name" : "exception",
1226 "type" : "function",
1227 "desc" : "Fire when get exception",
1228 "sig" : "function (_self, xhr)\n{\n\n}",
1237 "type" : "Roo.bootstrap.UploadCropbox",
1239 "isOptional" : false
1243 "type" : "XMLHttpRequest",
1245 "isOptional" : false
1251 "name" : "download",
1252 "type" : "function",
1253 "desc" : "Fire when download the image",
1254 "sig" : "function (_self)\n{\n\n}",
1263 "type" : "Roo.bootstrap.UploadCropbox",
1265 "isOptional" : false
1271 "name" : "childrenrendered",
1272 "type" : "function",
1273 "desc" : "Fires when the children have been rendered..",
1274 "sig" : "function (_self)\n{\n\n}",
1275 "memberOf" : "Roo.bootstrap.Component",
1283 "type" : "Roo.bootstrap.Component",
1285 "isOptional" : false
1291 "name" : "beforerender",
1292 "type" : "function",
1293 "desc" : "Fires before the component is rendered. Return false to stop the render.",
1294 "sig" : "function (_self)\n{\n\n}",
1295 "memberOf" : "Roo.Component",
1303 "type" : "Roo.Component",
1305 "isOptional" : false
1312 "type" : "function",
1313 "desc" : "Fires after the component is disabled.",
1314 "sig" : "function (_self)\n{\n\n}",
1315 "memberOf" : "Roo.Component",
1323 "type" : "Roo.Component",
1325 "isOptional" : false
1332 "type" : "function",
1333 "desc" : "Fires after the component is rendered.",
1334 "sig" : "function (_self)\n{\n\n}",
1335 "memberOf" : "Roo.Component",
1343 "type" : "Roo.Component",
1345 "isOptional" : false
1352 "type" : "function",
1353 "desc" : "Fires after the component is destroyed.",
1354 "sig" : "function (_self)\n{\n\n}",
1355 "memberOf" : "Roo.Component",
1363 "type" : "Roo.Component",
1365 "isOptional" : false
1372 "type" : "function",
1373 "desc" : "Fires after the component is hidden.",
1374 "sig" : "function (_self)\n{\n\n}",
1375 "memberOf" : "Roo.Component",
1383 "type" : "Roo.Component",
1385 "isOptional" : false
1391 "name" : "beforehide",
1392 "type" : "function",
1393 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1394 "sig" : "function (_self)\n{\n\n}",
1395 "memberOf" : "Roo.Component",
1403 "type" : "Roo.Component",
1405 "isOptional" : false
1412 "type" : "function",
1413 "desc" : "Fires after the component is shown.",
1414 "sig" : "function (_self)\n{\n\n}",
1415 "memberOf" : "Roo.Component",
1423 "type" : "Roo.Component",
1425 "isOptional" : false
1431 "name" : "beforeshow",
1432 "type" : "function",
1433 "desc" : "Fires before the component is shown. Return false to stop the show.",
1434 "sig" : "function (_self)\n{\n\n}",
1435 "memberOf" : "Roo.Component",
1443 "type" : "Roo.Component",
1445 "isOptional" : false
1452 "type" : "function",
1453 "desc" : "Fires after the component is enabled.",
1454 "sig" : "function (_self)\n{\n\n}",
1455 "memberOf" : "Roo.Component",
1463 "type" : "Roo.Component",
1465 "isOptional" : false
1471 "name" : "beforedestroy",
1472 "type" : "function",
1473 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1474 "sig" : "function (_self)\n{\n\n}",
1475 "memberOf" : "Roo.Component",
1483 "type" : "Roo.Component",
1485 "isOptional" : false