2 "name" : "Roo.bootstrap.ButtonUploader",
4 "Roo.bootstrap.Button",
5 "Roo.bootstrap.Component",
9 "desc" : "Bootstrap Button Uploader class - it's a button which when you add files to it",
10 "isSingleton" : false,
13 "memberOf" : "ButtonUploader",
22 "desc" : "The config object",
33 "desc" : "is it a slidy toggle button",
34 "memberOf" : "Roo.bootstrap.Button"
39 "desc" : "dark themed version",
40 "memberOf" : "Roo.bootstrap.Button"
45 "desc" : "text for badge",
46 "memberOf" : "Roo.bootstrap.Button"
51 "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\".",
52 "memberOf" : "Roo.Component"
57 "desc" : "an array of ?? Img objects ??? when loading existing files..",
63 "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)",
64 "memberOf" : "Roo.bootstrap.Component"
69 "desc" : "default false;",
70 "memberOf" : "Roo.bootstrap.Button"
75 "desc" : "Specifies name attribute",
76 "memberOf" : "Roo.bootstrap.Component"
81 "desc" : "k) default",
82 "memberOf" : "Roo.bootstrap.Button"
87 "desc" : "if parent is a btn group - then it turns it into a toogleGroup.",
88 "memberOf" : "Roo.bootstrap.Button"
93 "desc" : "Text for the tooltip",
94 "memberOf" : "Roo.bootstrap.Component"
99 "desc" : "text for on slidy toggle state",
100 "memberOf" : "Roo.bootstrap.Button"
103 "name" : "preventDefault",
105 "desc" : "default true (stop click event triggering the URL if it's a link.)",
106 "memberOf" : "Roo.bootstrap.Button"
112 "memberOf" : "Roo.bootstrap.Button"
117 "desc" : "r) target for a href.",
118 "memberOf" : "Roo.bootstrap.Button"
121 "name" : "glyphicon",
123 "desc" : "depricated - use fa",
124 "memberOf" : "Roo.bootstrap.Button"
127 "name" : "allowDomMove",
129 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
130 "memberOf" : "Roo.Component"
135 "desc" : "any extra css",
136 "memberOf" : "Roo.bootstrap.Component"
141 "desc" : "default false;",
142 "memberOf" : "Roo.bootstrap.Button"
145 "name" : "errorTimeout",
147 "desc" : "default 3000",
151 "name" : "actionMode",
153 "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",
154 "memberOf" : "Roo.Component"
157 "name" : "listeners",
159 "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>",
160 "memberOf" : "Roo.util.Observable"
163 "name" : "container_method",
165 "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)",
166 "memberOf" : "Roo.bootstrap.Component"
171 "desc" : "fontawesome icon - eg. 'comment' - without the fa/fas etc..",
172 "memberOf" : "Roo.bootstrap.Button"
178 "memberOf" : "Roo.bootstrap.Button"
183 "desc" : "css class",
184 "memberOf" : "Roo.bootstrap.Component"
187 "name" : "badge_weight",
189 "desc" : "k) default (same as button)",
190 "memberOf" : "Roo.bootstrap.Button"
193 "name" : "can_build_overlaid",
195 "desc" : "True if element can be rebuild from a HTML page",
196 "memberOf" : "Roo.bootstrap.Component"
199 "name" : "disableClass",
201 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
202 "memberOf" : "Roo.Component"
207 "desc" : "(default true) Should the upload allow multiple files to be uploaded.",
211 "name" : "visibilityEl",
212 "type" : "string|object",
213 "desc" : "t) What element to use for visibility (@see getVisibilityEl())",
214 "memberOf" : "Roo.bootstrap.Component"
219 "desc" : "empty or href",
220 "memberOf" : "Roo.bootstrap.Button"
226 "memberOf" : "Roo.bootstrap.Button"
231 "desc" : "cutomer id",
232 "memberOf" : "Roo.bootstrap.Component"
237 "desc" : "default false (except for weight=default which emulates old behaveiour with an outline)",
238 "memberOf" : "Roo.bootstrap.Button"
243 "desc" : "text for off slidy toggle state",
244 "memberOf" : "Roo.bootstrap.Button"
247 "name" : "removeClass",
249 "desc" : "remove the standard class..",
250 "memberOf" : "Roo.bootstrap.Button"
255 "desc" : "The button text.",
261 "desc" : "default null - if the button ahs active state",
262 "memberOf" : "Roo.bootstrap.Button"
266 "type" : "Roo.bootstrap.menu.Menu",
268 "memberOf" : "Roo.bootstrap.Button"
275 "desc" : "addCard - add an Attachment to the uploader",
280 "isConstructor" : false,
292 "desc" : "- the data about the image to upload\n\n{\n id : 123\n title : \"Title of file\",\n is_uploaded : false,\n src : \"http://.....\",\n srcfile : { the File upload object },\n mimetype : file.type,\n preview : false,\n is_deleted : 0\n .. any other data...\n }",
301 "desc" : "set the text of the first selected button",
302 "sig" : "()\n{\n\n}",
304 "memberOf" : "Roo.bootstrap.Button",
306 "isConstructor" : false,
320 "desc" : "get the current active state",
321 "sig" : "()\n{\n\n}",
323 "memberOf" : "Roo.bootstrap.Button",
325 "isConstructor" : false,
338 "desc" : "true if it's active"
343 "name" : "setActive",
345 "desc" : "sets the active state on/off,",
348 "memberOf" : "Roo.bootstrap.Button",
350 "isConstructor" : false,
362 "desc" : "(optional) Force a particular state",
369 "name" : "toggleActive",
371 "desc" : "toggles the current active state",
372 "sig" : "()\n{\n\n}",
374 "memberOf" : "Roo.bootstrap.Button",
376 "isConstructor" : false,
390 "desc" : "get the text of the first selected button",
391 "sig" : "()\n{\n\n}",
393 "memberOf" : "Roo.bootstrap.Button",
395 "isConstructor" : false,
409 "desc" : "Enables this button",
410 "sig" : "()\n{\n\n}",
412 "memberOf" : "Roo.bootstrap.Button",
414 "isConstructor" : false,
428 "desc" : "Disable this button",
429 "sig" : "()\n{\n\n}",
431 "memberOf" : "Roo.bootstrap.Button",
433 "isConstructor" : false,
445 "name" : "tooltipEl",
447 "desc" : "Fetch the element to display the tooltip on.",
448 "sig" : "()\n{\n\n}",
450 "memberOf" : "Roo.bootstrap.Component",
452 "isConstructor" : false,
464 "type" : "Roo.Element",
465 "desc" : "defaults to this.el"
472 "desc" : "Hide a component - adds 'hidden' class",
473 "sig" : "()\n{\n\n}",
475 "memberOf" : "Roo.bootstrap.Component",
477 "isConstructor" : false,
491 "desc" : "Show a component - removes 'hidden' class",
492 "sig" : "()\n{\n\n}",
494 "memberOf" : "Roo.bootstrap.Component",
496 "isConstructor" : false,
508 "name" : "setVisibilityEl",
510 "desc" : "Set the element that will be used to show or hide",
511 "sig" : "()\n{\n\n}",
513 "memberOf" : "Roo.bootstrap.Component",
515 "isConstructor" : false,
527 "name" : "getVisibilityEl",
529 "desc" : "Get the element that will be used to show or hide",
530 "sig" : "()\n{\n\n}",
532 "memberOf" : "Roo.bootstrap.Component",
534 "isConstructor" : false,
546 "name" : "initEvents",
548 "desc" : "Initialize Events for the element",
549 "sig" : "()\n{\n\n}",
551 "memberOf" : "Roo.bootstrap.Component",
553 "isConstructor" : false,
565 "name" : "getChildContainer",
567 "desc" : "Fetch the element to add children to",
568 "sig" : "()\n{\n\n}",
570 "memberOf" : "Roo.bootstrap.Component",
572 "isConstructor" : false,
584 "type" : "Roo.Element",
585 "desc" : "defaults to this.el"
592 "desc" : "Returns the id of this component.",
593 "sig" : "()\n{\n\n}",
595 "memberOf" : "Roo.Component",
597 "isConstructor" : false,
617 "desc" : "If this is a lazy rendering component, render it to its container element.",
618 "sig" : "(container)",
620 "memberOf" : "Roo.Component",
622 "isConstructor" : false,
632 "name" : "container",
633 "type" : "String/HTMLElement/Element",
634 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
643 "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}.",
644 "sig" : "()\n{\n\n}",
646 "memberOf" : "Roo.Component",
648 "isConstructor" : false,
660 "name" : "isVisible",
662 "desc" : "Returns true if this component is visible.",
663 "sig" : "()\n{\n\n}",
665 "memberOf" : "Roo.Component",
667 "isConstructor" : false,
679 "name" : "setDisabled",
681 "desc" : "Convenience function for setting disabled/enabled by boolean.",
682 "sig" : "(disabled)",
684 "memberOf" : "Roo.Component",
686 "isConstructor" : false,
707 "desc" : "Try to focus this component.",
708 "sig" : "(selectText)",
710 "memberOf" : "Roo.Component",
712 "isConstructor" : false,
722 "name" : "selectText",
724 "desc" : "True to also select the text in this component (if applicable)",
731 "type" : "Roo.Component",
737 "name" : "setVisible",
739 "desc" : "Convenience function to hide or show this component by boolean.",
742 "memberOf" : "Roo.Component",
744 "isConstructor" : false,
756 "desc" : "True to show, false to hide",
763 "type" : "Roo.Component",
771 "desc" : "Returns the underlying {@link Roo.Element}.",
772 "sig" : "()\n{\n\n}",
774 "memberOf" : "Roo.Component",
776 "isConstructor" : false,
788 "type" : "Roo.Element",
789 "desc" : "The element"
794 "name" : "purgeListeners",
796 "desc" : "Removes all listeners for this object",
797 "sig" : "()\n{\n\n}",
799 "memberOf" : "Roo.util.Observable",
801 "isConstructor" : false,
815 "desc" : "Appends an event handler to this element (shorthand for addListener)",
816 "sig" : "(eventName, handler, scope, options)",
818 "memberOf" : "Roo.util.Observable",
820 "isConstructor" : false,
830 "name" : "eventName",
832 "desc" : "The type of event to listen for",
838 "desc" : "The method the event invokes",
844 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
850 "desc" : "(optional)",
859 "desc" : "Removes a listener (shorthand for removeListener)",
860 "sig" : "(eventName, handler, scope)",
862 "memberOf" : "Roo.util.Observable",
864 "isConstructor" : false,
874 "name" : "eventName",
876 "desc" : "The type of event to listen for",
882 "desc" : "The handler to remove",
888 "desc" : "(optional) The scope (this object) for the handler",
895 "name" : "addEvents",
897 "desc" : "Used to define events on this Observable",
900 "memberOf" : "Roo.util.Observable",
902 "isConstructor" : false,
914 "desc" : "The object with the events defined",
921 "name" : "releaseCapture",
923 "desc" : "Removes <b>all</b> added captures from the Observable.",
926 "memberOf" : "Roo.util.Observable",
928 "isConstructor" : false,
939 "type" : "Observable",
940 "desc" : "The Observable to release",
947 "name" : "removeListener",
949 "desc" : "Removes a listener",
950 "sig" : "(eventName, handler, scope)",
952 "memberOf" : "Roo.util.Observable",
954 "isConstructor" : false,
964 "name" : "eventName",
966 "desc" : "The type of event to listen for",
972 "desc" : "The handler to remove",
978 "desc" : "(optional) The scope (this object) for the handler",
985 "name" : "fireEvent",
987 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
988 "sig" : "(eventName, args)",
990 "memberOf" : "Roo.util.Observable",
992 "isConstructor" : false,
1002 "name" : "eventName",
1005 "isOptional" : false
1009 "type" : "Object...",
1010 "desc" : "Variable number of parameters are passed to handlers",
1011 "isOptional" : false
1018 "desc" : "returns false if any of the handlers return false otherwise it returns true"
1023 "name" : "hasListener",
1024 "type" : "function",
1025 "desc" : "Checks to see if this object has any listeners for a specified event",
1026 "sig" : "(eventName)",
1028 "memberOf" : "Roo.util.Observable",
1030 "isConstructor" : false,
1031 "isPrivate" : false,
1040 "name" : "eventName",
1042 "desc" : "The name of the event to check for",
1043 "isOptional" : false
1050 "desc" : "True if the event is being listened for, else false"
1056 "type" : "function",
1057 "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.",
1058 "sig" : "(o, fn, scope)",
1060 "memberOf" : "Roo.util.Observable",
1062 "isConstructor" : false,
1063 "isPrivate" : false,
1073 "type" : "Observable",
1074 "desc" : "The Observable to capture",
1075 "isOptional" : false
1079 "type" : "Function",
1080 "desc" : "The function to call",
1081 "isOptional" : false
1086 "desc" : "(optional) The scope (this object) for the fn",
1087 "isOptional" : false
1093 "name" : "addListener",
1094 "type" : "function",
1095 "desc" : "Appends an event handler to this component",
1096 "sig" : "(eventName, handler, scope, options)",
1098 "memberOf" : "Roo.util.Observable",
1100 "isConstructor" : false,
1101 "isPrivate" : false,
1110 "name" : "eventName",
1112 "desc" : "The type of event to listen for",
1113 "isOptional" : false
1117 "type" : "Function",
1118 "desc" : "The method the event invokes",
1119 "isOptional" : false
1124 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
1125 "isOptional" : false
1130 "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>",
1131 "isOptional" : false
1139 "name" : "fired when files have been selected,",
1140 "type" : "function",
1141 "desc" : "When a the download link is clicked",
1142 "sig" : "function (_self, Array)\n{\n\n}",
1151 "type" : "Roo.bootstrap.UploaderButton",
1153 "isOptional" : false
1158 "desc" : "of files that have been uploaded",
1159 "isOptional" : false
1165 "name" : "beforeselect",
1166 "type" : "function",
1167 "desc" : "When button is pressed, before show upload files dialog is shown",
1168 "sig" : "function (_self)\n{\n\n}",
1177 "type" : "Roo.bootstrap.UploaderButton",
1179 "isOptional" : false
1186 "type" : "function",
1187 "desc" : "After the button has been toggles",
1188 "sig" : "function (btn, e, pressed)\n{\n\n}",
1189 "memberOf" : "Roo.bootstrap.Button",
1197 "type" : "Roo.bootstrap.Button",
1199 "isOptional" : false
1203 "type" : "Roo.EventObject",
1205 "isOptional" : false
1210 "desc" : "(also available as button.pressed)",
1211 "isOptional" : false
1217 "name" : "dblclick",
1218 "type" : "function",
1219 "desc" : "When a button is double clicked",
1220 "sig" : "function (btn, e)\n{\n\n}",
1221 "memberOf" : "Roo.bootstrap.Button",
1229 "type" : "Roo.bootstrap.Button",
1231 "isOptional" : false
1235 "type" : "Roo.EventObject",
1237 "isOptional" : false
1244 "type" : "function",
1245 "desc" : "When a button is pressed",
1246 "sig" : "function (btn, e)\n{\n\n}",
1247 "memberOf" : "Roo.bootstrap.Button",
1255 "type" : "Roo.bootstrap.Button",
1257 "isOptional" : false
1261 "type" : "Roo.EventObject",
1263 "isOptional" : false
1269 "name" : "childrenrendered",
1270 "type" : "function",
1271 "desc" : "Fires when the children have been rendered..",
1272 "sig" : "function (_self)\n{\n\n}",
1273 "memberOf" : "Roo.bootstrap.Component",
1281 "type" : "Roo.bootstrap.Component",
1283 "isOptional" : false
1289 "name" : "beforerender",
1290 "type" : "function",
1291 "desc" : "Fires before the component is rendered. Return false to stop the render.",
1292 "sig" : "function (_self)\n{\n\n}",
1293 "memberOf" : "Roo.Component",
1301 "type" : "Roo.Component",
1303 "isOptional" : false
1310 "type" : "function",
1311 "desc" : "Fires after the component is disabled.",
1312 "sig" : "function (_self)\n{\n\n}",
1313 "memberOf" : "Roo.Component",
1321 "type" : "Roo.Component",
1323 "isOptional" : false
1330 "type" : "function",
1331 "desc" : "Fires after the component is rendered.",
1332 "sig" : "function (_self)\n{\n\n}",
1333 "memberOf" : "Roo.Component",
1341 "type" : "Roo.Component",
1343 "isOptional" : false
1350 "type" : "function",
1351 "desc" : "Fires after the component is destroyed.",
1352 "sig" : "function (_self)\n{\n\n}",
1353 "memberOf" : "Roo.Component",
1361 "type" : "Roo.Component",
1363 "isOptional" : false
1370 "type" : "function",
1371 "desc" : "Fires after the component is hidden.",
1372 "sig" : "function (_self)\n{\n\n}",
1373 "memberOf" : "Roo.Component",
1381 "type" : "Roo.Component",
1383 "isOptional" : false
1389 "name" : "beforehide",
1390 "type" : "function",
1391 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1392 "sig" : "function (_self)\n{\n\n}",
1393 "memberOf" : "Roo.Component",
1401 "type" : "Roo.Component",
1403 "isOptional" : false
1410 "type" : "function",
1411 "desc" : "Fires after the component is shown.",
1412 "sig" : "function (_self)\n{\n\n}",
1413 "memberOf" : "Roo.Component",
1421 "type" : "Roo.Component",
1423 "isOptional" : false
1429 "name" : "beforeshow",
1430 "type" : "function",
1431 "desc" : "Fires before the component is shown. Return false to stop the show.",
1432 "sig" : "function (_self)\n{\n\n}",
1433 "memberOf" : "Roo.Component",
1441 "type" : "Roo.Component",
1443 "isOptional" : false
1450 "type" : "function",
1451 "desc" : "Fires after the component is enabled.",
1452 "sig" : "function (_self)\n{\n\n}",
1453 "memberOf" : "Roo.Component",
1461 "type" : "Roo.Component",
1463 "isOptional" : false
1469 "name" : "beforedestroy",
1470 "type" : "function",
1471 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1472 "sig" : "function (_self)\n{\n\n}",
1473 "memberOf" : "Roo.Component",
1481 "type" : "Roo.Component",
1483 "isOptional" : false