From 69c1c4c69e66248d42772e0b6d05770944b51769 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 20 Nov 2020 16:03:32 +0800 Subject: [PATCH] sync --- docs/json/roodata.json | 645 ++++++++++++++++++++++++- docs/src/Roo_bootstrap_Button.js.html | 12 +- docs/symbols/Roo.bootstrap.Button.json | 17 +- docs/tree.json | 5 + 4 files changed, 658 insertions(+), 21 deletions(-) diff --git a/docs/json/roodata.json b/docs/json/roodata.json index fa1c86b76c..8e72b15f22 100644 --- a/docs/json/roodata.json +++ b/docs/json/roodata.json @@ -17951,12 +17951,8 @@ { "name" : "pressed", "type" : "Boolean", - "desc" : "e) default null - if the button ahs active state", - "memberOf" : "", - "optvals" : [ - "true", - "false" - ] + "desc" : "default null - if the button ahs active state", + "memberOf" : "" }, { "name" : "preventDefault", @@ -18001,8 +17997,15 @@ { "name" : "target", "type" : "String", - "desc" : "target for a href. (_self|_blank|_parent|_top| other)", - "memberOf" : "" + "desc" : "r) target for a href.", + "memberOf" : "", + "optvals" : [ + "_self", + "_blank", + "_parent", + "_top", + "other" + ] }, { "name" : "theme", @@ -21365,6 +21368,632 @@ } ] }, + "Roo.bootstrap.CardUploader" : { + "props" : [ + { + "name" : "actionMode", + "type" : "String", + "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", + "memberOf" : "Roo.Component" + }, + { + "name" : "allowDomMove", + "type" : "Boolean", + "desc" : "Whether the component can move the Dom node when rendering (defaults to true).", + "memberOf" : "Roo.Component" + }, + { + "name" : "badge", + "type" : "String", + "desc" : "text for badge", + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "badge_weight", + "type" : "String", + "desc" : ") default (same as button)", + "memberOf" : "Roo.bootstrap.Button", + "optvals" : [ + "default", + "primary", + "secondary", + "success", + "info", + "warning", + "danger", + "link" + ] + }, + { + "name" : "can_build_overlaid", + "type" : "Boolean", + "desc" : "True if element can be rebuild from a HTML page", + "memberOf" : "Roo.bootstrap.Component" + }, + { + "name" : "cls", + "type" : "String", + "desc" : "css class", + "memberOf" : "Roo.bootstrap.Component" + }, + { + "name" : "container_method", + "type" : "string", + "desc" : "method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)", + "memberOf" : "Roo.bootstrap.Component" + }, + { + "name" : "dataId", + "type" : "string", + "desc" : "cutomer id", + "memberOf" : "Roo.bootstrap.Component" + }, + { + "name" : "disableClass", + "type" : "String", + "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").", + "memberOf" : "Roo.Component" + }, + { + "name" : "disabled", + "type" : "Boolean", + "desc" : "default false;", + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "errorTimeout", + "type" : "Number", + "desc" : "default 3000", + "memberOf" : "" + }, + { + "name" : "fa", + "type" : "String", + "desc" : "fontawesome icon - eg. 'comment' - without the fa/fas etc..", + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "glyphicon", + "type" : "String", + "desc" : "depricated - use fa", + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "hideMode", + "type" : "String", + "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\".", + "memberOf" : "Roo.Component", + "optvals" : [ + "display", + "visibility" + ] + }, + { + "name" : "href", + "type" : "String", + "desc" : "empty or href", + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "html", + "type" : "String", + "desc" : "The button content", + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "images", + "type" : "Array", + "desc" : "an array of ?? Img objects ??? when loading existing files..", + "memberOf" : "" + }, + { + "name" : "inverse", + "type" : "Boolean", + "desc" : "dark themed version", + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "isClose", + "type" : "Boolean", + "desc" : "default false;", + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "listeners", + "type" : "Object", + "desc" : "list of events and functions to call for this object, \nFor example :\n
\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  
", + "memberOf" : "Roo.util.Observable" + }, + { + "name" : "name", + "type" : "Boolean", + "desc" : "the field name for each image..", + "memberOf" : "" + }, + { + "name" : "offtext", + "type" : "String", + "desc" : "text for off slidy toggle state", + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "ontext", + "type" : "String", + "desc" : "text for on slidy toggle state", + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "outline", + "type" : "Boolean", + "desc" : "default false (except for weight=default which emulates old behaveiour with an outline)", + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "pressed", + "type" : "Boolean", + "desc" : "default null - if the button ahs active state", + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "preventDefault", + "type" : "Boolean", + "desc" : "default true (stop click event triggering the URL if it's a link.)", + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "removeClass", + "type" : "Boolean", + "desc" : "remove the standard class..", + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "size", + "type" : "String", + "desc" : "s)", + "memberOf" : "Roo.bootstrap.Button", + "optvals" : [ + "lg", + "sm", + "xs" + ] + }, + { + "name" : "style", + "type" : "String", + "desc" : "any extra css", + "memberOf" : "Roo.bootstrap.Component" + }, + { + "name" : "tag", + "type" : "String", + "desc" : "t)", + "memberOf" : "Roo.bootstrap.Button", + "optvals" : [ + "a", + "input", + "submit" + ] + }, + { + "name" : "target", + "type" : "String", + "desc" : "r) target for a href.", + "memberOf" : "Roo.bootstrap.Button", + "optvals" : [ + "_self", + "_blank", + "_parent", + "_top", + "other" + ] + }, + { + "name" : "theme", + "type" : "String", + "desc" : "w)", + "memberOf" : "Roo.bootstrap.Button", + "optvals" : [ + "default", + "glow" + ] + }, + { + "name" : "toggle", + "type" : "Boolean", + "desc" : "is it a slidy toggle button", + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "tooltip", + "type" : "string", + "desc" : "Text for the tooltip", + "memberOf" : "Roo.bootstrap.Component" + }, + { + "name" : "visibilityEl", + "type" : "string|object", + "desc" : "t) What element to use for visibility (@see getVisibilityEl())", + "memberOf" : "Roo.bootstrap.Component", + "optvals" : [ + "el", + "parent" + ] + }, + { + "name" : "weight", + "type" : "String", + "desc" : ") default", + "memberOf" : "Roo.bootstrap.Button", + "optvals" : [ + "default", + "primary", + "secondary", + "success", + "info", + "warning", + "danger", + "link" + ] + }, + { + "name" : "xattr", + "type" : "Object", + "desc" : "extra attributes to add to 'element' (used by builder to store stuff.)", + "memberOf" : "Roo.bootstrap.Component" + } + ], + "events" : [ + { + "name" : "beforedestroy", + "type" : "function", + "desc" : "Fires before the component is destroyed. Return false to stop the destroy.", + "sig" : "function (_self)\n{\n\n}", + "memberOf" : "Roo.Component" + }, + { + "name" : "beforehide", + "type" : "function", + "desc" : "Fires before the component is hidden. Return false to stop the hide.", + "sig" : "function (_self)\n{\n\n}", + "memberOf" : "Roo.Component" + }, + { + "name" : "beforerender", + "type" : "function", + "desc" : "Fires before the component is rendered. Return false to stop the render.", + "sig" : "function (_self)\n{\n\n}", + "memberOf" : "Roo.Component" + }, + { + "name" : "beforeshow", + "type" : "function", + "desc" : "Fires before the component is shown. Return false to stop the show.", + "sig" : "function (_self)\n{\n\n}", + "memberOf" : "Roo.Component" + }, + { + "name" : "childrenrendered", + "type" : "function", + "desc" : "Fires when the children have been rendered..", + "sig" : "function (_self)\n{\n\n}", + "memberOf" : "Roo.bootstrap.Component" + }, + { + "name" : "click", + "type" : "function", + "desc" : "When a butotn is pressed", + "sig" : "function (btn, e)\n{\n\n}", + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "destroy", + "type" : "function", + "desc" : "Fires after the component is destroyed.", + "sig" : "function (_self)\n{\n\n}", + "memberOf" : "Roo.Component" + }, + { + "name" : "disable", + "type" : "function", + "desc" : "Fires after the component is disabled.", + "sig" : "function (_self)\n{\n\n}", + "memberOf" : "Roo.Component" + }, + { + "name" : "enable", + "type" : "function", + "desc" : "Fires after the component is enabled.", + "sig" : "function (_self)\n{\n\n}", + "memberOf" : "Roo.Component" + }, + { + "name" : "hide", + "type" : "function", + "desc" : "Fires after the component is hidden.", + "sig" : "function (_self)\n{\n\n}", + "memberOf" : "Roo.Component" + }, + { + "name" : "render", + "type" : "function", + "desc" : "Fires after the component is rendered.", + "sig" : "function (_self)\n{\n\n}", + "memberOf" : "Roo.Component" + }, + { + "name" : "show", + "type" : "function", + "desc" : "Fires after the component is shown.", + "sig" : "function (_self)\n{\n\n}", + "memberOf" : "Roo.Component" + }, + { + "name" : "toggle", + "type" : "function", + "desc" : "After the button has been toggles", + "sig" : "function (btn, e, pressed)\n{\n\n}", + "memberOf" : "Roo.bootstrap.Button" + } + ], + "methods" : [ + { + "name" : "addEvents", + "type" : "function", + "desc" : "Used to define events on this Observable", + "sig" : "(object)", + "static" : false, + "memberOf" : "Roo.util.Observable" + }, + { + "name" : "addListener", + "type" : "function", + "desc" : "Appends an event handler to this component", + "sig" : "(eventName, handler, scope, options)", + "static" : false, + "memberOf" : "Roo.util.Observable" + }, + { + "name" : "capture", + "type" : "function", + "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\nbefore the event is fired. If the supplied function returns false,\nthe event will not fire.", + "sig" : "(o, fn, scope)", + "static" : true, + "memberOf" : "Roo.util.Observable" + }, + { + "name" : "destroy", + "type" : "function", + "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}.", + "sig" : "()\n{\n\n}", + "static" : false, + "memberOf" : "Roo.Component" + }, + { + "name" : "disable", + "type" : "function", + "desc" : "Disable this button", + "sig" : "()\n{\n\n}", + "static" : false, + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "enable", + "type" : "function", + "desc" : "Enables this button", + "sig" : "()\n{\n\n}", + "static" : false, + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "fireEvent", + "type" : "function", + "desc" : "Fires the specified event with the passed parameters (minus the event name).", + "sig" : "(eventName, args)", + "static" : false, + "memberOf" : "Roo.util.Observable" + }, + { + "name" : "focus", + "type" : "function", + "desc" : "Try to focus this component.", + "sig" : "(selectText)", + "static" : false, + "memberOf" : "Roo.Component" + }, + { + "name" : "getChildContainer", + "type" : "function", + "desc" : "Fetch the element to add children to", + "sig" : "()\n{\n\n}", + "static" : false, + "memberOf" : "Roo.bootstrap.Component" + }, + { + "name" : "getEl", + "type" : "function", + "desc" : "Returns the underlying {@link Roo.Element}.", + "sig" : "()\n{\n\n}", + "static" : false, + "memberOf" : "Roo.Component" + }, + { + "name" : "getId", + "type" : "function", + "desc" : "Returns the id of this component.", + "sig" : "()\n{\n\n}", + "static" : false, + "memberOf" : "Roo.Component" + }, + { + "name" : "getText", + "type" : "function", + "desc" : "get the text of the first selected button", + "sig" : "()\n{\n\n}", + "static" : false, + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "getVisibilityEl", + "type" : "function", + "desc" : "Get the element that will be used to show or hide", + "sig" : "()\n{\n\n}", + "static" : false, + "memberOf" : "Roo.bootstrap.Component" + }, + { + "name" : "hasListener", + "type" : "function", + "desc" : "Checks to see if this object has any listeners for a specified event", + "sig" : "(eventName)", + "static" : false, + "memberOf" : "Roo.util.Observable" + }, + { + "name" : "hide", + "type" : "function", + "desc" : "Hide a component - adds 'hidden' class", + "sig" : "()\n{\n\n}", + "static" : false, + "memberOf" : "Roo.bootstrap.Component" + }, + { + "name" : "initEvents", + "type" : "function", + "desc" : "Initialize Events for the element", + "sig" : "()\n{\n\n}", + "static" : false, + "memberOf" : "Roo.bootstrap.Component" + }, + { + "name" : "isActive", + "type" : "function", + "desc" : "get the current active state", + "sig" : "()\n{\n\n}", + "static" : false, + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "isVisible", + "type" : "function", + "desc" : "Returns true if this component is visible.", + "sig" : "()\n{\n\n}", + "static" : false, + "memberOf" : "Roo.Component" + }, + { + "name" : "on", + "type" : "function", + "desc" : "Appends an event handler to this element (shorthand for addListener)", + "sig" : "(eventName, handler, scope, options)", + "static" : false, + "memberOf" : "Roo.util.Observable" + }, + { + "name" : "purgeListeners", + "type" : "function", + "desc" : "Removes all listeners for this object", + "sig" : "()\n{\n\n}", + "static" : false, + "memberOf" : "Roo.util.Observable" + }, + { + "name" : "releaseCapture", + "type" : "function", + "desc" : "Removes all added captures from the Observable.", + "sig" : "(o)", + "static" : true, + "memberOf" : "Roo.util.Observable" + }, + { + "name" : "removeListener", + "type" : "function", + "desc" : "Removes a listener", + "sig" : "(eventName, handler, scope)", + "static" : false, + "memberOf" : "Roo.util.Observable" + }, + { + "name" : "render", + "type" : "function", + "desc" : "If this is a lazy rendering component, render it to its container element.", + "sig" : "(container)", + "static" : false, + "memberOf" : "Roo.Component" + }, + { + "name" : "setActive", + "type" : "function", + "desc" : "sets the active state on/off,", + "sig" : "(state)", + "static" : false, + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "setDisabled", + "type" : "function", + "desc" : "Convenience function for setting disabled/enabled by boolean.", + "sig" : "(disabled)", + "static" : false, + "memberOf" : "Roo.Component" + }, + { + "name" : "setText", + "type" : "function", + "desc" : "set the text of the first selected button", + "sig" : "()\n{\n\n}", + "static" : false, + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "setVisibilityEl", + "type" : "function", + "desc" : "Set the element that will be used to show or hide", + "sig" : "()\n{\n\n}", + "static" : false, + "memberOf" : "Roo.bootstrap.Component" + }, + { + "name" : "setVisible", + "type" : "function", + "desc" : "Convenience function to hide or show this component by boolean.", + "sig" : "(visible)", + "static" : false, + "memberOf" : "Roo.Component" + }, + { + "name" : "show", + "type" : "function", + "desc" : "Show a component - removes 'hidden' class", + "sig" : "()\n{\n\n}", + "static" : false, + "memberOf" : "Roo.bootstrap.Component" + }, + { + "name" : "toggleActive", + "type" : "function", + "desc" : "toggles the current active state", + "sig" : "()\n{\n\n}", + "static" : false, + "memberOf" : "Roo.bootstrap.Button" + }, + { + "name" : "tooltipEl", + "type" : "function", + "desc" : "Fetch the element to display the tooltip on.", + "sig" : "()\n{\n\n}", + "static" : false, + "memberOf" : "Roo.bootstrap.Component" + }, + { + "name" : "un", + "type" : "function", + "desc" : "Removes a listener (shorthand for removeListener)", + "sig" : "(eventName, handler, scope)", + "static" : false, + "memberOf" : "Roo.util.Observable" + } + ] + }, "Roo.bootstrap.CheckBox" : { "props" : [ { diff --git a/docs/src/Roo_bootstrap_Button.js.html b/docs/src/Roo_bootstrap_Button.js.html index e40a2aa30d..746ac682c6 100644 --- a/docs/src/Roo_bootstrap_Button.js.html +++ b/docs/src/Roo_bootstrap_Button.js.html @@ -10,11 +10,11 @@ * @extends Roo.bootstrap.Component * Bootstrap Button class * @cfg {String} html The button content - * @cfg {String} weight (default | primary | secondary | success | info | warning | danger | link ) default - * @cfg {String} badge_weight (default | primary | secondary | success | info | warning | danger | link ) default (same as button) + * @cfg {String} weight (default|primary|secondary|success|info|warning|danger|link ) default + * @cfg {String} badge_weight (default|primary|secondary|success|info|warning|danger|link ) default (same as button) * @cfg {Boolean} outline default false (except for weight=default which emulates old behaveiour with an outline) - * @cfg {String} size ( lg | sm | xs) - * @cfg {String} tag ( a | input | submit) + * @cfg {String} size (lg|sm|xs) + * @cfg {String} tag (a|input|submit) * @cfg {String} href empty or href * @cfg {Boolean} disabled default false; * @cfg {Boolean} isClose default false; @@ -24,12 +24,12 @@ * @cfg {String} theme (default|glow) * @cfg {Boolean} inverse dark themed version * @cfg {Boolean} toggle is it a slidy toggle button - * @cfg {Boolean} pressed (true|false) default null - if the button ahs active state + * @cfg {Boolean} pressed  default null - if the button ahs active state * @cfg {String} ontext text for on slidy toggle state * @cfg {String} offtext text for off slidy toggle state * @cfg {Boolean} preventDefault default true (stop click event triggering the URL if it's a link.) * @cfg {Boolean} removeClass remove the standard class.. - * @cfg {String} target target for a href. (_self|_blank|_parent|_top| other) + * @cfg {String} target (_self|_blank|_parent|_top|other) target for a href. * * @constructor * Create a new button diff --git a/docs/symbols/Roo.bootstrap.Button.json b/docs/symbols/Roo.bootstrap.Button.json index 3c09d1798f..c866f4759d 100644 --- a/docs/symbols/Roo.bootstrap.Button.json +++ b/docs/symbols/Roo.bootstrap.Button.json @@ -126,9 +126,15 @@ { "name" : "target", "type" : "String", - "desc" : "target for a href. (_self|_blank|_parent|_top| other)", + "desc" : "r) target for a href.", "memberOf" : "Roo.bootstrap.Button", - "optvals" : [] + "optvals" : [ + "_self", + "_blank", + "_parent", + "_top", + "other" + ] }, { "name" : "glyphicon", @@ -300,12 +306,9 @@ { "name" : "pressed", "type" : "Boolean", - "desc" : "e) default null - if the button ahs active state", + "desc" : "default null - if the button ahs active state", "memberOf" : "Roo.bootstrap.Button", - "optvals" : [ - "true", - "false" - ] + "optvals" : [] } ], "methods" : [ diff --git a/docs/tree.json b/docs/tree.json index dd7a8eb655..e9686f027d 100644 --- a/docs/tree.json +++ b/docs/tree.json @@ -420,6 +420,11 @@ "cn" : [], "is_class" : true }, + { + "name" : "Roo.bootstrap.CardUploader", + "cn" : [], + "is_class" : true + }, { "name" : "Roo.bootstrap.CheckBox", "cn" : [], -- 2.39.2