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"
269 "desc" : "addCard - add an Attachment to the uploader",
274 "isConstructor" : false,
286 "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 }",
295 "desc" : "set the text of the first selected button",
296 "sig" : "()\n{\n\n}",
298 "memberOf" : "Roo.bootstrap.Button",
300 "isConstructor" : false,
314 "desc" : "get the current active state",
315 "sig" : "()\n{\n\n}",
317 "memberOf" : "Roo.bootstrap.Button",
319 "isConstructor" : false,
332 "desc" : "true if it's active"
337 "name" : "setActive",
339 "desc" : "sets the active state on/off,",
342 "memberOf" : "Roo.bootstrap.Button",
344 "isConstructor" : false,
356 "desc" : "(optional) Force a particular state",
363 "name" : "toggleActive",
365 "desc" : "toggles the current active state",
366 "sig" : "()\n{\n\n}",
368 "memberOf" : "Roo.bootstrap.Button",
370 "isConstructor" : false,
384 "desc" : "get the text of the first selected button",
385 "sig" : "()\n{\n\n}",
387 "memberOf" : "Roo.bootstrap.Button",
389 "isConstructor" : false,
403 "desc" : "Enables this button",
404 "sig" : "()\n{\n\n}",
406 "memberOf" : "Roo.bootstrap.Button",
408 "isConstructor" : false,
422 "desc" : "Disable this button",
423 "sig" : "()\n{\n\n}",
425 "memberOf" : "Roo.bootstrap.Button",
427 "isConstructor" : false,
439 "name" : "tooltipEl",
441 "desc" : "Fetch the element to display the tooltip on.",
442 "sig" : "()\n{\n\n}",
444 "memberOf" : "Roo.bootstrap.Component",
446 "isConstructor" : false,
458 "type" : "Roo.Element",
459 "desc" : "defaults to this.el"
466 "desc" : "Hide a component - adds 'hidden' class",
467 "sig" : "()\n{\n\n}",
469 "memberOf" : "Roo.bootstrap.Component",
471 "isConstructor" : false,
485 "desc" : "Show a component - removes 'hidden' class",
486 "sig" : "()\n{\n\n}",
488 "memberOf" : "Roo.bootstrap.Component",
490 "isConstructor" : false,
502 "name" : "setVisibilityEl",
504 "desc" : "Set the element that will be used to show or hide",
505 "sig" : "()\n{\n\n}",
507 "memberOf" : "Roo.bootstrap.Component",
509 "isConstructor" : false,
521 "name" : "getVisibilityEl",
523 "desc" : "Get the element that will be used to show or hide",
524 "sig" : "()\n{\n\n}",
526 "memberOf" : "Roo.bootstrap.Component",
528 "isConstructor" : false,
540 "name" : "initEvents",
542 "desc" : "Initialize Events for the element",
543 "sig" : "()\n{\n\n}",
545 "memberOf" : "Roo.bootstrap.Component",
547 "isConstructor" : false,
559 "name" : "getChildContainer",
561 "desc" : "Fetch the element to add children to",
562 "sig" : "()\n{\n\n}",
564 "memberOf" : "Roo.bootstrap.Component",
566 "isConstructor" : false,
578 "type" : "Roo.Element",
579 "desc" : "defaults to this.el"
586 "desc" : "Returns the id of this component.",
587 "sig" : "()\n{\n\n}",
589 "memberOf" : "Roo.Component",
591 "isConstructor" : false,
611 "desc" : "If this is a lazy rendering component, render it to its container element.",
612 "sig" : "(container)",
614 "memberOf" : "Roo.Component",
616 "isConstructor" : false,
626 "name" : "container",
627 "type" : "String/HTMLElement/Element",
628 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
637 "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}.",
638 "sig" : "()\n{\n\n}",
640 "memberOf" : "Roo.Component",
642 "isConstructor" : false,
654 "name" : "isVisible",
656 "desc" : "Returns true if this component is visible.",
657 "sig" : "()\n{\n\n}",
659 "memberOf" : "Roo.Component",
661 "isConstructor" : false,
673 "name" : "setDisabled",
675 "desc" : "Convenience function for setting disabled/enabled by boolean.",
676 "sig" : "(disabled)",
678 "memberOf" : "Roo.Component",
680 "isConstructor" : false,
701 "desc" : "Try to focus this component.",
702 "sig" : "(selectText)",
704 "memberOf" : "Roo.Component",
706 "isConstructor" : false,
716 "name" : "selectText",
718 "desc" : "True to also select the text in this component (if applicable)",
725 "type" : "Roo.Component",
731 "name" : "setVisible",
733 "desc" : "Convenience function to hide or show this component by boolean.",
736 "memberOf" : "Roo.Component",
738 "isConstructor" : false,
750 "desc" : "True to show, false to hide",
757 "type" : "Roo.Component",
765 "desc" : "Returns the underlying {@link Roo.Element}.",
766 "sig" : "()\n{\n\n}",
768 "memberOf" : "Roo.Component",
770 "isConstructor" : false,
782 "type" : "Roo.Element",
783 "desc" : "The element"
788 "name" : "purgeListeners",
790 "desc" : "Removes all listeners for this object",
791 "sig" : "()\n{\n\n}",
793 "memberOf" : "Roo.util.Observable",
795 "isConstructor" : false,
809 "desc" : "Appends an event handler to this element (shorthand for addListener)",
810 "sig" : "(eventName, handler, scope, options)",
812 "memberOf" : "Roo.util.Observable",
814 "isConstructor" : false,
824 "name" : "eventName",
826 "desc" : "The type of event to listen for",
832 "desc" : "The method the event invokes",
838 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
844 "desc" : "(optional)",
853 "desc" : "Removes a listener (shorthand for removeListener)",
854 "sig" : "(eventName, handler, scope)",
856 "memberOf" : "Roo.util.Observable",
858 "isConstructor" : false,
868 "name" : "eventName",
870 "desc" : "The type of event to listen for",
876 "desc" : "The handler to remove",
882 "desc" : "(optional) The scope (this object) for the handler",
889 "name" : "addEvents",
891 "desc" : "Used to define events on this Observable",
894 "memberOf" : "Roo.util.Observable",
896 "isConstructor" : false,
908 "desc" : "The object with the events defined",
915 "name" : "releaseCapture",
917 "desc" : "Removes <b>all</b> added captures from the Observable.",
920 "memberOf" : "Roo.util.Observable",
922 "isConstructor" : false,
933 "type" : "Observable",
934 "desc" : "The Observable to release",
941 "name" : "removeListener",
943 "desc" : "Removes a listener",
944 "sig" : "(eventName, handler, scope)",
946 "memberOf" : "Roo.util.Observable",
948 "isConstructor" : false,
958 "name" : "eventName",
960 "desc" : "The type of event to listen for",
966 "desc" : "The handler to remove",
972 "desc" : "(optional) The scope (this object) for the handler",
979 "name" : "fireEvent",
981 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
982 "sig" : "(eventName, args)",
984 "memberOf" : "Roo.util.Observable",
986 "isConstructor" : false,
996 "name" : "eventName",
1003 "type" : "Object...",
1004 "desc" : "Variable number of parameters are passed to handlers",
1005 "isOptional" : false
1012 "desc" : "returns false if any of the handlers return false otherwise it returns true"
1017 "name" : "hasListener",
1018 "type" : "function",
1019 "desc" : "Checks to see if this object has any listeners for a specified event",
1020 "sig" : "(eventName)",
1022 "memberOf" : "Roo.util.Observable",
1024 "isConstructor" : false,
1025 "isPrivate" : false,
1034 "name" : "eventName",
1036 "desc" : "The name of the event to check for",
1037 "isOptional" : false
1044 "desc" : "True if the event is being listened for, else false"
1050 "type" : "function",
1051 "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.",
1052 "sig" : "(o, fn, scope)",
1054 "memberOf" : "Roo.util.Observable",
1056 "isConstructor" : false,
1057 "isPrivate" : false,
1067 "type" : "Observable",
1068 "desc" : "The Observable to capture",
1069 "isOptional" : false
1073 "type" : "Function",
1074 "desc" : "The function to call",
1075 "isOptional" : false
1080 "desc" : "(optional) The scope (this object) for the fn",
1081 "isOptional" : false
1087 "name" : "addListener",
1088 "type" : "function",
1089 "desc" : "Appends an event handler to this component",
1090 "sig" : "(eventName, handler, scope, options)",
1092 "memberOf" : "Roo.util.Observable",
1094 "isConstructor" : false,
1095 "isPrivate" : false,
1104 "name" : "eventName",
1106 "desc" : "The type of event to listen for",
1107 "isOptional" : false
1111 "type" : "Function",
1112 "desc" : "The method the event invokes",
1113 "isOptional" : false
1118 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
1119 "isOptional" : false
1124 "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>",
1125 "isOptional" : false
1133 "name" : "fired when files have been selected,",
1134 "type" : "function",
1135 "desc" : "When a the download link is clicked",
1136 "sig" : "function (_self, Array)\n{\n\n}",
1145 "type" : "Roo.bootstrap.UploaderButton",
1147 "isOptional" : false
1152 "desc" : "of files that have been uploaded",
1153 "isOptional" : false
1159 "name" : "beforeselect",
1160 "type" : "function",
1161 "desc" : "When button is pressed, before show upload files dialog is shown",
1162 "sig" : "function (_self)\n{\n\n}",
1171 "type" : "Roo.bootstrap.UploaderButton",
1173 "isOptional" : false
1180 "type" : "function",
1181 "desc" : "After the button has been toggles",
1182 "sig" : "function (btn, e, pressed)\n{\n\n}",
1183 "memberOf" : "Roo.bootstrap.Button",
1191 "type" : "Roo.bootstrap.Button",
1193 "isOptional" : false
1197 "type" : "Roo.EventObject",
1199 "isOptional" : false
1204 "desc" : "(also available as button.pressed)",
1205 "isOptional" : false
1211 "name" : "dblclick",
1212 "type" : "function",
1213 "desc" : "When a button is double clicked",
1214 "sig" : "function (btn, e)\n{\n\n}",
1215 "memberOf" : "Roo.bootstrap.Button",
1223 "type" : "Roo.bootstrap.Button",
1225 "isOptional" : false
1229 "type" : "Roo.EventObject",
1231 "isOptional" : false
1238 "type" : "function",
1239 "desc" : "When a button is pressed",
1240 "sig" : "function (btn, e)\n{\n\n}",
1241 "memberOf" : "Roo.bootstrap.Button",
1249 "type" : "Roo.bootstrap.Button",
1251 "isOptional" : false
1255 "type" : "Roo.EventObject",
1257 "isOptional" : false
1263 "name" : "childrenrendered",
1264 "type" : "function",
1265 "desc" : "Fires when the children have been rendered..",
1266 "sig" : "function (_self)\n{\n\n}",
1267 "memberOf" : "Roo.bootstrap.Component",
1275 "type" : "Roo.bootstrap.Component",
1277 "isOptional" : false
1283 "name" : "beforerender",
1284 "type" : "function",
1285 "desc" : "Fires before the component is rendered. Return false to stop the render.",
1286 "sig" : "function (_self)\n{\n\n}",
1287 "memberOf" : "Roo.Component",
1295 "type" : "Roo.Component",
1297 "isOptional" : false
1304 "type" : "function",
1305 "desc" : "Fires after the component is disabled.",
1306 "sig" : "function (_self)\n{\n\n}",
1307 "memberOf" : "Roo.Component",
1315 "type" : "Roo.Component",
1317 "isOptional" : false
1324 "type" : "function",
1325 "desc" : "Fires after the component is rendered.",
1326 "sig" : "function (_self)\n{\n\n}",
1327 "memberOf" : "Roo.Component",
1335 "type" : "Roo.Component",
1337 "isOptional" : false
1344 "type" : "function",
1345 "desc" : "Fires after the component is destroyed.",
1346 "sig" : "function (_self)\n{\n\n}",
1347 "memberOf" : "Roo.Component",
1355 "type" : "Roo.Component",
1357 "isOptional" : false
1364 "type" : "function",
1365 "desc" : "Fires after the component is hidden.",
1366 "sig" : "function (_self)\n{\n\n}",
1367 "memberOf" : "Roo.Component",
1375 "type" : "Roo.Component",
1377 "isOptional" : false
1383 "name" : "beforehide",
1384 "type" : "function",
1385 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1386 "sig" : "function (_self)\n{\n\n}",
1387 "memberOf" : "Roo.Component",
1395 "type" : "Roo.Component",
1397 "isOptional" : false
1404 "type" : "function",
1405 "desc" : "Fires after the component is shown.",
1406 "sig" : "function (_self)\n{\n\n}",
1407 "memberOf" : "Roo.Component",
1415 "type" : "Roo.Component",
1417 "isOptional" : false
1423 "name" : "beforeshow",
1424 "type" : "function",
1425 "desc" : "Fires before the component is shown. Return false to stop the show.",
1426 "sig" : "function (_self)\n{\n\n}",
1427 "memberOf" : "Roo.Component",
1435 "type" : "Roo.Component",
1437 "isOptional" : false
1444 "type" : "function",
1445 "desc" : "Fires after the component is enabled.",
1446 "sig" : "function (_self)\n{\n\n}",
1447 "memberOf" : "Roo.Component",
1455 "type" : "Roo.Component",
1457 "isOptional" : false
1463 "name" : "beforedestroy",
1464 "type" : "function",
1465 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1466 "sig" : "function (_self)\n{\n\n}",
1467 "memberOf" : "Roo.Component",
1475 "type" : "Roo.Component",
1477 "isOptional" : false