fit-ui 2.18.1 → 2.18.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -185,7 +185,7 @@
185
185
  <script type="text/javascript">
186
186
  var containers = [{ "Name" : "Fit", "Description" : "", "Extends" : "" }, { "Name" : "Fit._internal.Controls.Input", "Description" : "Allows for manipulating control (appearance, features, and behaviour).\nFeatures are NOT guaranteed to be backward compatible, and incorrect use might break control!", "Extends" : "" }, { "Name" : "Fit._internal.Controls.Input.Editor", "Description" : "Internal settings related to HTML Editor (Design Mode)", "Extends" : "" }, { "Name" : "Fit.Array", "Description" : "Functionality extending the capabilities of native JS arrays", "Extends" : "" }, { "Name" : "Fit.Browser", "Description" : "Provides access to various browser information.\n\n// Example code\n\nvar browserName = Fit.Browser.GetBrowser();\nvar browserVersion = Fit.Browser.GetVersion();\nvar browserLanguage = Fit.Browser.GetLanguage();\n\nif (browserName === \"MSIE\" && browserVersion < 7)\n{\n     if (browserLanguage === \"da\")\n         alert(\"Opgrader venligst til IE7 eller nyere\");\n     else\n         alert(\"Please upgrade to IE7 or newer\");\n}", "Extends" : "" }, { "Name" : "Fit.BrowserTypeDefs.BrowserAppInfo", "Description" : "Object representing browser app environment", "Extends" : "Fit.BrowserTypeDefs.BrowserDetails" }, { "Name" : "Fit.BrowserTypeDefs.BrowserDetails", "Description" : "Object representing browser details", "Extends" : "" }, { "Name" : "Fit.BrowserTypeDefs.BrowserInfo", "Description" : "Object representing browser environment", "Extends" : "Fit.BrowserTypeDefs.BrowserDetails" }, { "Name" : "Fit.BrowserTypeDefs.ParsedUrl", "Description" : "Object representing components of a URL", "Extends" : "" }, { "Name" : "Fit.BrowserTypeDefs.QueryString", "Description" : "Object representing query string", "Extends" : "" }, { "Name" : "Fit.Color", "Description" : "", "Extends" : "" }, { "Name" : "Fit.ColorTypeDefs.RgbaColor", "Description" : "RGBA color object", "Extends" : "Fit.ColorTypeDefs.RgbColor" }, { "Name" : "Fit.ColorTypeDefs.RgbColor", "Description" : "RGB color object", "Extends" : "" }, { "Name" : "Fit.Controls", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Controls.Button", "Description" : "Button control with support for Font Awesome icons", "Extends" : "Fit.Controls.Component" }, { "Name" : "Fit.Controls.ButtonType", "Description" : "Enum values determining visual appearance of button controls", "Extends" : "" }, { "Name" : "Fit.Controls.ButtonTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Controls.CheckBox", "Description" : "Simple CheckBox control.\nExtending from Fit.Controls.ControlBase.", "Extends" : "Fit.Controls.ControlBase" }, { "Name" : "Fit.Controls.Component", "Description" : "Class from which all UI components extend", "Extends" : "" }, { "Name" : "Fit.Controls.ContextMenu", "Description" : "ContextMenu control allowing for quick access to select features.", "Extends" : "Fit.Controls.Component" }, { "Name" : "Fit.Controls.ContextMenuItem", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Controls.ContextMenuTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Controls.ControlBase", "Description" : "Class from which all editable controls extend", "Extends" : "Fit.Controls.Component" }, { "Name" : "Fit.Controls.ControlBaseTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Controls.DatePicker", "Description" : "DatePicker control allowing user to easily pick a date and optionally time.\nOn mobile devices (phones and tablets) the native date and time pickers are used.\nExtending from Fit.Controls.ControlBase.", "Extends" : "Fit.Controls.ControlBase" }, { "Name" : "Fit.Controls.Dialog", "Description" : "Simple Dialog control with support for Fit.UI buttons.", "Extends" : "Fit.Controls.Component" }, { "Name" : "Fit.Controls.DialogEditor", "Description" : "Dialog containing HTML editor for rich text editing", "Extends" : "Fit.Controls.Dialog" }, { "Name" : "Fit.Controls.DialogInterface", "Description" : "Simple interface for controlling Prompt, Confirm, and Alert dialogs", "Extends" : "" }, { "Name" : "Fit.Controls.DialogTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Controls.DropDown", "Description" : "Drop Down Menu control allowing for single and multi selection.\nSupports data selection using any control extending from Fit.Controls.PickerBase.\nThis control is extending from Fit.Controls.ControlBase.", "Extends" : "Fit.Controls.ControlBase" }, { "Name" : "Fit.Controls.DropDownTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Controls.DropDownTypeDefs.DropDownItem", "Description" : "DropDown item", "Extends" : "" }, { "Name" : "Fit.Controls.DropDownTypeDefs.UpdatedDropDownItem", "Description" : "DropDown item", "Extends" : "" }, { "Name" : "Fit.Controls.FilePicker", "Description" : "Control allowing for files to be selected locally and uploaded asynchronously.\nExtending from Fit.Controls.ControlBase.", "Extends" : "Fit.Controls.ControlBase" }, { "Name" : "Fit.Controls.FilePickerTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Controls.FilePickerTypeDefs.File", "Description" : "File information", "Extends" : "" }, { "Name" : "Fit.Controls.Input", "Description" : "Input control which allows for one or multiple lines of\ntext, and features a Design Mode for rich HTML content.\nExtending from Fit.Controls.ControlBase.", "Extends" : "Fit.Controls.ControlBase" }, { "Name" : "Fit.Controls.InputResizing", "Description" : "Resizing options", "Extends" : "" }, { "Name" : "Fit.Controls.InputType", "Description" : "Enum values determining input type", "Extends" : "" }, { "Name" : "Fit.Controls.InputTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Controls.InputTypeDefs.DesignModeAutoGrow", "Description" : "Auto grow configuration", "Extends" : "" }, { "Name" : "Fit.Controls.InputTypeDefs.DesignModeConfig", "Description" : "Configuration for DesignMode", "Extends" : "" }, { "Name" : "Fit.Controls.InputTypeDefs.DesignModeConfigInfoPanel", "Description" : "Information panel at the top or bottom of the editor, depending on the location of the toolbar", "Extends" : "" }, { "Name" : "Fit.Controls.InputTypeDefs.DesignModeConfigPlugins", "Description" : "Additional plugins enabled in DesignMode", "Extends" : "" }, { "Name" : "Fit.Controls.InputTypeDefs.DesignModeConfigPluginsImagesConfig", "Description" : "Configuration for image plugins", "Extends" : "" }, { "Name" : "Fit.Controls.InputTypeDefs.DesignModeConfigPluginsTablesConfig", "Description" : "Configuration for table plugins", "Extends" : "" }, { "Name" : "Fit.Controls.InputTypeDefs.DesignModeConfigTags", "Description" : "Configuration for tags in DesignMode", "Extends" : "" }, { "Name" : "Fit.Controls.InputTypeDefs.DesignModeConfigToolbar", "Description" : "Toolbar buttons enabled in DesignMode", "Extends" : "" }, { "Name" : "Fit.Controls.InputTypeDefs.DesignModeDetachable", "Description" : "Detachable configuration", "Extends" : "" }, { "Name" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnRequestEventHandlerArgs", "Description" : "Request handler event arguments", "Extends" : "" }, { "Name" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseEventHandlerArgs", "Description" : "Response handler event arguments", "Extends" : "" }, { "Name" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseJsonTag", "Description" : "JSON object representing tag", "Extends" : "" }, { "Name" : "Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorCallbackArgs", "Description" : "TagCreator event arguments", "Extends" : "" }, { "Name" : "Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorReturnType", "Description" : "JSON object representing tag to be inserted into editor", "Extends" : "" }, { "Name" : "Fit.Controls.ListView", "Description" : "Picker control which allows for entries\nto be selected in the DropDown control.", "Extends" : "Fit.Controls.PickerBase;Fit.Controls.Component" }, { "Name" : "Fit.Controls.ListViewTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Controls.ListViewTypeDefs.ListViewItem", "Description" : "ListView item", "Extends" : "" }, { "Name" : "Fit.Controls.PickerBase", "Description" : "Class from which all Picker Controls extend.\nControl developers must override: GetDomElement, Destroy.\nOverriding the following functions is optional:\nUpdateItemSelectionState, HandleEvent.\nPicker Control must fire OnItemSelectionChanging and OnItemSelectionChanged when an item's\nselection state is being changed, which is done by invoking\nthis._internal.FireOnItemSelectionChanging(title:string, value:string, currentSelectionState:boolean, programmaticallyChanged:boolean)\nand\nthis._internal.FireOnItemSelectionChanged(title:string, value:string, newSelectionState:boolean, programmaticallyChanged:boolean).\nNotice that FireOnItemSelectionChanging may return False, which must prevent item from being\nselected, and at the same time prevent FireOnItemSelectionChanged from being called.\nChanging an item selection may cause OnItemSelectionChanging and OnItemSelectionChanged to be\nfired multiple times (e.g. if picker needs to first deselect one item before selecting another one).\nTherefore PickerBase also features the OnItemSelectionComplete event which must be fired when related\nchanges complete, which is done by invoking this._internal.FireOnItemSelectionComplete().\nOnItemSelectionComplete should only fire if a change was made (changes can be canceled using\nOnItemSelectionChanging).\nPicker control is also to invoke this._internal.FireOnFocusIn() if control gains focus, and\nthis._internal.FireOnFocusOut() if control loses focus.", "Extends" : "" }, { "Name" : "Fit.Controls.PickerBaseTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Controls.PickerBaseTypeDefs.Item", "Description" : "Item information", "Extends" : "" }, { "Name" : "Fit.Controls.PickerBaseTypeDefs.SelectionEventHandlerArguments", "Description" : "Selection event handler arguments", "Extends" : "" }, { "Name" : "Fit.Controls.ProgressBar", "Description" : "ProgressBar control useful for indicating progress.", "Extends" : "Fit.Controls.Component" }, { "Name" : "Fit.Controls.ProgressBarTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Controls.SoftLog", "Description" : "The SoftLog is an alternative to the browser's console log which allows for debugging on devices without developer tools.", "Extends" : "Fit.Controls.Component" }, { "Name" : "Fit.Controls.TreeView", "Description" : "TreeView control allowing data to be listed in a structured manner.\nExtending from Fit.Controls.PickerBase.\nExtending from Fit.Controls.ControlBase.\n\nPerformance considerations (for huge amounts of data):\n\n1) Selectable(..) is used to transform how nodes allow selections\n(disabled/single select/multi select/select all). This requires the function to\nrecursively modify all nodes contained to make sure they are configured identically.\nHowever, this also happens when AddChild(node) is called, to make sure\nnodes added at any time is configured in accordance with TreeView configuration.\nSelectable(..) should therefore be called before adding nodes to prevent\nan extra recursive operation on all nodes contained.\n\n2) Selected(nodes) performs better than Value(\"val1;val2;val3\")\n\n3) RemoveChild(node) performance is non-linear, relative to the amount of children contained.\nThe function recursively iterates children to find selected nodes to deselect them, to\nmake sure TreeView is updated accordingly.\n\n4) GetChild(\"val1\", true) is faster at finding one specific node, compared to recursively\niterating the result from GetChildren(), since internal children collections are indexed.\n\n5) Be aware that some operations (e.g. AddChild, Expand/Collapse, Select/Deselect) forces\nInternet Explorer 8 to repaint tree to work around render bugs. Repainting can be minimized\ngreately by populating root nodes before adding them to the TreeView instance.\nHowever, be aware that this comes with the performance penalty mentioned in article 1 (AddChild).\nIt is likely that repainting does not pose a major performance problem, though.", "Extends" : "Fit.Controls.PickerBase;Fit.Controls.ControlBase" }, { "Name" : "Fit.Controls.TreeViewNode", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Controls.TreeViewNodeOptions", "Description" : "Options for TreeViewNode", "Extends" : "" }, { "Name" : "Fit.Controls.TreeViewTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Controls.TreeViewTypeDefs.SelectionEventHandlerArgs", "Description" : "Selection event handler arguments", "Extends" : "" }, { "Name" : "Fit.Controls.WSContextMenu", "Description" : "ContextMenu control allowing for quick access to select features provided by a WebService.\nExtending from Fit.Controls.ContextMenu.", "Extends" : "Fit.Controls.ContextMenu" }, { "Name" : "Fit.Controls.WSContextMenuTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Controls.WSContextMenuTypeDefs.DataEventArgs", "Description" : "Data event handler arguments", "Extends" : "" }, { "Name" : "Fit.Controls.WSContextMenuTypeDefs.RequestEventArgs", "Description" : "Request event handler arguments", "Extends" : "" }, { "Name" : "Fit.Controls.WSDropDown", "Description" : "WebService enabled Drop Down Menu control allowing for single and multi selection.\nSupports data selection using any control extending from Fit.Controls.PickerBase.\nThis control is extending from Fit.Controls.DropDown.", "Extends" : "Fit.Controls.DropDown" }, { "Name" : "Fit.Controls.WSDropDownTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Controls.WSDropDownTypeDefs.AbortedRequestEventArgs", "Description" : "Aborted request event arguments", "Extends" : "Fit.Controls.WSDropDownTypeDefs.RequestEventArgs" }, { "Name" : "Fit.Controls.WSDropDownTypeDefs.RequestEventArgs", "Description" : "Request event arguments", "Extends" : "" }, { "Name" : "Fit.Controls.WSDropDownTypeDefs.ResponseEventArgs", "Description" : "Response event arguments", "Extends" : "Fit.Controls.WSDropDownTypeDefs.RequestEventArgs" }, { "Name" : "Fit.Controls.WSListView", "Description" : "WebService enabled picker control which allows for entries\nto be selected in the DropDown control.", "Extends" : "Fit.Controls.ListView" }, { "Name" : "Fit.Controls.WSListViewTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Controls.WSListViewTypeDefs.AbortHandlerEventArgs", "Description" : "Abort event handler arguments", "Extends" : "Fit.Controls.WSListViewTypeDefs.EventHandlerArgs" }, { "Name" : "Fit.Controls.WSListViewTypeDefs.DataHandlerEventArgs", "Description" : "Data event handler arguments", "Extends" : "Fit.Controls.WSListViewTypeDefs.EventHandlerArgs" }, { "Name" : "Fit.Controls.WSListViewTypeDefs.EventHandlerArgs", "Description" : "Event handler arguments", "Extends" : "" }, { "Name" : "Fit.Controls.WSListViewTypeDefs.JsonItem", "Description" : "JSON list item", "Extends" : "" }, { "Name" : "Fit.Controls.WSTreeView", "Description" : "TreeView control allowing data from a\nWebService to be listed in a structured manner.\nExtending from Fit.Controls.TreeView.\n\nNotice: WSTreeView works a bit differently from TreeView.\nNodes are loaded on-demand, meaning when Selected(..) or Value(..)\nis called to set selections, nodes not loaded yet are stored internally as\npreselections. Nodes not loaded yet will not have OnSelect, OnSelected,\nand any associated events fired, until they are actually loaded.\nBut they will be returned when Selected() or Value() is called (getters).\nOnChange, however, will always be fired when selections are changed,\nno matter if nodes are loaded or not.", "Extends" : "Fit.Controls.TreeView" }, { "Name" : "Fit.Controls.WSTreeViewSelectAllMode", "Description" : "Enum indicating how data is loaded from WebService when using the Select All feature", "Extends" : "" }, { "Name" : "Fit.Controls.WSTreeViewTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Controls.WSTreeViewTypeDefs.AbortHandlerEventArgs", "Description" : "Abort event handler arguments", "Extends" : "Fit.Controls.WSTreeViewTypeDefs.EventHandlerArgs" }, { "Name" : "Fit.Controls.WSTreeViewTypeDefs.DataHandlerEventArgs", "Description" : "Data event handler arguments", "Extends" : "Fit.Controls.WSTreeViewTypeDefs.EventHandlerArgs" }, { "Name" : "Fit.Controls.WSTreeViewTypeDefs.EventHandlerArgs", "Description" : "Request handler event arguments", "Extends" : "" }, { "Name" : "Fit.Controls.WSTreeViewTypeDefs.JsonItem", "Description" : "JSON object representing node", "Extends" : "" }, { "Name" : "Fit.Cookies", "Description" : "Cookie functionality.\nSet/Get/Remove functions can be invoked as static members, or an instance of Fit.Cookies\ncan be created to isolate cookies to either the current path or a custom path.", "Extends" : "" }, { "Name" : "Fit.CookiesDefs.Cookie", "Description" : "New cookie", "Extends" : "Fit.CookiesDefs.CookieIdentity" }, { "Name" : "Fit.CookiesDefs.CookieIdentity", "Description" : "Cookie identity", "Extends" : "" }, { "Name" : "Fit.Core", "Description" : "Core features extending the capabilities of native JS", "Extends" : "" }, { "Name" : "Fit.Core.MergeOverwriteBehaviour", "Description" : "Merge behaviour", "Extends" : "" }, { "Name" : "Fit.CoreTypeDefs.DebounceFunction", "Description" : "", "Extends" : "" }, { "Name" : "Fit.CoreTypeDefs.VersionInfo", "Description" : "Version information", "Extends" : "" }, { "Name" : "Fit.Data", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Date", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Device", "Description" : "Provides access to device information.", "Extends" : "" }, { "Name" : "Fit.Dom", "Description" : "DOM (Document Object Model) manipulation and helper functionality", "Extends" : "" }, { "Name" : "Fit.DragDrop.Draggable", "Description" : "", "Extends" : "" }, { "Name" : "Fit.DragDrop.DraggableTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.DragDrop.DropZone", "Description" : "", "Extends" : "" }, { "Name" : "Fit.DragDrop.DropZoneTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.EventManager", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Events", "Description" : "Event handler functionality", "Extends" : "" }, { "Name" : "Fit.EventsTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.EventTypeDefs.ModifierKeys", "Description" : "Modifier keys", "Extends" : "" }, { "Name" : "Fit.EventTypeDefs.PointerState", "Description" : "Pointer state", "Extends" : "" }, { "Name" : "Fit.Http.JsonpRequest", "Description" : "JSONP (JSON with Padding) request functionality allowing for cross-domain data exchange.\n\n// Example code\n\nvar http = new Fit.Http.JsonpRequest(\"GetUsers.php\");\nhttp.OnSuccess(function(r)\n{\n     var data = http.GetResponse();\n     console.log(data);\n});\nhttp.Start();", "Extends" : "" }, { "Name" : "Fit.Http.JsonpRequestTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Http.JsonRequest", "Description" : "Asynchronous HTTP request functionality (AJAX/WebService)\noptimized for exchanging data with the server in JSON format.\nExtending from Fit.Http.Request.\n\n// Example code\n\nvar http = new Fit.Http.JsonRequest(\"WebService.asmx/AddUser\");\n\nhttp.SetData({ Username: \"Jack\", Password: \"Secret\" });\nhttp.OnSuccess(function(sender)\n{\n     var json = http.GetResponseJson();\n     alert(\"User created - server response: \" + json.Message);\n});\n\nhttp.Start();", "Extends" : "Fit.Http.Request" }, { "Name" : "Fit.Http.Request", "Description" : "Asynchronous HTTP request functionality (AJAX/WebService).\n\n// Example code\n\nvar http = new Fit.Http.Request(\"CreateUser.php\");\n\nhttp.SetData(\"username=Jack&password=Secret\");\nhttp.OnStateChange(function(r)\n{\n     if (http.GetCurrentState() === 4 && http.GetHttpStatus() === 200)\n         alert(\"User created - server said: \" + http.GetResponseText());\n});\n\nhttp.Start();", "Extends" : "" }, { "Name" : "Fit.Http.RequestTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Internationalization", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Loader", "Description" : "Loader is a useful mechanism for loading styleheets and JavaScript on demand in a non blocking manner.", "Extends" : "" }, { "Name" : "Fit.LoaderTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.LoaderTypeDefs.ResourceConfiguration", "Description" : "Resource configuration", "Extends" : "" }, { "Name" : "Fit.Math", "Description" : "Math related functionality.", "Extends" : "" }, { "Name" : "Fit.Math.MidpointRounding", "Description" : "Enum values determining how a rounding mechanism processes a number that is midway between two numbers.", "Extends" : "" }, { "Name" : "Fit.String", "Description" : "", "Extends" : "" }, { "Name" : "Fit.Template", "Description" : "Templating engine allowing for separation between layout and logic.\n\n// Example code\n\n// Load template (asynchronously)\nvar tpl = new Fit.Template(true);\ntpl.LoadUrl(&quot;UserListView.html&quot;, function(sender)\n{\n&#160;&#160;&#160;&#160; // Populate placeholders\n&#160;&#160;&#160;&#160; tpl.Content.Title = &quot;User list&quot;;\n&#160;&#160;&#160;&#160; tpl.Content.Description = &quot;List of users created in system&quot;;\n\n&#160;&#160;&#160;&#160; // Load user data\n&#160;&#160;&#160;&#160; var users = getUsers();\n\n&#160;&#160;&#160;&#160; // Populate user list with data\n&#160;&#160;&#160;&#160; Fit.Array.ForEach(users, function(userData)\n&#160;&#160;&#160;&#160; {\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var user = tpl.Content.Users.AddItem();\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; user.Name = userData.Name;\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; user.Role = userData.Role;\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; user.Email = userData.Email;\n&#160;&#160;&#160;&#160; });\n\n&#160;&#160;&#160;&#160; // Push changes to DOM\n&#160;&#160;&#160;&#160; tpl.Update();\n});\ntpl.Render(document.getElementById(\"UserList\"));\n\n// HTML template example (UserListView.html)\n\n&lt;h1&gt;{[Title]}&lt;/h1&gt;\n&lt;p&gt;{[Description]}&lt;/p&gt;\n&lt;table&gt;\n&#160;&#160;&#160;&#160; &lt;tr&gt;\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;td&gt;&lt;b&gt;User ID&lt;/b&gt;&lt;/td&gt;\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;td&gt;&lt;b&gt;Name&lt;/b&gt;&lt;/td&gt;\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;td&gt;&lt;b&gt;E-mail&lt;/b&gt;&lt;/td&gt;\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;td&gt;&lt;b&gt;Department&lt;/b&gt;&lt;/td&gt;\n&#160;&#160;&#160;&#160; &lt;/tr&gt;\n&#160;&#160;&#160;&#160; &lt;!-- LIST Users --&gt;\n&#160;&#160;&#160;&#160; &lt;tr&gt;\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;td&gt;{[Name]}&lt;/td&gt;\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;td&gt;{[Role]}&lt;/td&gt;\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;td&gt;{[Email]}&lt;/td&gt;\n&#160;&#160;&#160;&#160; &lt;/tr&gt;\n&#160;&#160;&#160;&#160; &lt;!-- /LIST Users --&gt;\n&lt;/table&gt;", "Extends" : "" }, { "Name" : "Fit.TemplateList", "Description" : "A template list is a dynamically created object representing\na variable number of items containing placeholders. An example\ncould be a list of Users containing information such as Name,\nPhone number, and E-mail address about each user.", "Extends" : "" }, { "Name" : "Fit.TemplateTypeDefs", "Description" : "", "Extends" : "" }, { "Name" : "Fit.TypeDefs.CssUnit", "Description" : "Represents a CSS unit", "Extends" : "" }, { "Name" : "Fit.TypeDefs.CssValue", "Description" : "Represents a CSS value", "Extends" : "" }, { "Name" : "Fit.TypeDefs.Dimension", "Description" : "Represents the size of a visual object", "Extends" : "" }, { "Name" : "Fit.TypeDefs.Position", "Description" : "Position of a visual object from top and left", "Extends" : "" }, { "Name" : "Fit.TypeDefs.ScrollBarInfo", "Description" : "True if scrollbar is enabled, otherwise False Size of scrollbar - always returns 0 if Enabled is False", "Extends" : "" }, { "Name" : "Fit.TypeDefs.ScrollBarsPresent", "Description" : "Vertical scrollbar information Horizontal scrollbar information", "Extends" : "" }, { "Name" : "Fit.Validation", "Description" : "Validation logic", "Extends" : "" }];
187
187
  var members = [{ "Container" : "Fit.BrowserTypeDefs.BrowserAppInfo", "Access" : "", "Name" : "Name", "Type" : "\"Edge\" | \"EdgeChromium\" | \"Chrome\" | \"Safari\" | \"MSIE\" | \"Firefox\" | \"Opera\" | \"OperaChromium\" | \"Unknown\"", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Browser app name" }, { "Container" : "Fit.BrowserTypeDefs.BrowserDetails", "Access" : "", "Name" : "IsMobile", "Type" : "boolean", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Boolean indicating whether this is a mobile device (tablet or phone)" }, { "Container" : "Fit.BrowserTypeDefs.BrowserDetails", "Access" : "", "Name" : "IsPhone", "Type" : "boolean", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Boolean indicating whether this is a phone" }, { "Container" : "Fit.BrowserTypeDefs.BrowserDetails", "Access" : "", "Name" : "IsTablet", "Type" : "boolean", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Boolean indicating whether this is a tablet device" }, { "Container" : "Fit.BrowserTypeDefs.BrowserDetails", "Access" : "", "Name" : "IsTouchEnabled", "Type" : "boolean", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Boolean indicating whether this is a touch enabled device" }, { "Container" : "Fit.BrowserTypeDefs.BrowserDetails", "Access" : "", "Name" : "Language", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Browser language, e.g. en, da, de, etc." }, { "Container" : "Fit.BrowserTypeDefs.BrowserDetails", "Access" : "", "Name" : "Version", "Type" : "integer", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Browser version" }, { "Container" : "Fit.BrowserTypeDefs.BrowserInfo", "Access" : "", "Name" : "Name", "Type" : "\"Edge\" | \"Chrome\" | \"Safari\" | \"MSIE\" | \"Firefox\" | \"Opera\" | \"Unknown\"", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Browser name" }, { "Container" : "Fit.BrowserTypeDefs.ParsedUrl", "Access" : "", "Name" : "Auth", "Type" : "string | null", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Authentication token or user:pass if specified, otherwise Null" }, { "Container" : "Fit.BrowserTypeDefs.ParsedUrl", "Access" : "", "Name" : "FullPath", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Path and Resource combined, e.g. /folder/resource.php" }, { "Container" : "Fit.BrowserTypeDefs.ParsedUrl", "Access" : "", "Name" : "Hash", "Type" : "string | null", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "URL hash value if specified, otherwise Null" }, { "Container" : "Fit.BrowserTypeDefs.ParsedUrl", "Access" : "", "Name" : "Host", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Hostname, e.g. localhost or domain name" }, { "Container" : "Fit.BrowserTypeDefs.ParsedUrl", "Access" : "", "Name" : "Parameters", "Type" : "{[key:string]: string | undefined}", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Associative array with key value pairs representing URL parameters" }, { "Container" : "Fit.BrowserTypeDefs.ParsedUrl", "Access" : "", "Name" : "Path", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Path to folder containing resources, e.g. / or /folder" }, { "Container" : "Fit.BrowserTypeDefs.ParsedUrl", "Access" : "", "Name" : "Port", "Type" : "integer", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Port number - returns -1 if not defined in URL" }, { "Container" : "Fit.BrowserTypeDefs.ParsedUrl", "Access" : "", "Name" : "Protocol", "Type" : "\"ftp\" | \"http\" | \"https\"", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Full URL address" }, { "Container" : "Fit.BrowserTypeDefs.ParsedUrl", "Access" : "", "Name" : "Resource", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Name of resource, e.g. resource.php" }, { "Container" : "Fit.BrowserTypeDefs.ParsedUrl", "Access" : "", "Name" : "Url", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Full URL address" }, { "Container" : "Fit.BrowserTypeDefs.QueryString", "Access" : "", "Name" : "Hash", "Type" : "string | null", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "URL hash value if specified, otherwise Null" }, { "Container" : "Fit.BrowserTypeDefs.QueryString", "Access" : "", "Name" : "Parameters", "Type" : "{[key:string]: string | undefined}", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Associative array with key value pairs representing URL parameters" }, { "Container" : "Fit.BrowserTypeDefs.QueryString", "Access" : "", "Name" : "Url", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Full URL address" }, { "Container" : "Fit.ColorTypeDefs.RgbaColor", "Access" : "", "Name" : "Alpha", "Type" : "integer", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Alpha channel (opacity)" }, { "Container" : "Fit.ColorTypeDefs.RgbColor", "Access" : "", "Name" : "Blue", "Type" : "integer", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "" }, { "Container" : "Fit.ColorTypeDefs.RgbColor", "Access" : "", "Name" : "Green", "Type" : "integer", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "" }, { "Container" : "Fit.ColorTypeDefs.RgbColor", "Access" : "", "Name" : "Red", "Type" : "integer", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "" }, { "Container" : "Fit.Controls.DropDownTypeDefs.DropDownItem", "Access" : "", "Name" : "Title", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Item title" }, { "Container" : "Fit.Controls.DropDownTypeDefs.DropDownItem", "Access" : "", "Name" : "Valid", "Type" : "boolean", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Value indicating whether item is a valid selection" }, { "Container" : "Fit.Controls.DropDownTypeDefs.DropDownItem", "Access" : "", "Name" : "Value", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Unique item value" }, { "Container" : "Fit.Controls.DropDownTypeDefs.UpdatedDropDownItem", "Access" : "", "Name" : "Exists", "Type" : "boolean", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Value indicating whether item still exists or not" }, { "Container" : "Fit.Controls.DropDownTypeDefs.UpdatedDropDownItem", "Access" : "", "Name" : "Title", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Updated item title" }, { "Container" : "Fit.Controls.DropDownTypeDefs.UpdatedDropDownItem", "Access" : "", "Name" : "Value", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "unique item value" }, { "Container" : "Fit.Controls.FilePickerTypeDefs.File", "Access" : "", "Name" : "Filename", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "File name" }, { "Container" : "Fit.Controls.FilePickerTypeDefs.File", "Access" : "", "Name" : "FileObject", "Type" : "File | null", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Native JS File object representing file data - returns Null on browsers not supporting the File API" }, { "Container" : "Fit.Controls.FilePickerTypeDefs.File", "Access" : "", "Name" : "GetImagePreview", "Type" : "Fit.Controls.FilePickerTypeDefs.GetImagePreview", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Get image preview for supported file types - returns Null on browsers not supporting the File API" }, { "Container" : "Fit.Controls.FilePickerTypeDefs.File", "Access" : "", "Name" : "Id", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Unique file ID" }, { "Container" : "Fit.Controls.FilePickerTypeDefs.File", "Access" : "", "Name" : "Processed", "Type" : "boolean", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Flag indicating whether file has been uploaded, or is currently being uploaded, with a value of True" }, { "Container" : "Fit.Controls.FilePickerTypeDefs.File", "Access" : "", "Name" : "Progress", "Type" : "integer", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Value from 0-100 indicating upload progress, a value of -1 when not uploading/uploaded" }, { "Container" : "Fit.Controls.FilePickerTypeDefs.File", "Access" : "", "Name" : "ServerResponse", "Type" : "string | null", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Response from server after successful file upload, otherwise Null" }, { "Container" : "Fit.Controls.FilePickerTypeDefs.File", "Access" : "", "Name" : "Size", "Type" : "integer", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "File size in bytes - returns -1 on browsers not supporting the File API" }, { "Container" : "Fit.Controls.FilePickerTypeDefs.File", "Access" : "", "Name" : "Type", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Mime type - returns Unknown on browsers not supporting the File API" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeAutoGrow", "Access" : "", "Name" : "Enabled", "Type" : "boolean", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Flag indicating whether auto grow feature is enabled or not - on by default if no height is set, or if Height(-1) is set" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeAutoGrow", "Access" : "", "Name" : "MaximumHeight", "Type" : "{ Value: number, Unit?: Fit.TypeDefs.CssUnit }", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Maximum height of editable area" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeAutoGrow", "Access" : "", "Name" : "MinimumHeight", "Type" : "{ Value: number, Unit?: Fit.TypeDefs.CssUnit }", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Minimum height of editable area" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeAutoGrow", "Access" : "", "Name" : "PreventResizeBeyondMaximumHeight", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Prevent user from resizing editor beyond maximum height (see MaximumHeight property - defaults to False)" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfig", "Access" : "", "Name" : "AutoGrow", "Type" : "Fit.Controls.InputTypeDefs.DesignModeAutoGrow", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Auto grow configuration" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfig", "Access" : "", "Name" : "Detachable", "Type" : "Fit.Controls.InputTypeDefs.DesignModeDetachable", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Detachable configuration" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfig", "Access" : "", "Name" : "InfoPanel", "Type" : "Fit.Controls.InputTypeDefs.DesignModeConfigInfoPanel", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Information panel configuration" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigInfoPanel", "Access" : "", "Name" : "Alignment", "Type" : "'Left' | 'Center' | 'Right'", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Text alignment - defaults to Center" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigInfoPanel", "Access" : "", "Name" : "Text", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Text to display" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfig", "Access" : "", "Name" : "Plugins", "Type" : "Fit.Controls.InputTypeDefs.DesignModeConfigPlugins", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Plugins configuration" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigPlugins", "Access" : "", "Name" : "Emojis", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Plugin(s) related to emoji support (defaults to False)" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigPlugins", "Access" : "", "Name" : "Images", "Type" : "Fit.Controls.InputTypeDefs.DesignModeConfigPluginsImagesConfig", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Plugin(s) related to support for images (not enabled by default)" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigPluginsImagesConfig", "Access" : "", "Name" : "EmbedType", "Type" : "'base64' | 'blob'", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "How to store and embed images. Base64 (default) is persistent while blob is temporary\nand must be extracted from memory and uploaded/stored to be permanantly persisted.\nReferences to blobs can be parsed from the HTML value produced by the editor." }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigPluginsImagesConfig", "Access" : "", "Name" : "Enabled", "Type" : "boolean", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Flag indicating whether to enable image plugins or not (defaults to False)" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigPluginsImagesConfig", "Access" : "", "Name" : "RevokeBlobUrlsOnDispose", "Type" : "'All' | 'UnreferencedOnly'", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "This option is in effect when EmbedType is blob.\nDispose images from blob storage (revoke blob URLs) added though image plugins when control is disposed.\nIf \"UnreferencedOnly\" is specified, the component using Fit.UI's input control will be responsible for\ndisposing referenced blobs. Failing to do so may cause a memory leak. Defaults to All." }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigPluginsImagesConfig", "Access" : "", "Name" : "RevokeExternalBlobUrlsOnDispose", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "This option is in effect when EmbedType is blob.\nDispose images from blob storage (revoke blob URLs) added through Value(..)\nfunction when control is disposed. Basically ownership of these blobs are handed\nover to the control for the duration of its life time.\nThese images are furthermore subject to the rule set in RevokeBlobUrlsOnDispose.\nDefaults to False." }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigPluginsImagesConfig", "Access" : "", "Name" : "RevokeUnreferencedBlobUrlsOnValueSet", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "This option is in effect when EmbedType is blob.\nDispose images from blob storage (revoke blob URLs) when value is changed with Value(..),\nbut keep any images still referenced in new value. This is useful if an editor instance\nis being used to modify different HTML values over time." }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigPluginsTablesConfig", "Access" : "", "Name" : "Enabled", "Type" : "boolean", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Flag indicating whether to enable table plugins or not (defaults to False)" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfig", "Access" : "", "Name" : "Tags", "Type" : "Fit.Controls.InputTypeDefs.DesignModeConfigTags", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Tags configuration" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigTags", "Access" : "", "Name" : "JsonpCallback", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Name of URL parameter receiving name of JSONP callback function (only for JSONP services)" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigTags", "Access" : "", "Name" : "JsonpTimeout", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Number of milliseconds to allow JSONP request to wait for a response before aborting (only for JSONP services)" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigTags", "Access" : "", "Name" : "OnRequest", "Type" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnRequest", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Event handler invoked when tags are requested. Request may be canceled by returning False.\nFunction receives two arguments:\nSender (Fit.Controls.Input) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.Input instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Query: Contains query information in its Marker and Query property" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigTags", "Access" : "", "Name" : "OnResponse", "Type" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnResponse", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Event handler invoked when tags data is received, allowing for data transformation.\nFunction receives two arguments:\nSender (Fit.Controls.Input) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.Input instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Query: Contains query information in its Marker and Query property\n- Tags: JSON tags array received from WebService" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigTags", "Access" : "", "Name" : "QueryUrl", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "URL to request data from. Endpoint receives the following payload:\n{ Marker: \"@\", Query: \"search\" }\n\nData is expected to be returned in the following format:\n[\n{ Value: \"t-1\", Title: \"Tag 1\", Icon: \"images/img1.jpeg\", Url: \"show/1\", Data: \"...\" },\n{ Value: \"t-2\", Title: \"Tag 2\", Icon: \"images/img2.jpeg\", Url: \"show/2\", Data: \"...\" }, ...\n]\n\nThe Value and Title properties are required. The Icon property is optional and must specify the path to an image.\nThe Url property is optional and must specify a path to a related page/resource.\nThe Data property is optional and allows for additional data to be associated with the tag.\nTo hold multiple values, consider using a base64 encoded JSON object:\nbtoa(JSON.stringify({ creationDate: new Date(), active: true }))\n\nThe data eventuelly results in a tag being added to the editor with the following format:\nTag name 1\nThe data-tag-data and data-tag-context attributes are only declared if the corresponding Data and Context properties are defined in data." }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigTags", "Access" : "", "Name" : "TagCreator", "Type" : "Fit.Controls.InputTypeDefs.DesignModeTagsTagCreator", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Callback invoked when a tag is being inserted into editor, allowing\nfor customization to the title and attributes associated with the tag.\nFunction receives two arguments:\nSender (Fit.Controls.Input) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.Input instance\n- QueryMarker: String containing query marker\n- Tag: JSON tag received from WebService" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigTags", "Access" : "", "Name" : "Triggers", "Type" : "{ Marker: string, MinimumCharacters?: integer, DebounceQuery?: integer, Pattern?: RegExp }[]", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Markers triggering tags request and context menu.\nNotice that Pattern, if specified, must include the marker for match to occur,\nas well as specifying the minimum amount of characters - e.g. /^@[a-z]{3,}$/" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfig", "Access" : "", "Name" : "Toolbar", "Type" : "Fit.Controls.InputTypeDefs.DesignModeConfigToolbar", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Toolbar configuration" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigToolbar", "Access" : "", "Name" : "Detach", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Enable detach button (defaults to false)" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigToolbar", "Access" : "", "Name" : "Emojis", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Enable emoji button (defaults to False)" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigToolbar", "Access" : "", "Name" : "Formatting", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Enable text formatting (bold, italic, underline) (defaults to True)" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigToolbar", "Access" : "", "Name" : "HideWhenInactive", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Hide toolbar when control is inactive (defaults to False)" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigToolbar", "Access" : "", "Name" : "Images", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Enable image button (defaults to false)" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigToolbar", "Access" : "", "Name" : "Justify", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Enable text alignment (defaults to True)" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigToolbar", "Access" : "", "Name" : "Links", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Enable links (defaults to True)" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigToolbar", "Access" : "", "Name" : "Lists", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Enable ordered and unordered lists with indentation (defaults to True)" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigToolbar", "Access" : "", "Name" : "Position", "Type" : "'Top' | 'Bottom'", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Toolbar position (defaults to Top)" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigToolbar", "Access" : "", "Name" : "Sticky", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Make toolbar stick to edge of scroll container on supported browsers when scrolling (defaults to False)" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeConfigToolbar", "Access" : "", "Name" : "Tables", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Enable table button (defaults to false)" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeDetachable", "Access" : "", "Name" : "Draggable", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Flag indicating whether dialog is draggable" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeDetachable", "Access" : "", "Name" : "Height", "Type" : "{ Value: number, Unit?: Fit.TypeDefs.CssUnit }", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Dialog height" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeDetachable", "Access" : "", "Name" : "Maximizable", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Flag indicating whether dialog is maximizable" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeDetachable", "Access" : "", "Name" : "Maximized", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Flag indicating whether dialog is initially maximized" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeDetachable", "Access" : "", "Name" : "MaximumHeight", "Type" : "{ Value: number, Unit?: Fit.TypeDefs.CssUnit }", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Maximum height of dialog" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeDetachable", "Access" : "", "Name" : "MaximumWidth", "Type" : "{ Value: number, Unit?: Fit.TypeDefs.CssUnit }", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Maximum Width of dialog" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeDetachable", "Access" : "", "Name" : "MinimumHeight", "Type" : "{ Value: number, Unit?: Fit.TypeDefs.CssUnit }", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Minimum height of dialog" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeDetachable", "Access" : "", "Name" : "MinimumWidth", "Type" : "{ Value: number, Unit?: Fit.TypeDefs.CssUnit }", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Minimum width of dialog" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeDetachable", "Access" : "", "Name" : "Resizable", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Flag indicating whether dialog is resizable" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeDetachable", "Access" : "", "Name" : "Title", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Dialog title" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeDetachable", "Access" : "", "Name" : "Width", "Type" : "{ Value: number, Unit?: Fit.TypeDefs.CssUnit }", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Dialog width" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnRequestEventHandlerArgs", "Access" : "", "Name" : "Query", "Type" : "{ Marker: string, Query: string }", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Query information" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnRequestEventHandlerArgs", "Access" : "", "Name" : "Request", "Type" : "Fit.Http.JsonRequest | Fit.Http.JsonpRequest", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Instance of JsonRequest or JsonpRequest" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnRequestEventHandlerArgs", "Access" : "", "Name" : "Sender", "Type" : "Fit.Controls.Input", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Instance of control" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseEventHandlerArgs", "Access" : "", "Name" : "Query", "Type" : "{ Marker: string, Query: string }", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Query information" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseEventHandlerArgs", "Access" : "", "Name" : "Request", "Type" : "Fit.Http.JsonRequest | Fit.Http.JsonpRequest", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Instance of JsonRequest or JsonpRequest" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseEventHandlerArgs", "Access" : "", "Name" : "Sender", "Type" : "Fit.Controls.Input", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Instance of control" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseEventHandlerArgs", "Access" : "", "Name" : "Tags", "Type" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseJsonTag[]", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Tags received from WebService" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseJsonTag", "Access" : "", "Name" : "Context", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Optional context information to associate with tag" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseJsonTag", "Access" : "", "Name" : "Data", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Optional data to associate with tag" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseJsonTag", "Access" : "", "Name" : "Icon", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Optional URL to icon/image" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseJsonTag", "Access" : "", "Name" : "Title", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Title" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseJsonTag", "Access" : "", "Name" : "Url", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Optional URL to associate with tag" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseJsonTag", "Access" : "", "Name" : "Value", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Unique value" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorCallbackArgs", "Access" : "", "Name" : "QueryMarker", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Query marker" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorCallbackArgs", "Access" : "", "Name" : "Sender", "Type" : "Fit.Controls.Input", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Instance of control" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorCallbackArgs", "Access" : "", "Name" : "Tag", "Type" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseJsonTag", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Tag received from WebService" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorReturnType", "Access" : "", "Name" : "Context", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Optional tag context" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorReturnType", "Access" : "", "Name" : "Data", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Optional tag data" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorReturnType", "Access" : "", "Name" : "Title", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Tag title" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorReturnType", "Access" : "", "Name" : "Type", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Tag type (marker)" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorReturnType", "Access" : "", "Name" : "Url", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Optional tag URL" }, { "Container" : "Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorReturnType", "Access" : "", "Name" : "Value", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Tag value (ID)" }, { "Container" : "Fit.Controls.ListViewTypeDefs.ListViewItem", "Access" : "", "Name" : "Title", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Item title" }, { "Container" : "Fit.Controls.ListViewTypeDefs.ListViewItem", "Access" : "", "Name" : "Value", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Unique item value" }, { "Container" : "Fit.Controls.PickerBaseTypeDefs.Item", "Access" : "", "Name" : "Title", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Item title" }, { "Container" : "Fit.Controls.PickerBaseTypeDefs.Item", "Access" : "", "Name" : "Value", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Item value" }, { "Container" : "Fit.Controls.PickerBaseTypeDefs.SelectionEventHandlerArguments", "Access" : "", "Name" : "Selected", "Type" : "boolean", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Flag indicating whether item is selected or not" }, { "Container" : "Fit.Controls.PickerBaseTypeDefs.SelectionEventHandlerArguments", "Access" : "", "Name" : "Title", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Item title" }, { "Container" : "Fit.Controls.PickerBaseTypeDefs.SelectionEventHandlerArguments", "Access" : "", "Name" : "Value", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Item value" }, { "Container" : "Fit.Controls.TreeViewNodeOptions", "Access" : "", "Name" : "HtmlAllowed", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Value indicating whether HTML is allowed (shown) in TreeView node" }, { "Container" : "Fit.Controls.TreeViewTypeDefs.SelectionEventHandlerArgs", "Access" : "", "Name" : "Node", "Type" : "Fit.Controls.TreeViewNode | null", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Instance of TreeViewNode - Null if Select All was triggered for root nodes (all nodes)" }, { "Container" : "Fit.Controls.TreeViewTypeDefs.SelectionEventHandlerArgs", "Access" : "", "Name" : "Selected", "Type" : "boolean", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Value indicating new selection state" }, { "Container" : "Fit.Controls.WSContextMenuTypeDefs.DataEventArgs", "Access" : "", "Name" : "Children", "Type" : "object", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "JSON items received from web service" }, { "Container" : "Fit.Controls.WSContextMenuTypeDefs.DataEventArgs", "Access" : "", "Name" : "Request", "Type" : "Fit.Http.JsonpRequest | Fit.Http.JsonRequest", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Instance of JsonpRequest or JsonRequest" }, { "Container" : "Fit.Controls.WSContextMenuTypeDefs.DataEventArgs", "Access" : "", "Name" : "Sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Instance of control" }, { "Container" : "Fit.Controls.WSContextMenuTypeDefs.RequestEventArgs", "Access" : "", "Name" : "Request", "Type" : "Fit.Http.JsonpRequest | Fit.Http.JsonRequest", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Instance of JsonpRequest or JsonRequest" }, { "Container" : "Fit.Controls.WSContextMenuTypeDefs.RequestEventArgs", "Access" : "", "Name" : "Sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Instance of control" }, { "Container" : "Fit.Controls.WSDropDownTypeDefs.AbortedRequestEventArgs", "Access" : "", "Name" : "Data", "Type" : "null", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "JSON data received from web service" }, { "Container" : "Fit.Controls.WSDropDownTypeDefs.RequestEventArgs", "Access" : "", "Name" : "Node", "Type" : "Fit.Controls.TreeViewNode | null", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Instance of TreeViewNode for which chilren are being requested, Null if root nodes are being requested, or if WSListView triggered request" }, { "Container" : "Fit.Controls.WSDropDownTypeDefs.RequestEventArgs", "Access" : "", "Name" : "Picker", "Type" : "Fit.Controls.WSTreeView | Fit.Controls.WSListView", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Instance of picker control causing web service request" }, { "Container" : "Fit.Controls.WSDropDownTypeDefs.RequestEventArgs", "Access" : "", "Name" : "Request", "Type" : "Fit.Http.JsonpRequest | Fit.Http.JsonRequest", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Instance of JsonpRequest or JsonRequest" }, { "Container" : "Fit.Controls.WSDropDownTypeDefs.RequestEventArgs", "Access" : "", "Name" : "Search", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Search value if entered by user" }, { "Container" : "Fit.Controls.WSDropDownTypeDefs.RequestEventArgs", "Access" : "", "Name" : "Sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Instance of control" }, { "Container" : "Fit.Controls.WSDropDownTypeDefs.ResponseEventArgs", "Access" : "", "Name" : "Data", "Type" : "Fit.Controls.WSListViewTypeDefs.JsonItem[] | Fit.Controls.WSTreeViewTypeDefs.JsonItem[]", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "JSON data received from web service" }, { "Container" : "Fit.Controls.WSListViewTypeDefs.AbortHandlerEventArgs", "Access" : "", "Name" : "Items", "Type" : "null", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "JSON list items" }, { "Container" : "Fit.Controls.WSListViewTypeDefs.DataHandlerEventArgs", "Access" : "", "Name" : "Items", "Type" : "Fit.Controls.WSListViewTypeDefs.JsonItem[]", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "JSON list items" }, { "Container" : "Fit.Controls.WSListViewTypeDefs.EventHandlerArgs", "Access" : "", "Name" : "Request", "Type" : "Fit.Http.JsonRequest | Fit.Http.JsonpRequest", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Instance of JsonRequest or JsonpRequest" }, { "Container" : "Fit.Controls.WSListViewTypeDefs.EventHandlerArgs", "Access" : "", "Name" : "Sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Instance of control" }, { "Container" : "Fit.Controls.WSListViewTypeDefs.JsonItem", "Access" : "", "Name" : "Selectable", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Value indicating whether item can be selected or not - selectable by default" }, { "Container" : "Fit.Controls.WSListViewTypeDefs.JsonItem", "Access" : "", "Name" : "Title", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Title - using Value if not defined" }, { "Container" : "Fit.Controls.WSListViewTypeDefs.JsonItem", "Access" : "", "Name" : "Value", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Unique value" }, { "Container" : "Fit.Controls.WSTreeViewTypeDefs.AbortHandlerEventArgs", "Access" : "", "Name" : "Children", "Type" : "null", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "JSON objects representing nodes" }, { "Container" : "Fit.Controls.WSTreeViewTypeDefs.DataHandlerEventArgs", "Access" : "", "Name" : "Children", "Type" : "Fit.Controls.WSTreeViewTypeDefs.JsonItem[]", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "JSON objects representing nodes" }, { "Container" : "Fit.Controls.WSTreeViewTypeDefs.EventHandlerArgs", "Access" : "", "Name" : "Node", "Type" : "Fit.Controls.TreeViewNode", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Instance of TreeViewNode" }, { "Container" : "Fit.Controls.WSTreeViewTypeDefs.EventHandlerArgs", "Access" : "", "Name" : "Request", "Type" : "Fit.Http.JsonRequest | Fit.Http.JsonpRequest", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Instance of JsonRequest or JsonpRequest" }, { "Container" : "Fit.Controls.WSTreeViewTypeDefs.EventHandlerArgs", "Access" : "", "Name" : "Sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Instance of control" }, { "Container" : "Fit.Controls.WSTreeViewTypeDefs.JsonItem", "Access" : "", "Name" : "Children", "Type" : "Fit.Controls.WSTreeViewTypeDefs.JsonItem[]", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Children" }, { "Container" : "Fit.Controls.WSTreeViewTypeDefs.JsonItem", "Access" : "", "Name" : "Expanded", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Value indicating whether item is initially expanded to reveal children - not expanded by default" }, { "Container" : "Fit.Controls.WSTreeViewTypeDefs.JsonItem", "Access" : "", "Name" : "HasChildren", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Set True to trigger an additional request to web service to retrieve children for this item when it is expanded" }, { "Container" : "Fit.Controls.WSTreeViewTypeDefs.JsonItem", "Access" : "", "Name" : "Selectable", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Value indicating whether item can be selected or not - not selectable by default" }, { "Container" : "Fit.Controls.WSTreeViewTypeDefs.JsonItem", "Access" : "", "Name" : "Selected", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Value indicating whether item is initially selected - not selected by default" }, { "Container" : "Fit.Controls.WSTreeViewTypeDefs.JsonItem", "Access" : "", "Name" : "Supplementary", "Type" : "{[key:string]: string}", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Associative string array to carry additional information" }, { "Container" : "Fit.Controls.WSTreeViewTypeDefs.JsonItem", "Access" : "", "Name" : "Title", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Title - using Value if not defined" }, { "Container" : "Fit.Controls.WSTreeViewTypeDefs.JsonItem", "Access" : "", "Name" : "Value", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Unique value" }, { "Container" : "Fit.CookiesDefs.CookieIdentity", "Access" : "", "Name" : "Domain", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "See Fit.Cookies.Set(..) function's description for its domain argument" }, { "Container" : "Fit.CookiesDefs.CookieIdentity", "Access" : "", "Name" : "Name", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "See Fit.Cookies.Set(..) function's description for its name argument" }, { "Container" : "Fit.CookiesDefs.CookieIdentity", "Access" : "", "Name" : "Path", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "See Fit.Cookies.Set(..) function's description for its path argument" }, { "Container" : "Fit.CookiesDefs.Cookie", "Access" : "", "Name" : "SameSite", "Type" : "\"None\" | \"Lax\" | \"Strict\"", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "See Fit.Cookies.Set(..) function's description for its sameSite argument" }, { "Container" : "Fit.CookiesDefs.Cookie", "Access" : "", "Name" : "Seconds", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "See Fit.Cookies.Set(..) function's description for its seconds argument" }, { "Container" : "Fit.CookiesDefs.Cookie", "Access" : "", "Name" : "Secure", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "See Fit.Cookies.Set(..) function's description for its secure argument" }, { "Container" : "Fit.CookiesDefs.Cookie", "Access" : "", "Name" : "Value", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "See Fit.Cookies.Set(..) function's description for its value argument" }, { "Container" : "Fit.CoreTypeDefs.DebounceFunction", "Access" : "", "Name" : "Invoke", "Type" : "function", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Schedule or re-schedule execution of function" }, { "Container" : "Fit.CoreTypeDefs.VersionInfo", "Access" : "", "Name" : "Major", "Type" : "integer", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Major version number" }, { "Container" : "Fit.CoreTypeDefs.VersionInfo", "Access" : "", "Name" : "Minor", "Type" : "integer", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Minor version number" }, { "Container" : "Fit.CoreTypeDefs.VersionInfo", "Access" : "", "Name" : "Patch", "Type" : "integer", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Patch version number" }, { "Container" : "Fit.CoreTypeDefs.VersionInfo", "Access" : "", "Name" : "Version", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "String version number in the format Major.Minor.Patch" }, { "Container" : "Fit.EventTypeDefs.ModifierKeys", "Access" : "", "Name" : "Alt", "Type" : "boolean", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "True if Alt key is being held down, otherwise False" }, { "Container" : "Fit.EventTypeDefs.ModifierKeys", "Access" : "", "Name" : "Ctrl", "Type" : "boolean", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "True if Ctrl key is being held down, otherwise False" }, { "Container" : "Fit.EventTypeDefs.ModifierKeys", "Access" : "", "Name" : "KeyDown", "Type" : "integer", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Key code if key is pressed, otherwise -1" }, { "Container" : "Fit.EventTypeDefs.ModifierKeys", "Access" : "", "Name" : "KeyUp", "Type" : "integer", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Key code if key is released, otherwise -1" }, { "Container" : "Fit.EventTypeDefs.ModifierKeys", "Access" : "", "Name" : "Meta", "Type" : "boolean", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "True if Meta key (Windows key on a PC, Cmd key on a Mac) is being held down, otherwise False" }, { "Container" : "Fit.EventTypeDefs.ModifierKeys", "Access" : "", "Name" : "Shift", "Type" : "boolean", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "True if Shift key is being held down, otherwise False" }, { "Container" : "Fit.EventTypeDefs.PointerState", "Access" : "", "Name" : "Buttons", "Type" : "{ Primary: boolean, Secondary: boolean, Touch: boolean }", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Pointer buttons currently activated" }, { "Container" : "Fit.EventTypeDefs.PointerState", "Access" : "", "Name" : "Coordinates", "Type" : "{ ViewPort: Fit.TypeDefs.Position, Document: Fit.TypeDefs.Position }", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Pointer position within viewport and document, which might have been scrolled" }, { "Container" : "Fit.EventTypeDefs.PointerState", "Access" : "", "Name" : "Target", "Type" : "DOMElement | null", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Pointer target" }, { "Container" : "Fit.LoaderTypeDefs.ResourceConfiguration", "Access" : "", "Name" : "attributes", "Type" : "{[key:string]: string}", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Attributes registered with script block" }, { "Container" : "Fit.LoaderTypeDefs.ResourceConfiguration", "Access" : "", "Name" : "loaded", "Type" : "Fit.LoaderTypeDefs.LoadSingleConfigurationEventHandler", "Default" : "undefined", "Nullable" : false, "Static" : false, "Description" : "Callback invoked when resource is loaded" }, { "Container" : "Fit.LoaderTypeDefs.ResourceConfiguration", "Access" : "", "Name" : "source", "Type" : "string", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Path to resource" }, { "Container" : "Fit.TypeDefs.CssValue", "Access" : "", "Name" : "Unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Unit" }, { "Container" : "Fit.TypeDefs.CssValue", "Access" : "", "Name" : "Value", "Type" : "number", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Value" }, { "Container" : "Fit.TypeDefs.Dimension", "Access" : "", "Name" : "Height", "Type" : "integer", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Object height in pixels" }, { "Container" : "Fit.TypeDefs.Dimension", "Access" : "", "Name" : "Width", "Type" : "integer", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Object width in pixels" }, { "Container" : "Fit.TypeDefs.Position", "Access" : "", "Name" : "X", "Type" : "integer", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Position from left in pixels" }, { "Container" : "Fit.TypeDefs.Position", "Access" : "", "Name" : "Y", "Type" : "integer", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Position from top in pixels" }, { "Container" : "Fit.TypeDefs.ScrollBarInfo", "Access" : "", "Name" : "Enabled", "Type" : "boolean", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "True if scrollbar is enabled, otherwise False" }, { "Container" : "Fit.TypeDefs.ScrollBarInfo", "Access" : "", "Name" : "Size", "Type" : "integer", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Size of scrollbar - always returns 0 if Enabled is False" }, { "Container" : "Fit.TypeDefs.ScrollBarsPresent", "Access" : "", "Name" : "Horizontal", "Type" : "Fit.TypeDefs.ScrollBarInfo", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Horizontal scrollbar information" }, { "Container" : "Fit.TypeDefs.ScrollBarsPresent", "Access" : "", "Name" : "Vertical", "Type" : "Fit.TypeDefs.ScrollBarInfo", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Vertical scrollbar information" }, { "Container" : "Fit._internal.Controls.Input.Editor", "Access" : "public", "Name" : "Skin", "Type" : "'bootstrapck' | 'moono-lisa' | null", "Default" : "", "Nullable" : false, "Static" : true, "Description" : "Skin used with DesignMode - must be set before an editor is created and cannot be changed for each individual control" }, { "Container" : "Fit.Controls.ButtonType", "Access" : "public", "Name" : "Danger", "Type" : "string", "Default" : "Danger", "Nullable" : false, "Static" : true, "Description" : "Red unless styled differently" }, { "Container" : "Fit.Controls.ButtonType", "Access" : "public", "Name" : "Default", "Type" : "string", "Default" : "Default", "Nullable" : false, "Static" : true, "Description" : "White unless styled differently - default look and feel" }, { "Container" : "Fit.Controls.ButtonType", "Access" : "public", "Name" : "Info", "Type" : "string", "Default" : "Info", "Nullable" : false, "Static" : true, "Description" : "Turquoise unless styled differently" }, { "Container" : "Fit.Controls.ButtonType", "Access" : "public", "Name" : "Primary", "Type" : "string", "Default" : "Primary", "Nullable" : false, "Static" : true, "Description" : "Blue unless styled differently" }, { "Container" : "Fit.Controls.ButtonType", "Access" : "public", "Name" : "Success", "Type" : "string", "Default" : "Success", "Nullable" : false, "Static" : true, "Description" : "Green unless styled differently" }, { "Container" : "Fit.Controls.ButtonType", "Access" : "public", "Name" : "Warning", "Type" : "string", "Default" : "Warning", "Nullable" : false, "Static" : true, "Description" : "Orange unless styled differently" }, { "Container" : "Fit.Controls.InputResizing", "Access" : "public", "Name" : "Disabled", "Type" : "string", "Default" : "Disabled", "Nullable" : false, "Static" : true, "Description" : "Do not allow resizing" }, { "Container" : "Fit.Controls.InputResizing", "Access" : "public", "Name" : "Enabled", "Type" : "string", "Default" : "Enabled", "Nullable" : false, "Static" : true, "Description" : "Allow for resizing both vertically and horizontally" }, { "Container" : "Fit.Controls.InputResizing", "Access" : "public", "Name" : "Horizontal", "Type" : "string", "Default" : "Horizontal", "Nullable" : false, "Static" : true, "Description" : "Allow for horizontal resizing" }, { "Container" : "Fit.Controls.InputResizing", "Access" : "public", "Name" : "Vertical", "Type" : "string", "Default" : "Vertical", "Nullable" : false, "Static" : true, "Description" : "Allow for vertical resizing" }, { "Container" : "Fit.Controls.InputType", "Access" : "public", "Name" : "Color", "Type" : "string", "Default" : "Color", "Nullable" : false, "Static" : true, "Description" : "Input control useful for entering a color" }, { "Container" : "Fit.Controls.InputType", "Access" : "public", "Name" : "Date", "Type" : "string", "Default" : "Date", "Nullable" : false, "Static" : true, "Description" : "Input control useful for entering a date" }, { "Container" : "Fit.Controls.InputType", "Access" : "public", "Name" : "DateTime", "Type" : "string", "Default" : "DateTime", "Nullable" : false, "Static" : true, "Description" : "Input control useful for entering a date and time" }, { "Container" : "Fit.Controls.InputType", "Access" : "public", "Name" : "Email", "Type" : "string", "Default" : "Email", "Nullable" : false, "Static" : true, "Description" : "Input control useful for entering an e-mail address" }, { "Container" : "Fit.Controls.InputType", "Access" : "public", "Name" : "Month", "Type" : "string", "Default" : "Month", "Nullable" : false, "Static" : true, "Description" : "Input control useful for entering a month" }, { "Container" : "Fit.Controls.InputType", "Access" : "public", "Name" : "Number", "Type" : "string", "Default" : "Number", "Nullable" : false, "Static" : true, "Description" : "Input control useful for entering a number" }, { "Container" : "Fit.Controls.InputType", "Access" : "public", "Name" : "Password", "Type" : "string", "Default" : "Password", "Nullable" : false, "Static" : true, "Description" : "Input control useful for entering a password (characters are masked)" }, { "Container" : "Fit.Controls.InputType", "Access" : "public", "Name" : "PhoneNumber", "Type" : "string", "Default" : "PhoneNumber", "Nullable" : false, "Static" : true, "Description" : "Input control useful for entering a phone number" }, { "Container" : "Fit.Controls.InputType", "Access" : "public", "Name" : "Text", "Type" : "string", "Default" : "Text", "Nullable" : false, "Static" : true, "Description" : "Input control useful for entering ordinary text" }, { "Container" : "Fit.Controls.InputType", "Access" : "public", "Name" : "Textarea", "Type" : "string", "Default" : "Textarea", "Nullable" : false, "Static" : true, "Description" : "Multi line input field" }, { "Container" : "Fit.Controls.InputType", "Access" : "public", "Name" : "Time", "Type" : "string", "Default" : "Time", "Nullable" : false, "Static" : true, "Description" : "Input control useful for entering time" }, { "Container" : "Fit.Controls.InputType", "Access" : "public", "Name" : "Week", "Type" : "string", "Default" : "Week", "Nullable" : false, "Static" : true, "Description" : "Input control useful for entering a week number" }, { "Container" : "Fit.Controls.WSTreeViewSelectAllMode", "Access" : "public", "Name" : "Instantly", "Type" : "string", "Default" : "Instantly", "Nullable" : false, "Static" : true, "Description" : "Load all children at once (WebService is expected to return the complete hierarchy in one single request).\nThis approach will provide better performance as it does not fire OnChange for every child expanded,\nand only sends one HTTP request to WebService." }, { "Container" : "Fit.Controls.WSTreeViewSelectAllMode", "Access" : "public", "Name" : "Progressively", "Type" : "string", "Default" : "Progressively", "Nullable" : false, "Static" : true, "Description" : "Chain load children by progressively expanding them as they are loaded.\nThis may result in several HTTP requests to WebService, and OnChange will\nfire for every node expanded if children are available server side." }, { "Container" : "Fit.Core.MergeOverwriteBehaviour", "Access" : "public", "Name" : "Always", "Type" : "string", "Default" : "Always", "Nullable" : false, "Static" : true, "Description" : "Always overwrite property values from target object with property values from merge object (default behaviour)" }, { "Container" : "Fit.Core.MergeOverwriteBehaviour", "Access" : "public", "Name" : "Never", "Type" : "string", "Default" : "Never", "Nullable" : false, "Static" : true, "Description" : "Never overwrite property values from target object - only add missing property values from merge object" }, { "Container" : "Fit.Core.MergeOverwriteBehaviour", "Access" : "public", "Name" : "SkipNullAndUndefined", "Type" : "string", "Default" : "SkipNullAndUndefined", "Nullable" : false, "Static" : true, "Description" : "Always overwrite property values from target object with property values from merge object, except values from merge object that are Null or Undefined" }, { "Container" : "Fit.Device", "Access" : "", "Name" : "HasMouse", "Type" : "boolean", "Default" : "", "Nullable" : false, "Static" : true, "Description" : "Flag indicating whether device has a mouse (or another type of precision pointer) attached" }, { "Container" : "Fit.Device", "Access" : "", "Name" : "HasTouch", "Type" : "boolean", "Default" : "", "Nullable" : false, "Static" : true, "Description" : "Flag indicating whether device has touch support" }, { "Container" : "Fit.Device", "Access" : "", "Name" : "OptimizeForTouch", "Type" : "boolean", "Default" : "", "Nullable" : false, "Static" : true, "Description" : "Flag indicating whether user experience should be optimized for touch interaction" }, { "Container" : "Fit.Math.MidpointRounding", "Access" : "public", "Name" : "AwayFromZero", "Type" : "string", "Default" : "AwayFromZero", "Nullable" : false, "Static" : true, "Description" : "When a number is midway between two others, the value is rounded towards the nearest number away from zero. Examples:\n1.4 becomes 1, 1.5 (midway) becomes 2, and 1.6 becomes 2.\n-1,4 becomes -1, -1,5 (midway) becomes -2, and -1.6 becomes -2.\nThis is the default behaviour of PHP's round(..) function and .NET's Math.Round(..) function." }, { "Container" : "Fit.Math.MidpointRounding", "Access" : "public", "Name" : "Down", "Type" : "string", "Default" : "Down", "Nullable" : false, "Static" : true, "Description" : "When a number is midway between two others, the value is rounded down towards a negative value. Examples:\n1.4 becomes 1, 1.5 (midway) becomes 1, and 1.6 becomes 2.\n-1,4 becomes -1, -1,5 (midway) becomes -2, and -1.6 becomes -2.\nThis is the reverse behaviour of Fit.Math.MidpointRounding.Up." }, { "Container" : "Fit.Math.MidpointRounding", "Access" : "public", "Name" : "Up", "Type" : "string", "Default" : "Up", "Nullable" : false, "Static" : true, "Description" : "When a number is midway between two others, the value is rounded up towards a positive value. Examples:\n1.4 becomes 1, 1.5 (midway) becomes 2, and 1.6 becomes 2.\n-1,4 becomes -1, -1,5 (midway) becomes -1, and -1.6 becomes -2.\nThis is the default behaviour for JavaScript's Math.round(..) function." }, { "Container" : "Fit.TypeDefs.CssUnit", "Access" : "public", "Name" : "%", "Type" : "string", "Default" : "%", "Nullable" : false, "Static" : true, "Description" : "" }, { "Container" : "Fit.TypeDefs.CssUnit", "Access" : "public", "Name" : "ch", "Type" : "string", "Default" : "ch", "Nullable" : false, "Static" : true, "Description" : "" }, { "Container" : "Fit.TypeDefs.CssUnit", "Access" : "public", "Name" : "cm", "Type" : "string", "Default" : "cm", "Nullable" : false, "Static" : true, "Description" : "" }, { "Container" : "Fit.TypeDefs.CssUnit", "Access" : "public", "Name" : "em", "Type" : "string", "Default" : "em", "Nullable" : false, "Static" : true, "Description" : "" }, { "Container" : "Fit.TypeDefs.CssUnit", "Access" : "public", "Name" : "ex", "Type" : "string", "Default" : "ex", "Nullable" : false, "Static" : true, "Description" : "" }, { "Container" : "Fit.TypeDefs.CssUnit", "Access" : "public", "Name" : "in", "Type" : "string", "Default" : "in", "Nullable" : false, "Static" : true, "Description" : "" }, { "Container" : "Fit.TypeDefs.CssUnit", "Access" : "public", "Name" : "mm", "Type" : "string", "Default" : "mm", "Nullable" : false, "Static" : true, "Description" : "" }, { "Container" : "Fit.TypeDefs.CssUnit", "Access" : "public", "Name" : "pc", "Type" : "string", "Default" : "pc", "Nullable" : false, "Static" : true, "Description" : "" }, { "Container" : "Fit.TypeDefs.CssUnit", "Access" : "public", "Name" : "pt", "Type" : "string", "Default" : "pt", "Nullable" : false, "Static" : true, "Description" : "" }, { "Container" : "Fit.TypeDefs.CssUnit", "Access" : "public", "Name" : "px", "Type" : "string", "Default" : "px", "Nullable" : false, "Static" : true, "Description" : "" }, { "Container" : "Fit.TypeDefs.CssUnit", "Access" : "public", "Name" : "rem", "Type" : "string", "Default" : "rem", "Nullable" : false, "Static" : true, "Description" : "" }, { "Container" : "Fit.TypeDefs.CssUnit", "Access" : "public", "Name" : "vh", "Type" : "string", "Default" : "vh", "Nullable" : false, "Static" : true, "Description" : "" }, { "Container" : "Fit.TypeDefs.CssUnit", "Access" : "public", "Name" : "vmax", "Type" : "string", "Default" : "vmax", "Nullable" : false, "Static" : true, "Description" : "" }, { "Container" : "Fit.TypeDefs.CssUnit", "Access" : "public", "Name" : "vmin", "Type" : "string", "Default" : "vmin", "Nullable" : false, "Static" : true, "Description" : "" }, { "Container" : "Fit.TypeDefs.CssUnit", "Access" : "public", "Name" : "vw", "Type" : "string", "Default" : "vw", "Nullable" : false, "Static" : true, "Description" : "" }, { "Container" : "Fit.Template", "Access" : "public", "Name" : "Content", "Type" : "object", "Default" : "", "Nullable" : false, "Static" : false, "Description" : "Once template is loaded, any placeholder or list will be accessible\nthrough the Content property. A placeholder identified as UserRole\nwill be accessible as templateInstance.Content.UserRole.\nUserRole is a property that can be set with either a string,\nan instance of a Fit.UI control, or a DOMElement.\nA list identified as Users is accessible using\ntemplateInstance.Content.Users. See Fit.TemplateList for\nadditional information." }];
188
- var functions = [{ "Container" : "Fit.Controls.ButtonTypeDefs", "Name" : "ClickEventHandler", "Returns" : "", "Access" : "", "Description" : "OnClick event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Controls.Button", "Default" : "", "Nullable" : false, "Description" : "Instance of Button" }] }, { "Container" : "Fit.Controls.ContextMenuTypeDefs", "Name" : "CancelableEventHandler", "Returns" : "boolean | void", "Access" : "", "Description" : "Event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }] }, { "Container" : "Fit.Controls.ContextMenuTypeDefs", "Name" : "EventHandler", "Returns" : "", "Access" : "", "Description" : "Event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }] }, { "Container" : "Fit.Controls.ContextMenuTypeDefs", "Name" : "SelectEventHandler", "Returns" : "", "Access" : "", "Description" : "OnSelect event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "item", "Type" : "Fit.Controls.ContextMenuItem", "Default" : "", "Nullable" : false, "Description" : "Instance of ContextMenuItem" }] }, { "Container" : "Fit.Controls.ControlBaseTypeDefs", "Name" : "BaseEvent", "Returns" : "", "Access" : "", "Description" : "Event handler receiving an instance of the control firing the event", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Control instance" }] }, { "Container" : "Fit.Controls.ControlBaseTypeDefs", "Name" : "ValidationCallback", "Returns" : "boolean | string | void", "Access" : "", "Description" : "Validation callback used with AddValidationRule(..) inherited from Fit.Controls.ControlBase", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Control to validate" }] }, { "Container" : "Fit.Controls.DialogTypeDefs", "Name" : "ConfirmCallback", "Returns" : "", "Access" : "", "Description" : "Confirmation dialog callback", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "confirmed", "Type" : "boolean", "Default" : "", "Nullable" : false, "Description" : "True if OK button is clicked, otherwise False" }] }, { "Container" : "Fit.Controls.DialogTypeDefs", "Name" : "DialogEventHandler", "Returns" : "", "Access" : "", "Description" : "Dialog event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Controls.Dialog", "Default" : "", "Nullable" : false, "Description" : "Instance of Dialog" }] }, { "Container" : "Fit.Controls.DialogTypeDefs", "Name" : "PromptCallback", "Returns" : "", "Access" : "", "Description" : "Prompt dialog callback", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "string | null", "Default" : "", "Nullable" : false, "Description" : "String value entered if OK button is clicked, Null if prompt is canceled" }] }, { "Container" : "Fit.Controls.DropDownTypeDefs", "Name" : "InputChangedEventHandler", "Returns" : "", "Access" : "", "Description" : "Input changed event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Input value" }] }, { "Container" : "Fit.Controls.DropDownTypeDefs", "Name" : "InteractionEventHandler", "Returns" : "", "Access" : "", "Description" : "Event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }] }, { "Container" : "Fit.Controls.DropDownTypeDefs", "Name" : "PasteEventHandler", "Returns" : "boolean | void", "Access" : "", "Description" : "Paste event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value pasted into input field" }] }, { "Container" : "Fit.Controls.DropDownTypeDefs", "Name" : "SelectionToStringCallback", "Returns" : "string", "Access" : "", "Description" : "Callback responsible for constructing string value representing selected items", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }] }, { "Container" : "Fit.Controls.FilePickerTypeDefs", "Name" : "CancelableUploadEventHandler", "Returns" : "boolean | void", "Access" : "", "Description" : "Cancelable upload event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Controls.FilePicker", "Default" : "", "Nullable" : false, "Description" : "Instance of FilePicker" }] }, { "Container" : "Fit.Controls.FilePickerTypeDefs", "Name" : "CompletedEventHandler", "Returns" : "", "Access" : "", "Description" : "Completed event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Controls.FilePicker", "Default" : "", "Nullable" : false, "Description" : "Instance of FilePicker" }] }, { "Container" : "Fit.Controls.FilePickerTypeDefs", "Name" : "GetImagePreview", "Returns" : "HTMLImageElement | null", "Access" : "", "Description" : "Returns image preview for supported file types, Null for unsupported file types, and Null on browsers not supporting the File API", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.FilePickerTypeDefs", "Name" : "ProgressEventHandler", "Returns" : "", "Access" : "", "Description" : "Progress event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Controls.FilePicker", "Default" : "", "Nullable" : false, "Description" : "Instance of FilePicker" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.FilePickerTypeDefs.File", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.InputTypeDefs", "Name" : "DesignModeTagsOnRequest", "Returns" : "boolean | void", "Access" : "", "Description" : "Cancelable request event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Controls.Input", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnRequestEventHandlerArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.InputTypeDefs", "Name" : "DesignModeTagsOnResponse", "Returns" : "", "Access" : "", "Description" : "Response event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Controls.Input", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseEventHandlerArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.InputTypeDefs", "Name" : "DesignModeTagsTagCreator", "Returns" : "Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorReturnType | null | void", "Access" : "", "Description" : "Function producing JSON object representing tag to be inserted into editor.\nReturning nothing or Null results in default tag being inserted into editor.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Controls.Input", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorCallbackArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.ListViewTypeDefs", "Name" : "OnSelectedEventHandler", "Returns" : "", "Access" : "", "Description" : "OnSelected event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "item", "Type" : "{ Title: string, Value: string }", "Default" : "", "Nullable" : false, "Description" : "Selected item" }] }, { "Container" : "Fit.Controls.ListViewTypeDefs", "Name" : "OnSelectEventHandler", "Returns" : "boolean | void", "Access" : "", "Description" : "OnSelect event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "item", "Type" : "{ Title: string, Value: string }", "Default" : "", "Nullable" : false, "Description" : "Selected item" }] }, { "Container" : "Fit.Controls.PickerBaseTypeDefs", "Name" : "BaseEventHandler", "Returns" : "", "Access" : "", "Description" : "Event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }] }, { "Container" : "Fit.Controls.PickerBaseTypeDefs", "Name" : "SelectionChangedEventHandler", "Returns" : "", "Access" : "", "Description" : "Selection changed event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.PickerBaseTypeDefs.SelectionEventHandlerArguments", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.PickerBaseTypeDefs", "Name" : "SelectionChangingEventHandler", "Returns" : "boolean | void", "Access" : "", "Description" : "Selection changing event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.PickerBaseTypeDefs.SelectionEventHandlerArguments", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.ProgressBarTypeDefs", "Name" : "ProgressEventHandler", "Returns" : "", "Access" : "", "Description" : "Progress event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Controls.ProgressBar", "Default" : "", "Nullable" : false, "Description" : "Instance of ProgressBar" }] }, { "Container" : "Fit.Controls.TreeViewTypeDefs", "Name" : "CancelableBehavioralNodeCallback", "Returns" : "boolean | void", "Access" : "", "Description" : "Behavioral node callback", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Controls.TreeViewNode", "Default" : "", "Nullable" : false, "Description" : "Instance of TreeViewNode" }, { "Name" : "selected", "Type" : "boolean", "Default" : "", "Nullable" : false, "Description" : "Value indicating new selection state" }] }, { "Container" : "Fit.Controls.TreeViewTypeDefs", "Name" : "CancelableNodeEventHandler", "Returns" : "boolean | void", "Access" : "", "Description" : "Cancelable node event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "node", "Type" : "Fit.Controls.TreeViewNode", "Default" : "", "Nullable" : false, "Description" : "Instance of TreeViewNode" }] }, { "Container" : "Fit.Controls.TreeViewTypeDefs", "Name" : "CancelableSelectionEventHandler", "Returns" : "boolean | void", "Access" : "", "Description" : "Cancelable select all event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.TreeViewTypeDefs.SelectionEventHandlerArgs", "Default" : "", "Nullable" : false, "Description" : "Event handler arguments" }] }, { "Container" : "Fit.Controls.TreeViewTypeDefs", "Name" : "NodeEventHandler", "Returns" : "", "Access" : "", "Description" : "Node event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "node", "Type" : "Fit.Controls.TreeViewNode", "Default" : "", "Nullable" : false, "Description" : "Instance of TreeViewNode" }] }, { "Container" : "Fit.Controls.TreeViewTypeDefs", "Name" : "SelectionCompleteEventHandler", "Returns" : "", "Access" : "", "Description" : "Select all complete event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.TreeViewTypeDefs.SelectionEventHandlerArgs", "Default" : "", "Nullable" : false, "Description" : "Event handler arguments" }] }, { "Container" : "Fit.Controls.WSContextMenuTypeDefs", "Name" : "DataEventHandler", "Returns" : "", "Access" : "", "Description" : "Data event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSContextMenuTypeDefs.DataEventArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSContextMenuTypeDefs", "Name" : "RequestEventHandler", "Returns" : "boolean | void", "Access" : "", "Description" : "OnRequest event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSContextMenuTypeDefs.RequestEventArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSDropDownTypeDefs", "Name" : "AutoUpdateSelectedCallback", "Returns" : "", "Access" : "", "Description" : "AutoUpdateSelected callback", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "updatedItems", "Type" : "Fit.Controls.DropDownTypeDefs.UpdatedDropDownItem[]", "Default" : "", "Nullable" : false, "Description" : "Updated items" }] }, { "Container" : "Fit.Controls.WSDropDownTypeDefs", "Name" : "CancelableRequestEventHandler", "Returns" : "", "Access" : "", "Description" : "Cancelable request event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSDropDownTypeDefs.RequestEventArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSDropDownTypeDefs", "Name" : "DataCallback", "Returns" : "", "Access" : "", "Description" : "Event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }] }, { "Container" : "Fit.Controls.WSDropDownTypeDefs", "Name" : "RequestAbortedEventHandler", "Returns" : "", "Access" : "", "Description" : "Aborted request handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSDropDownTypeDefs.AbortedRequestEventArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSDropDownTypeDefs", "Name" : "ResponseEventHandler", "Returns" : "", "Access" : "", "Description" : "Response event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSDropDownTypeDefs.ResponseEventArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSListViewTypeDefs", "Name" : "AbortEventHandler", "Returns" : "", "Access" : "", "Description" : "Abort event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSListViewTypeDefs.AbortHandlerEventArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSListViewTypeDefs", "Name" : "CancelableRequestEventHandler", "Returns" : "boolean | void", "Access" : "", "Description" : "Request event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSListViewTypeDefs.EventHandlerArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSListViewTypeDefs", "Name" : "DataEventHandler", "Returns" : "", "Access" : "", "Description" : "Response event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSListViewTypeDefs.DataHandlerEventArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSListViewTypeDefs", "Name" : "ReloadCallback", "Returns" : "", "Access" : "", "Description" : "Reload callback", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }] }, { "Container" : "Fit.Controls.WSTreeViewTypeDefs", "Name" : "AbortEventHandler", "Returns" : "", "Access" : "", "Description" : "Abort event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSTreeViewTypeDefs.AbortHandlerEventArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSTreeViewTypeDefs", "Name" : "CancelableRequestEventHandler", "Returns" : "boolean | void", "Access" : "", "Description" : "Cancelable request event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSTreeViewTypeDefs.EventHandlerArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSTreeViewTypeDefs", "Name" : "DataEventHandler", "Returns" : "", "Access" : "", "Description" : "Data event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSTreeViewTypeDefs.DataHandlerEventArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSTreeViewTypeDefs", "Name" : "ReloadCallback", "Returns" : "", "Access" : "", "Description" : "Reload callback", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }] }, { "Container" : "Fit.DragDrop.DraggableTypeDefs", "Name" : "DragEventHandler", "Returns" : "", "Access" : "", "Description" : "Event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dom", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element to which event is associated" }] }, { "Container" : "Fit.DragDrop.DraggableTypeDefs", "Name" : "DragStopEventHandler", "Returns" : "", "Access" : "", "Description" : "Event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dom", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element to which event is associated" }, { "Name" : "draggable", "Type" : "Fit.DragDrop.Draggable", "Default" : "", "Nullable" : false, "Description" : "Instance of Draggable to which event is associated" }] }, { "Container" : "Fit.DragDrop.DropZoneTypeDefs", "Name" : "DropEventHandler", "Returns" : "", "Access" : "", "Description" : "Event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dropZone", "Type" : "Fit.DragDrop.DropZone", "Default" : "", "Nullable" : false, "Description" : "Instance of DropZone to which draggable is dropped" }, { "Name" : "draggable", "Type" : "Fit.DragDrop.Draggable", "Default" : "", "Nullable" : false, "Description" : "Instance of Draggable being dropped" }] }, { "Container" : "Fit.DragDrop.DropZoneTypeDefs", "Name" : "EnterEventHandler", "Returns" : "", "Access" : "", "Description" : "Event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dropZone", "Type" : "Fit.DragDrop.DropZone", "Default" : "", "Nullable" : false, "Description" : "Instance of DropZone to which draggable can potentially be dropped now" }] }, { "Container" : "Fit.DragDrop.DropZoneTypeDefs", "Name" : "LeaveEventHandler", "Returns" : "", "Access" : "", "Description" : "Event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dropZone", "Type" : "Fit.DragDrop.DropZone", "Default" : "", "Nullable" : false, "Description" : "Instance of DropZone from which draggable is moved away" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "EventHandlerCallbackBeforeUnload", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "BeforeUnloadEvent", "Default" : "", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "EventHandlerCallbackClipboard", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "ClipboardEvent", "Default" : "", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "EventHandlerCallbackFocus", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "FocusEvent", "Default" : "", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "EventHandlerCallbackGeneric", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "Event", "Default" : "", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "EventHandlerCallbackHashChange", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "HashChangeEvent", "Default" : "", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "EventHandlerCallbackKeyboard", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "KeyboardEvent", "Default" : "", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "EventHandlerCallbackMouse", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "MouseEvent", "Default" : "", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "EventHandlerCallbackPopState", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "PopStateEvent", "Default" : "", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "EventHandlerCallbackRooted", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dom", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "EventHandlerCallbackStorage", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "StorageEvent", "Default" : "", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "MutationObserverCallback", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddMutationObserver(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dom", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element" }] }, { "Container" : "Fit.Http.JsonpRequestTypeDefs", "Name" : "EventHandler", "Returns" : "", "Access" : "", "Description" : "JsonpRequest event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Http.JsonpRequest", "Default" : "", "Nullable" : false, "Description" : "Instance of JsonpRequest which triggered event" }] }, { "Container" : "Fit.Http.RequestTypeDefs", "Name" : "EventHandler", "Returns" : "", "Access" : "", "Description" : "Request event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of request which triggered event" }] }, { "Container" : "Fit.LoaderTypeDefs", "Name" : "LoadMultiConfigurationsEventHandler", "Returns" : "", "Access" : "", "Description" : "Callback invoked when all resources are loaded", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cfgs", "Type" : "Fit.LoaderTypeDefs.ResourceConfiguration[]", "Default" : "", "Nullable" : false, "Description" : "Resources loaded" }] }, { "Container" : "Fit.LoaderTypeDefs", "Name" : "LoadSingleConfigurationEventHandler", "Returns" : "", "Access" : "", "Description" : "Callback invoked when resource is loaded", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cfg", "Type" : "Fit.LoaderTypeDefs.ResourceConfiguration", "Default" : "", "Nullable" : false, "Description" : "Resource loaded" }] }, { "Container" : "Fit.LoaderTypeDefs", "Name" : "LoadSingleEventHandler", "Returns" : "", "Access" : "", "Description" : "Callback invoked when resource is loaded", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "src", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Resource loaded" }] }, { "Container" : "Fit.TemplateTypeDefs", "Name" : "LoadUrlCallback", "Returns" : "", "Access" : "", "Description" : "Callback invoked when template is loaded", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Template", "Default" : "", "Nullable" : false, "Description" : "Instance of Template" }, { "Name" : "html", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Template's HTML content" }] }, { "Container" : "Fit.Array", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Add object to array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array", "Default" : "", "Nullable" : false, "Description" : "Array to which object is added" }, { "Name" : "obj", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to add to array" }] }, { "Container" : "Fit.Array", "Name" : "Clear", "Returns" : "", "Access" : "public", "Description" : "Clear all items from array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array", "Default" : "", "Nullable" : false, "Description" : "Array from which all objects are remove" }] }, { "Container" : "Fit.Array", "Name" : "Contains", "Returns" : "boolean", "Access" : "public", "Description" : "Returns True if given object is contained in collection, otherwise False", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array | HTMLCollection | NodeList | NamedNodeMap | FileList | StyleSheetList | CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection to search through" }, { "Name" : "obj", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to look for" }] }, { "Container" : "Fit.Array", "Name" : "Copy", "Returns" : "$Type[]", "Access" : "public", "Description" : "Returns a shallow copy of the collection. For a deep copy see Fit.Core.Clone(..).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "$Type[]", "Default" : "", "Nullable" : false, "Description" : "Collection to copy" }] }, { "Container" : "Fit.Array", "Name" : "Copy", "Returns" : "HTMLElement[]", "Access" : "public", "Description" : "Returns a shallow copy of the collection. For a deep copy see Fit.Core.Clone(..).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "HTMLCollection", "Default" : "", "Nullable" : false, "Description" : "Collection to copy" }] }, { "Container" : "Fit.Array", "Name" : "Copy", "Returns" : "Node[]", "Access" : "public", "Description" : "Returns a shallow copy of the collection. For a deep copy see Fit.Core.Clone(..).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "NodeList", "Default" : "", "Nullable" : false, "Description" : "Collection to copy" }] }, { "Container" : "Fit.Array", "Name" : "Copy", "Returns" : "Attr[]", "Access" : "public", "Description" : "Returns a shallow copy of the collection. For a deep copy see Fit.Core.Clone(..).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "NamedNodeMap", "Default" : "", "Nullable" : false, "Description" : "Collection to copy" }] }, { "Container" : "Fit.Array", "Name" : "Copy", "Returns" : "File[]", "Access" : "public", "Description" : "Returns a shallow copy of the collection. For a deep copy see Fit.Core.Clone(..).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "FileList", "Default" : "", "Nullable" : false, "Description" : "Collection to copy" }] }, { "Container" : "Fit.Array", "Name" : "Copy", "Returns" : "StyleSheet[]", "Access" : "public", "Description" : "Returns a shallow copy of the collection. For a deep copy see Fit.Core.Clone(..).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "StyleSheetList", "Default" : "", "Nullable" : false, "Description" : "Collection to copy" }] }, { "Container" : "Fit.Array", "Name" : "Copy", "Returns" : "CSSRule[]", "Access" : "public", "Description" : "Returns a shallow copy of the collection. For a deep copy see Fit.Core.Clone(..).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection to copy" }] }, { "Container" : "Fit.Array", "Name" : "Count", "Returns" : "integer", "Access" : "public", "Description" : "Returns number of elements in collection", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array | HTMLCollection | NodeList | NamedNodeMap | FileList | StyleSheetList | CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection to count elements within" }] }, { "Container" : "Fit.Array", "Name" : "Count", "Returns" : "integer", "Access" : "public", "Description" : "Returns number of elements in object array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "obj", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object array to count elements within" }] }, { "Container" : "Fit.Array", "Name" : "CustomRecurse", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to provided callback.\nCallback is expected to return any children supposed to be iterated too, or Null\nif further/deeper iteration is not required.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "$Type[]", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:$Type) => $Type[] | null | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nFunction must return children collection to continue recursive operation,\nor Null (or nothing) to stop further processing." }] }, { "Container" : "Fit.Array", "Name" : "CustomRecurse", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to provided callback.\nCallback is expected to return any children supposed to be iterated too, or Null\nif further/deeper iteration is not required.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "HTMLCollection", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:HTMLElement) => HTMLCollection | HTMLElement[] | null | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nFunction must return children collection to continue recursive operation,\nor Null (or nothing) to stop further processing." }] }, { "Container" : "Fit.Array", "Name" : "CustomRecurse", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to provided callback.\nCallback is expected to return any children supposed to be iterated too, or Null\nif further/deeper iteration is not required.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "NodeList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:Node) => NodeList | Node[] | null | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nFunction must return children collection to continue recursive operation,\nor Null (or nothing) to stop further processing." }] }, { "Container" : "Fit.Array", "Name" : "CustomRecurse", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to provided callback.\nCallback is expected to return any children supposed to be iterated too, or Null\nif further/deeper iteration is not required.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "NamedNodeMap[]", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:Attr) => NamedNodeMap | Attr[] | null | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nFunction must return children collection to continue recursive operation,\nor Null (or nothing) to stop further processing." }] }, { "Container" : "Fit.Array", "Name" : "CustomRecurse", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to provided callback.\nCallback is expected to return any children supposed to be iterated too, or Null\nif further/deeper iteration is not required.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "FileList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:File) => FileList | File[] | null | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nFunction must return children collection to continue recursive operation,\nor Null (or nothing) to stop further processing." }] }, { "Container" : "Fit.Array", "Name" : "CustomRecurse", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to provided callback.\nCallback is expected to return any children supposed to be iterated too, or Null\nif further/deeper iteration is not required.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "StyleSheetList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:StyleSheet) => StyleSheetList | StyleSheet[] | null | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nFunction must return children collection to continue recursive operation,\nor Null (or nothing) to stop further processing." }] }, { "Container" : "Fit.Array", "Name" : "CustomRecurse", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to provided callback.\nCallback is expected to return any children supposed to be iterated too, or Null\nif further/deeper iteration is not required.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:CSSRule) => CSSRuleList | CSSRule[] | null | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nFunction must return children collection to continue recursive operation,\nor Null (or nothing) to stop further processing." }] }, { "Container" : "Fit.Array", "Name" : "ForEach", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether iteration was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "$Type[]", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:$Type) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "ForEach", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether iteration was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "HTMLCollection", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:HTMLElement) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "ForEach", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether iteration was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "NodeList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:Node) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "ForEach", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether iteration was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "NamedNodeMap", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:Attr) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "ForEach", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether iteration was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "FileList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:File) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "ForEach", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether iteration was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "StyleSheetList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:StyleSheet) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "ForEach", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether iteration was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:CSSRule) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "ForEach", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether iteration was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "object[]", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:object) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "ForEach", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through object properties and passes each property name to the provided callback function.\nReturns boolean indicating whether iteration was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "obj", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object containing properties to iterate through" }, { "Name" : "callback", "Type" : "(key:string) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting properties from the object, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "GetIndex", "Returns" : "integer", "Access" : "public", "Description" : "Returns index of object in collection if found, otherwise a value of -1 is returned", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array | HTMLCollection | NodeList | NamedNodeMap | FileList | StyleSheetList | CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection to search through" }, { "Name" : "obj", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to obtain index for" }] }, { "Container" : "Fit.Array", "Name" : "GetKeys", "Returns" : "integer[]", "Access" : "public", "Description" : "Returns all keys in collection (indices) - 0, 1, 2, 3, ...", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array | HTMLCollection | NodeList | NamedNodeMap | FileList | StyleSheetList | CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection to get keys from" }] }, { "Container" : "Fit.Array", "Name" : "GetKeys", "Returns" : "string[]", "Access" : "public", "Description" : "Returns all keys (property names) in object", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "obj", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to get keys from" }] }, { "Container" : "Fit.Array", "Name" : "HasItems", "Returns" : "boolean", "Access" : "public", "Description" : "Returns True if collection has items, otherwise False", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array | HTMLCollection | NodeList | NamedNodeMap | FileList | StyleSheetList | CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection to investigate" }] }, { "Container" : "Fit.Array", "Name" : "HasItems", "Returns" : "boolean", "Access" : "public", "Description" : "Returns True if object array has items, otherwise False", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "obj", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object array to investigate" }] }, { "Container" : "Fit.Array", "Name" : "Insert", "Returns" : "", "Access" : "public", "Description" : "Insert object into array at specified index", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array", "Default" : "", "Nullable" : false, "Description" : "Array into which object is inserted" }, { "Name" : "idx", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Index to insert object at" }, { "Name" : "obj", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to insert into array" }] }, { "Container" : "Fit.Array", "Name" : "Join", "Returns" : "string", "Access" : "public", "Description" : "Join objects from a collection into a string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "$Type[]", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects" }, { "Name" : "separator", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String used to glue values together" }, { "Name" : "callback", "Type" : "(obj:$Type) => string", "Default" : "", "Nullable" : false, "Description" : "Callback returning string representation of objects passed from collection in turn" }] }, { "Container" : "Fit.Array", "Name" : "Join", "Returns" : "string", "Access" : "public", "Description" : "Join objects from a collection into a string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "HTMLCollection", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects" }, { "Name" : "separator", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String used to glue values together" }, { "Name" : "callback", "Type" : "(obj:HTMLElement) => string", "Default" : "", "Nullable" : false, "Description" : "Callback returning string representation of objects passed from collection in turn" }] }, { "Container" : "Fit.Array", "Name" : "Join", "Returns" : "string", "Access" : "public", "Description" : "Join objects from a collection into a string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "NodeList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects" }, { "Name" : "separator", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String used to glue values together" }, { "Name" : "callback", "Type" : "(obj:Node) => string", "Default" : "", "Nullable" : false, "Description" : "Callback returning string representation of objects passed from collection in turn" }] }, { "Container" : "Fit.Array", "Name" : "Join", "Returns" : "string", "Access" : "public", "Description" : "Join objects from a collection into a string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "NamedNodeMap", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects" }, { "Name" : "separator", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String used to glue values together" }, { "Name" : "callback", "Type" : "(obj:Attr) => string", "Default" : "", "Nullable" : false, "Description" : "Callback returning string representation of objects passed from collection in turn" }] }, { "Container" : "Fit.Array", "Name" : "Join", "Returns" : "string", "Access" : "public", "Description" : "Join objects from a collection into a string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "FileList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects" }, { "Name" : "separator", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String used to glue values together" }, { "Name" : "callback", "Type" : "(obj:File) => string", "Default" : "", "Nullable" : false, "Description" : "Callback returning string representation of objects passed from collection in turn" }] }, { "Container" : "Fit.Array", "Name" : "Join", "Returns" : "string", "Access" : "public", "Description" : "Join objects from a collection into a string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "StyleSheetList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects" }, { "Name" : "separator", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String used to glue values together" }, { "Name" : "callback", "Type" : "(obj:StyleSheet) => string", "Default" : "", "Nullable" : false, "Description" : "Callback returning string representation of objects passed from collection in turn" }] }, { "Container" : "Fit.Array", "Name" : "Join", "Returns" : "string", "Access" : "public", "Description" : "Join objects from a collection into a string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects" }, { "Name" : "separator", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String used to glue values together" }, { "Name" : "callback", "Type" : "(obj:CSSRule) => string", "Default" : "", "Nullable" : false, "Description" : "Callback returning string representation of objects passed from collection in turn" }] }, { "Container" : "Fit.Array", "Name" : "Merge", "Returns" : "($TypeA | $TypeB)[]", "Access" : "public", "Description" : "Merge/join two arrays", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr1", "Type" : "$TypeA[]", "Default" : "", "Nullable" : false, "Description" : "Array 1 to merge with array 2" }, { "Name" : "arr2", "Type" : "$TypeB[]", "Default" : "", "Nullable" : false, "Description" : "Array 2 to merge with array 1" }] }, { "Container" : "Fit.Array", "Name" : "Move", "Returns" : "", "Access" : "public", "Description" : "Move object within array from one position to another", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array", "Default" : "", "Nullable" : false, "Description" : "Array to manipulate" }, { "Name" : "fromIdx", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Position of object to move" }, { "Name" : "ToIdx", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "New object position" }] }, { "Container" : "Fit.Array", "Name" : "Recurse", "Returns" : "boolean", "Access" : "public", "Description" : "Recursively iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether recursion was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "$Type[]", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "childrenProperty", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Name of property or argumentless getter function returning children (e.g. \"Children\" or \"GetChildren\")" }, { "Name" : "callback", "Type" : "(obj:$Type) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "Recurse", "Returns" : "boolean", "Access" : "public", "Description" : "Recursively iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether recursion was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "HTMLCollection", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "childrenProperty", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Name of property or argumentless getter function returning children (e.g. \"Children\" or \"GetChildren\")" }, { "Name" : "callback", "Type" : "(obj:HTMLElement) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "Recurse", "Returns" : "boolean", "Access" : "public", "Description" : "Recursively iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether recursion was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "NodeList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "childrenProperty", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Name of property or argumentless getter function returning children (e.g. \"Children\" or \"GetChildren\")" }, { "Name" : "callback", "Type" : "(obj:Node) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "Recurse", "Returns" : "boolean", "Access" : "public", "Description" : "Recursively iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether recursion was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "NamedNodeMap", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "childrenProperty", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Name of property or argumentless getter function returning children (e.g. \"Children\" or \"GetChildren\")" }, { "Name" : "callback", "Type" : "(obj:Attr) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "Recurse", "Returns" : "boolean", "Access" : "public", "Description" : "Recursively iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether recursion was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "FileList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "childrenProperty", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Name of property or argumentless getter function returning children (e.g. \"Children\" or \"GetChildren\")" }, { "Name" : "callback", "Type" : "(obj:File) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "Recurse", "Returns" : "boolean", "Access" : "public", "Description" : "Recursively iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether recursion was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "StyleSheetList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "childrenProperty", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Name of property or argumentless getter function returning children (e.g. \"Children\" or \"GetChildren\")" }, { "Name" : "callback", "Type" : "(obj:StyleSheet) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "Recurse", "Returns" : "boolean", "Access" : "public", "Description" : "Recursively iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether recursion was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "childrenProperty", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Name of property or argumentless getter function returning children (e.g. \"Children\" or \"GetChildren\")" }, { "Name" : "callback", "Type" : "(obj:CSSRule) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "Remove", "Returns" : "", "Access" : "public", "Description" : "Remove object from array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array", "Default" : "", "Nullable" : false, "Description" : "Array from which object is remove" }, { "Name" : "obj", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to remove from array" }] }, { "Container" : "Fit.Array", "Name" : "RemoveAt", "Returns" : "", "Access" : "public", "Description" : "Remove object from array at specified index", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array", "Default" : "", "Nullable" : false, "Description" : "Array from which object is remove" }, { "Name" : "idx", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Object index in array" }] }, { "Container" : "Fit.Array", "Name" : "ToArray", "Returns" : "HTMLElement[]", "Access" : "public", "Description" : "Convert collection to a traditional JavaScript array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "coll", "Type" : "HTMLCollection", "Default" : "", "Nullable" : false, "Description" : "Collection to convert to array" }] }, { "Container" : "Fit.Array", "Name" : "ToArray", "Returns" : "Node[]", "Access" : "public", "Description" : "Convert collection to a traditional JavaScript array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "coll", "Type" : "NodeList", "Default" : "", "Nullable" : false, "Description" : "Collection to convert to array" }] }, { "Container" : "Fit.Array", "Name" : "ToArray", "Returns" : "Attr[]", "Access" : "public", "Description" : "Convert collection to a traditional JavaScript array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "coll", "Type" : "NamedNodeMap", "Default" : "", "Nullable" : false, "Description" : "Collection to convert to array" }] }, { "Container" : "Fit.Array", "Name" : "ToArray", "Returns" : "File[]", "Access" : "public", "Description" : "Convert collection to a traditional JavaScript array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "coll", "Type" : "FileList", "Default" : "", "Nullable" : false, "Description" : "Collection to convert to array" }] }, { "Container" : "Fit.Array", "Name" : "ToArray", "Returns" : "StyleSheet[]", "Access" : "public", "Description" : "Convert collection to a traditional JavaScript array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "coll", "Type" : "StyleSheetList", "Default" : "", "Nullable" : false, "Description" : "Collection to convert to array" }] }, { "Container" : "Fit.Array", "Name" : "ToArray", "Returns" : "CSSRule[]", "Access" : "public", "Description" : "Convert collection to a traditional JavaScript array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "coll", "Type" : "CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection to convert to array" }] }, { "Container" : "Fit.Array", "Name" : "ToArray", "Returns" : "$Type[]", "Access" : "public", "Description" : "Copy array to a new array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "coll", "Type" : "$Type[]", "Default" : "", "Nullable" : false, "Description" : "Array to copy to a new array" }] }, { "Container" : "Fit.Browser", "Name" : "GetBrowser", "Returns" : "\"Edge\" | \"Chrome\" | \"Safari\" | \"MSIE\" | \"Firefox\" | \"Opera\" | \"Unknown\"", "Access" : "public", "Description" : "Returns name of browser useful for adjusting behaviour based on render engine.\nPossible values are: Chrome (both WebKit and Blink based - also returned for modern versions of\nOpera and Edge), Safari (also returned for Edge, Chrome, Opera, and Firefox on iOS), Edge (version 12-18),\nMSIE (version 8-11), Firefox, Opera (version 1-12), and Unknown.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "returnAppId", "Type" : "false", "Default" : "false", "Nullable" : false, "Description" : "Set True to have app specific identifier returned" }] }, { "Container" : "Fit.Browser", "Name" : "GetBrowser", "Returns" : "\"Edge\" | \"Chrome\" | \"Safari\" | \"MSIE\" | \"Firefox\" | \"Opera\" | \"Unknown\"", "Access" : "public", "Description" : "Returns browser app name useful for adjusting behaviour based on actual\napplication, regardless of render engine and platform. Possible values are:\nChrome (both Webkit and Blink based), Safari, Edge (both legacy and modern),\nMSIE (version 8-11), Firefox, Opera (both legacy and modern), and Unknown.\nBe careful not to check against browser app name and app version alone.\nFor instance Opera 3 on a touch device is newer than Opera 60 on a Desktop\ndevice, as they are two completely different browsers. Check whether the browser runs on\na tablet or phone using e.g. Fit.Browser.IsMobile(true) or Fit.Browser.GetInfo(true).IsMobile.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "returnAppId", "Type" : "true", "Default" : "", "Nullable" : false, "Description" : "Set True to have app specific identifier returned" }] }, { "Container" : "Fit.Browser", "Name" : "GetComputedStyle", "Returns" : "string | null", "Access" : "public", "Description" : "Get style value applied after stylesheets have been loaded.\nAn empty string or null may be returned if style has not been defined or does not exist.\nMake sure not to use shorthand properties (e.g. border-color or padding) as some browsers are\nnot capable of calculating these - use the fully qualified property name (e.g. border-left-color\nor padding-left).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element which contains desired CSS style value" }, { "Name" : "style", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "CSS style property name" }] }, { "Container" : "Fit.Browser", "Name" : "GetInfo", "Returns" : "Fit.BrowserTypeDefs.BrowserInfo", "Access" : "public", "Description" : "Returns cached object with browser information", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "returnAppInfo", "Type" : "false", "Default" : "false", "Nullable" : false, "Description" : "Set True to have app specific browser information returned - see GetBrowser(..) for details" }] }, { "Container" : "Fit.Browser", "Name" : "GetInfo", "Returns" : "Fit.BrowserTypeDefs.BrowserAppInfo", "Access" : "public", "Description" : "Returns cached object with browser app information", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "returnAppInfo", "Type" : "true", "Default" : "", "Nullable" : false, "Description" : "Set True to have app specific browser information returned - see GetBrowser(..) for details" }] }, { "Container" : "Fit.Browser", "Name" : "GetLanguage", "Returns" : "string", "Access" : "public", "Description" : "Returns browser language - e.g. \"da\" (Danish), \"en\" (English) etc.", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Browser", "Name" : "GetPageHeight", "Returns" : "integer", "Access" : "public", "Description" : "Returns page height in pixels", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Browser", "Name" : "GetPageWidth", "Returns" : "integer", "Access" : "public", "Description" : "Returns page width in pixels", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Browser", "Name" : "GetQueryString", "Returns" : "Fit.BrowserTypeDefs.QueryString", "Access" : "public", "Description" : "Returns query string information", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "alternativeUrl", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Alternative URL to parse" }] }, { "Container" : "Fit.Browser", "Name" : "GetScreenDimensions", "Returns" : "Fit.TypeDefs.Dimension", "Access" : "public", "Description" : "Returns object with Width and Height properties specifying screen dimensions", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "onlyAvailable", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to return only available space (may be reduced by e.g. Start menu (Windows) or Dock (Linux/OSX)" }] }, { "Container" : "Fit.Browser", "Name" : "GetScreenHeight", "Returns" : "integer", "Access" : "public", "Description" : "Get screen height", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "onlyAvailable", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to return only available space (may be reduced by e.g. start menu (Windows) or Dock (Linux/OSX)" }] }, { "Container" : "Fit.Browser", "Name" : "GetScreenWidth", "Returns" : "integer", "Access" : "public", "Description" : "Get screen width", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "onlyAvailable", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to return only available space (may be reduced by e.g. start menu (Windows) or Dock (Linux/OSX)" }] }, { "Container" : "Fit.Browser", "Name" : "GetScrollBars", "Returns" : "Fit.TypeDefs.ScrollBarsPresent", "Access" : "public", "Description" : "Get information about scrollbars in viewport.\nReturns an object with Vertical and Horizontal properties, each containing\nEnabled and Size properties, which can be used to determine whether scrolling is enabled,\nand the size of the scrollbar. The size remains 0 when scrolling is not enabled.\nTo determine whether a DOM element has scrolling enabled, use Fit.Dom.GetScrollBars(..).", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Browser", "Name" : "GetScrollBarSize", "Returns" : "integer", "Access" : "public", "Description" : "Get thickness of browser scrollbars. The function works even when\nno scrollbars are currently present. For browsers and operating systems\nhiding scrollbars for scrollable objects, the value returned will be 0 (zero).", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Browser", "Name" : "GetScrollDocument", "Returns" : "DOMElement", "Access" : "public", "Description" : "Get scrolling document element. This is the cross browser\nequivalent of document.scrollingElement.", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Browser", "Name" : "GetScrollPosition", "Returns" : "Fit.TypeDefs.Position", "Access" : "public", "Description" : "Returns object with X and Y properties specifying scroll position", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Browser", "Name" : "GetVersion", "Returns" : "integer", "Access" : "public", "Description" : "Returns major version number for known browsers, -1 for unknown browsers", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "returnAppVersion", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to have app specific version number returned, rather than version number of browser engine.\nIf version number is used in combination with the result from Fit.Browser.GetBrowser(true), then\nthis argument should be True as well, otherwise False (default)." }] }, { "Container" : "Fit.Browser", "Name" : "GetViewPortDimensions", "Returns" : "Fit.TypeDefs.Dimension", "Access" : "public", "Description" : "Returns object with Width and Height properties specifying dimensions of viewport", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "includeScrollbars", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Include scrollbars if present to get all potential space available if scrollbars are removed." }] }, { "Container" : "Fit.Browser", "Name" : "IsMobile", "Returns" : "boolean", "Access" : "public", "Description" : "Returns value indicating whether device is a mobile device or not.\nNotice that some phones and tablets may identify as desktop devices,\nin which case IsMobile(..) will return False. In this case consider\nusing Fit.Browser.IsTouchEnabled(), e.g. in combination with\nFit.Browser.GetBrowser(), or a check against the size of the viewport,\nwhich will provide some indication as to whether device should be treated\nas a mobile device or not. As an example, Safari on iPad identifies as\na Mac computer by default (it has \"Request Desktop Website\" enabled by default).\nTo always detect iPad and iPhone as a mobile device, no matter the configuration\nof \"Request Desktop Website\"), simply use:\nvar isMobile = Fit.Browser.IsMobile(true) || (Fit.Browser.GetBrowser() === \"Safari\" && Fit.Browser.IsTouchEnabled())\nWe will not be able to distinguish between an iPhone and an iPad though, not even\nby looking at the viewport size, since this approach is unreliable with high resolution\niPhones and support for split screen which affects the viewport size.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "includeTablets", "Type" : "boolean", "Default" : "true", "Nullable" : false, "Description" : "Value indicating whether tablets are considered mobile devices or not" }] }, { "Container" : "Fit.Browser", "Name" : "IsStorageSupported", "Returns" : "boolean", "Access" : "public", "Description" : "Returns value indicating whether Session and Local storage is supported or not", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Browser", "Name" : "IsTouchEnabled", "Returns" : "boolean", "Access" : "public", "Description" : "Returns value indicating whether device is touch enabled or not", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Browser", "Name" : "Log", "Returns" : "", "Access" : "public", "Description" : "Log message or object", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "msg", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Message or object to log" }] }, { "Container" : "Fit.Browser", "Name" : "LogDeprecated", "Returns" : "", "Access" : "public", "Description" : "Log message about use of deprecated feature", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "msg", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Message to log" }] }, { "Container" : "Fit.Browser", "Name" : "ParseUrl", "Returns" : "Fit.BrowserTypeDefs.ParsedUrl", "Access" : "public", "Description" : "Parses well-formed URLs and returns an object containing the various components.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "url", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Well-formed URL to parse" }] }, { "Container" : "Fit.Color", "Name" : "HexToRgb", "Returns" : "string", "Access" : "public", "Description" : "Convert HEX color string into RGB color string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "hex", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "HEX color string, e.g. #C0C0C0 (hash symbol is optional)" }] }, { "Container" : "Fit.Color", "Name" : "IsHex", "Returns" : "boolean", "Access" : "public", "Description" : "Returns True if value is a valid HEX color value, otherwise False", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value to validate" }] }, { "Container" : "Fit.Color", "Name" : "IsRgb", "Returns" : "boolean", "Access" : "public", "Description" : "Returns True if value is a valid RGB(A) color value, otherwise False", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value to validate" }] }, { "Container" : "Fit.Color", "Name" : "ParseHex", "Returns" : "Fit.ColorTypeDefs.RgbColor", "Access" : "public", "Description" : "Convert HEX color string into RGB color object, e.g. { Red: 150, Green: 30, Blue: 185 }", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "hex", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "HEX color string, e.g. #C0C0C0 (hash symbol is optional)" }] }, { "Container" : "Fit.Color", "Name" : "ParseRgb", "Returns" : "Fit.ColorTypeDefs.RgbaColor", "Access" : "public", "Description" : "Parses RGB(A) string and turns result into a RGB(A) color object, e.g. { Red: 100, Green: 100, Blue: 100, Alpha: 0.3 }.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "RGB(A) color string, e.g. rgba(100, 100, 100, 0.3) or simply 100,100,200,0.3" }] }, { "Container" : "Fit.Color", "Name" : "RgbToHex", "Returns" : "string", "Access" : "public", "Description" : "Convert RGB colors into HEX color string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "r", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Color index for red" }, { "Name" : "g", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Color index for green" }, { "Name" : "b", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Color index for blue" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Alert", "Returns" : "Fit.Controls.DialogInterface", "Access" : "public", "Description" : "Display alert dialog", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "content", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Content to display in alert dialog" }, { "Name" : "cb", "Type" : "function", "Default" : "undefined", "Nullable" : false, "Description" : "Optional callback function invoked when OK button is clicked" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Confirm", "Returns" : "Fit.Controls.DialogInterface", "Access" : "public", "Description" : "Display confirmation dialog with OK and Cancel buttons", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "content", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Content to display in confirmation dialog" }, { "Name" : "cb", "Type" : "Fit.Controls.DialogTypeDefs.ConfirmCallback", "Default" : "", "Nullable" : false, "Description" : "Callback function invoked when a button is clicked.\nTrue is passed to callback function when OK is clicked, otherwise False." }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Prompt", "Returns" : "Fit.Controls.DialogInterface", "Access" : "public", "Description" : "Display prompt dialog that allows for user input", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "content", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Content to display in prompt dialog" }, { "Name" : "defaultValue", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Default value in input field" }, { "Name" : "cb", "Type" : "Fit.Controls.DialogTypeDefs.PromptCallback", "Default" : "undefined", "Nullable" : false, "Description" : "Callback function invoked when OK or Cancel button is clicked.\nValue entered in input field is passed, null if prompt is canceled." }] }, { "Container" : "Fit.Controls", "Name" : "DirtyCheckAll", "Returns" : "boolean", "Access" : "public", "Description" : "Check dirty state for all controls - either all controls on page, or within specified scope.\nReturns True if one or more controls are dirty, otherwise False.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "scope", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, dirty check controls only within this scope.\nSee Fit.Controls.ControlBase.Scope(..)\nfor details on configurering scoped validation." }] }, { "Container" : "Fit.Controls", "Name" : "Find", "Returns" : "Fit.Controls.Component | null", "Access" : "public", "Description" : "Get control by unique Control ID - returns Null if not found", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "id", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Unique Control ID" }] }, { "Container" : "Fit.Controls", "Name" : "Find", "Returns" : "$ExpectedControlType | null", "Access" : "public", "Description" : "Get control by unique Control ID - returns Null if not found", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "id", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Unique Control ID" }, { "Name" : "expectedType", "Type" : "$ExpectedControlType", "Default" : "", "Nullable" : false, "Description" : "For development environments supporting JSDoc and generics (e.g. VSCode), make Find(..) return found component\nas specified type. For instance to return a type as Fit.Controls.DropDown, specify Fit.Controls.DropDown.prototype." }] }, { "Container" : "Fit.Controls", "Name" : "ValidateAll", "Returns" : "boolean", "Access" : "public", "Description" : "Validate all controls - either all controls on page, or within specified scope.\nReturns True if all controls contain valid values, otherwise False.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "scope", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, validate controls only within this scope.\nSee Fit.Controls.ControlBase.Scope(..)\nfor details on configurering scoped validation." }] }, { "Container" : "Fit.Cookies", "Name" : "Get", "Returns" : "string | null", "Access" : "public", "Description" : "Returns cookie value if found, otherwise Null", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "name", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Unique cookie name" }] }, { "Container" : "Fit.Cookies", "Name" : "Remove", "Returns" : "", "Access" : "public", "Description" : "Remove cookie", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "name", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Unique cookie name" }, { "Name" : "path", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Optional cookie path.\nIf cookie was defined on a custom path, the\nsame path must be specified to remove the cookie." }, { "Name" : "domain", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Optional cookie domain.\nIf cookie was defined on a specific domain, the\nsame domain must be specified to remove the cookie." }] }, { "Container" : "Fit.Cookies", "Name" : "Remove", "Returns" : "", "Access" : "public", "Description" : "Remove cookie", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "cookie", "Type" : "Fit.CookiesDefs.CookieIdentity", "Default" : "", "Nullable" : false, "Description" : "Cookie to remove" }] }, { "Container" : "Fit.Cookies", "Name" : "Set", "Returns" : "", "Access" : "public", "Description" : "Create or update cookie", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "name", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Unique cookie name" }, { "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Cookie value (cannot contain semicolon!)" }, { "Name" : "seconds", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "Optional expiration time in seconds. Creating a cookie with\nno expiration time will cause it to expire when session ends." }, { "Name" : "path", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Optional cookie path.\nSpecifying no path makes cookie accessible to entire domain.\nSpecifying a path makes the cookie accessible to that particular path only.\nHowever, this is not a security feature! A page can read cookies from any path\nby creating an iframe with the path of the cookies, and read them through\nthe iframe's contentDocument.cookie property." }, { "Name" : "domain", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Optional cookie domain.\nNot specifying a domain restricts the cookie to the host portion of the page currently loaded.\nSpecifying a domain makes the cookies accessible to the domain and subdomains.\nIt is not possible to specify a foreign domain name - this will be silently ignored.\nExample: domain.com or sub.domain.com" }, { "Name" : "sameSite", "Type" : "\"None\" | \"Lax\" | \"Strict\"", "Default" : "undefined", "Nullable" : false, "Description" : "Optional Same-Site policy determining whether to accept cookie and send it along with HTTP requests.\nDifferent browsers (and versions) default to different values/behaviour, and a lot of different versions\nare known to incorrectly handle SameSite, so don't expect this to work reliably across browsers.\nSome browers may even work differently across platforms, despite being the same version, such as Safari on macOS and iOS.\nFurthermore the behaviour may vary depending on browser configuration (configuration flags).\nSee https://www.chromium.org/updates/same-site/incompatible-clients\nand https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite#browser_compatibility\nand https://caniuse.com/same-site-cookie-attribute\nNone = Cookie is included with cross-site requests, but only when Secure is True.\nLax = Cookie is included with all types of Same-Site requests, but only for top-level\nnavigation for cross-site requests (GET/HEAD requests only, and only in main window/frame).\nStrict = Cookie is included with all types of Same-Site requests, never for cross-site requests.\nMore recent versions of Chrome (and Chrome based browsers) default to Lax." }, { "Name" : "secure", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "Optional flag determining whether to accept and send along cookie on secure connections only." }] }, { "Container" : "Fit.Cookies", "Name" : "Set", "Returns" : "", "Access" : "public", "Description" : "Create or update cookie", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "newCookie", "Type" : "Fit.CookiesDefs.Cookie", "Default" : "", "Nullable" : false, "Description" : "New or updated cookie" }] }, { "Container" : "Fit.Core", "Name" : "Clone", "Returns" : "$ObjectType", "Access" : "public", "Description" : "Clone JavaScript object. Supported object types and values:\nString, Number, Boolean, Date, Array, (JSON) Object, Function, Undefined, Null, NaN,\nInfinity.\nVariables defined as undefined are left out of clone,\nsince an undefined variable is equal to a variable defined as undefined.\nNotice that Arrays and Objects can contain supported object types and values only.\nFunctions are considered references, and as such the cloned object will reference\nthe same functions.\nCustom properties set on native JS objects (e.g. Array.XYZ) are not cloned, only\nvalues are. Naturally custom (JSON) objects will be fully cloned, including all\nproperties. Both arrays and custom (JSON) objects are cloned recursively.\nBe aware of self referencing variables and circular structures, which\nwill cause an infinite loop, and eventually a stack overflow exception.\nDOM objects and window/frame instances are not supported.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "obj", "Type" : "$ObjectType", "Default" : "", "Nullable" : false, "Description" : "JS object to clone" }] }, { "Container" : "Fit.Core", "Name" : "CreateDebouncer", "Returns" : "Fit.CoreTypeDefs.DebounceFunction", "Access" : "public", "Description" : "Create a debouncing function that delays execution the specified number of milliseconds.\nInvoking function multiple times merely postpone execution the specified number of milliseconds.\nThis can greatly increase performance for expensive operations invoked often.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "func", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Reference to function to invoke" }, { "Name" : "timeout", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Number of milliseconds to postpone execution" }, { "Name" : "thisArg", "Type" : "any", "Default" : "undefined", "Nullable" : false, "Description" : "The value 'this' resolves to within debounced function" }] }, { "Container" : "Fit.Core", "Name" : "CreateOverride", "Returns" : "function", "Access" : "public", "Description" : "Create a function override for any given function using the approach below.\n\nthis.SayHello = function(name) { alert(\"Hello \" + name); }\nthis.SayHello = Fit.Core.CreateOverride(this.SayHello, function(name)\n{\nconsole.log(name + \" logged in\");\nconsole.log(name + \" is using the following browser: \" + navigator.userAgent);\n\nbase(name); // Call original SayHello function\n});\n\nNotice how base(..) allows us to call the original function.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "originalFunction", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Reference to function to override" }, { "Name" : "newFunction", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Reference to replacement function" }] }, { "Container" : "Fit.Core", "Name" : "Extend", "Returns" : "object", "Access" : "public", "Description" : "Extend any object with the public members of a super class.\n\nMyClass = function(controlId)\n{\n     Fit.Core.Extend(this, MySuperClass).Apply();\n}\n\nThe code above defines a class called MyClass which extends from MySuperClass.\nUse Apply() to pass variables to the super class constructor as shown below:\n\nMale = function(name, age)\n{\n     Fit.Core.Extend(this, Person).Apply(\"Male\", name, age);\n}\n\nNotice that calling just Extend(..) without calling Apply() on the object returned,\nwill not cause extension to occure. Apply() must be called, with or without parameters.\n\nNotice that Fit.UI supports multiple inheritance. Be careful not to extend from multiple\nclasses implementing functions with identical names, or at least be aware that the last\nclass from which the derivative extends, takes precedence.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "subInstance", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Instance of sub class to extend" }, { "Name" : "superType", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Class (function) to extend from" }] }, { "Container" : "Fit.Core", "Name" : "Extends", "Returns" : "boolean", "Access" : "public", "Description" : "Returns boolean indicating whether given object is an extension of a given super type - see Fit.Core.Extend(..).\nAlso look into Fit.Core.InstanceOf(..) which may provide the desired behaviour.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "instance", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object instance" }, { "Name" : "superType", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Reference to super class (function)" }] }, { "Container" : "Fit.Core", "Name" : "InstanceOf", "Returns" : "boolean", "Access" : "public", "Description" : "Returns boolean indicating whether given object is an instance or extension of a given class type - see Fit.Core.Extend(..).\nThis is equivalent of: var result = (obj instanceof MyType || Fit.Core.Extends(obj, MyType));", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "instance", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object instance" }, { "Name" : "type", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Reference to class (function)" }] }, { "Container" : "Fit.Core", "Name" : "IsEqual", "Returns" : "boolean", "Access" : "public", "Description" : "Compare two JavaScript objects to determine whether they are identical.\nReturns True if objects are identical (equal), otherwise False.\nFunctions are compared by reference, not by value.\nCustom properties set on native JS objects (e.g. Array.XYZ) are not compared, only\nvalues are. Naturally JSON objects will be fully compared, including all properties.\nBe aware of self referencing variables and circular structures, which\nwill cause an infinite loop, and eventually a stack overflow exception.\nDOM objects and window/frame instances are not supported.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "jsObj1", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "JS object to compare agains second JS object" }, { "Name" : "jsObj2", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "JS object to compare agains first JS object" }] }, { "Container" : "Fit.Core", "Name" : "Merge", "Returns" : "$ObjectTypeA + $ObjectTypeB", "Access" : "public", "Description" : "Deep merges two objects and returns the resulting object.\nTake notice of the behaviour and restriction of Fit.Core.Clone(..) since\nthe target object is first cloned using that function. The resulting object is\nthen enriched with the data from the merge object.\nProperty values on the merge object takes precedence over property values on the\ntarget object. Arrays are not merged but merely replaced if defined on the merge object.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "targetObject", "Type" : "$ObjectTypeA", "Default" : "", "Nullable" : false, "Description" : "Target object" }, { "Name" : "mergeObject", "Type" : "$ObjectTypeB", "Default" : "", "Nullable" : false, "Description" : "Merge object" }, { "Name" : "mergeObjectOverwriteBehaviour", "Type" : "Fit.Core.MergeOverwriteBehaviour", "Default" : "undefined", "Nullable" : false, "Description" : "Overwrite behaviour for merge object" }] }, { "Container" : "Fit.Data", "Name" : "Base64ToBlob", "Returns" : "", "Access" : "public", "Description" : "Converts base64 value into a blob", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "base64Data", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Base64 data to convert into a blob" }, { "Name" : "mimeType", "Type" : "string | null", "Default" : "", "Nullable" : false, "Description" : "Mime type such as image/png. If Null is passed, then mime\ntype will be extracted from base64 value if possible. If mime type\ncannot be determined, then application/octet-stream will be used." }, { "Name" : "async", "Type" : "boolean", "Default" : "", "Nullable" : false, "Description" : "Perform conversion asynchronously on supported browsers" }, { "Name" : "resolve", "Type" : "(result: { Success: boolean, Blob: Blob | null, Error: string | null }) => void", "Default" : "", "Nullable" : false, "Description" : "Function receiving blob once it is ready. Blob is null if an error occurred, in which case the Error property is set." }] }, { "Container" : "Fit.Data", "Name" : "CreateGuid", "Returns" : "string", "Access" : "public", "Description" : "Returns Version 4 compliant GUID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "dashFormat", "Type" : "boolean", "Default" : "true", "Nullable" : false, "Description" : "Flag indicating whether to use format with or without dashes.\nTrue = With dashes (default): 57df75f2-3d09-48ca-9c94-f64a5986518f (length = 36)\nFalse = Without dashes: 57df75f23d0948ca9c94f64a5986518f (length = 32)" }] }, { "Container" : "Fit.Date", "Name" : "Format", "Returns" : "string", "Access" : "public", "Description" : "Format instance of Date.\nExample: Fit.Date.Format(new Date(), \"YYYY-MM-DD hh:mm:ss\");\nResult: 2016-06-18 15:23:48\n\nDate can be formatted using the following variables:\nYYYY: 4 digits year (e.g. 2016)\nYY: 2 digits year (e.g. 16)\nMM: 2 digits month (e.g. 04)\nM: Prefer 1 digit month if possible (e.g. 4)\nDD: 2 digits day (e.g. 09)\nD: Prefer 1 digit day if possible (e.g. 9)\nW: 1 digit week number (e.g. 35)\nhh: 2 digits hours value (e.g. 08)\nh: 1 digit hours value if possible (e.g. 8)\nmm: 2 digits minutes value (e.g. 02)\nm: 1 digit minutes value if possible (e.g. 2)\nss: 2 digits seconds value (e.g. 05)\ns: 1 digit seconds value if possible (e.g. 5)", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "date", "Type" : "Date", "Default" : "", "Nullable" : false, "Description" : "Date to format as string" }, { "Name" : "format", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Date format" }] }, { "Container" : "Fit.Date", "Name" : "GetWeek", "Returns" : "integer", "Access" : "public", "Description" : "Get ISO 8601 week number from date", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "date", "Type" : "Date", "Default" : "", "Nullable" : false, "Description" : "Date to get week number from" }] }, { "Container" : "Fit.Date", "Name" : "Parse", "Returns" : "Date", "Access" : "public", "Description" : "Parse date as string into an instance of Date - example: 18-09/2016 17:03:21", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "strDate", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Date as string" }, { "Name" : "format", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Specify date format used to allow parser to determine which parts of the string\nis Year, Month, Day, etc. The same variables used for Fit.Date.Format\ncan be used, except for W (week).\nSince the parser do not need to know the length of the different parts that\nmakes up the Date, one can simply use the shorter variable format: Y, M, D, h, m, s.\nBe aware that the Parse function does not support a Year represented by a\n2 digit value, since it will be impossible to determine which century it belongs to.\nExample: D-M/Y h:m:s" }] }, { "Container" : "Fit.Dom", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Add element to container", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "container", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Add element to this container" }, { "Name" : "elm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element, Text, or Comment to add to container" }] }, { "Container" : "Fit.Dom", "Name" : "AddClass", "Returns" : "", "Access" : "public", "Description" : "Add CSS class to element if not already found", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element on which CSS class is to be added" }, { "Name" : "cls", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "CSS class name" }] }, { "Container" : "Fit.Dom", "Name" : "Attribute", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set attribute on DOMElement - returns Null if attribute does not exist", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOMElement to which attribute is set and/or returned from" }, { "Name" : "name", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Name of attribute to set or retrieve" }, { "Name" : "value", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, attribute is updated with specified value.\nPassing Null results in attribute being removed." }] }, { "Container" : "Fit.Dom", "Name" : "Contained", "Returns" : "boolean", "Access" : "public", "Description" : "Check whether given element is found in given container at any given level in object hierarchy", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "container", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Container expected to contain element" }, { "Name" : "elm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element expected to be found in container's object hierarchy" }] }, { "Container" : "Fit.Dom", "Name" : "CreateElement", "Returns" : "DOMNode", "Access" : "public", "Description" : "Create element with the specified HTML content.\nHTML content is (by default) wrapped in a &lt;div&gt; if it produced multiple elements.\nIf content on the other hand produces only one outer element, that particular element is returned.\nIt is possible to construct DOM objects of type Element, Text, and Comment.\nThe container type used to wrap multiple elements can be changed using the containerTagName argument.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "html", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "HTML element to create DOMElement from" }, { "Name" : "containerTagName", "Type" : "string", "Default" : "div", "Nullable" : false, "Description" : "If defined, and html argument produces multiple element, the result is wrapped in a container of\nthe specified type. If not set, multiple elements will be wrapped in a &lt;div&gt; container." }] }, { "Container" : "Fit.Dom", "Name" : "Data", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set data attribute on DOMElement - returns Null if data attribute does not exist", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOMElement to which data attribute is set and/or returned from" }, { "Name" : "name", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Name of data attribute to set or retrieve" }, { "Name" : "value", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, data attribute is updated with specified value.\nPassing Null results in data attribute being removed." }] }, { "Container" : "Fit.Dom", "Name" : "GetBoundingPosition", "Returns" : "Fit.TypeDefs.Position | null", "Access" : "public", "Description" : "Get position for visible element within viewport.\nObject returned contains an X and Y property\nwith the desired integer values (pixels).\nContrary to Fit.Dom.GetPosition(elm, true) which returns\nthe position to the margin edge, this function returns the\nposition of the element's border edge, and is the recommended\napproach.\nNull will be returned if element is not visible.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element to get position for" }] }, { "Container" : "Fit.Dom", "Name" : "GetComputedStyle", "Returns" : "string | null", "Access" : "public", "Description" : "Get style value applied after stylesheets have been loaded.\nAn empty string or null may be returned if style has not been defined or does not exist.\nMake sure not to use shorthand properties (e.g. border-color or padding) as some browsers are\nnot capable of calculating these - use the fully qualified property name (e.g. border-left-color\nor padding-left).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element which contains desired CSS style value" }, { "Name" : "style", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "CSS style property name" }] }, { "Container" : "Fit.Dom", "Name" : "GetConcealer", "Returns" : "DOMElement | null", "Access" : "public", "Description" : "Get container responsible for hiding given element.\nElement passed will be returned if hidden itself.\nReturns Null if element is visible, or has not been rooted in DOM yet.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to get concealer for" }] }, { "Container" : "Fit.Dom", "Name" : "GetDepth", "Returns" : "integer", "Access" : "public", "Description" : "Get number of levels specified element is nested in DOM.\nHTMLElement is at level 0, HTMLBodyElement is at level 1,\nfirst element in HTMLBodyElement is at level 2, and so forth.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to get depth in DOM for" }] }, { "Container" : "Fit.Dom", "Name" : "GetFocused", "Returns" : "DOMElement | null", "Access" : "public", "Description" : "Returns element currently focused. If no element is focused, the document body is returned.\nNull will be returned if the document has not been loaded yet.", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Dom", "Name" : "GetIndex", "Returns" : "integer", "Access" : "public", "Description" : "Get element position within parent element.\nNotice that Text and Comment nodes are ignored.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element to get index for" }] }, { "Container" : "Fit.Dom", "Name" : "GetInnerDimensions", "Returns" : "Fit.TypeDefs.Dimension", "Access" : "public", "Description" : "Returns object with Width and Height properties (integers) with inner dimensions of specified\ncontainer. Inner dimensions are width and height with padding and borders substracted.\nResult returned will be as expected no matter the box-sizing model being used.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element to get inner dimensions for" }] }, { "Container" : "Fit.Dom", "Name" : "GetOverflowingParent", "Returns" : "DOMElement | null", "Access" : "public", "Description" : "Get parent that has overflow set to auto, scroll, or hidden (hidden is optional).\nTo get the parent that actually affects the position of the element when scrolled,\nuse GetScrollParent(..) instead, as it may not be the first parent with overflow set.\nWhich parent affects the position of an element when scrolled depends on which element\nis the offsetParent - it might not be an element within the overflowing parent, or\nthe overflowing parent itself, which would be required to affect the element's position\nwhen the overflowing parent is scrolled.\nA scrollable container will only affect an element's position if it is statically positioned\nwithin the scrollable parent, or if it is positioned relative to another statically positioned element\nwithin the parent with overflow, or if the parent with overflow itself is positioned, which makes it the\noffsetParent, hence causing the element to scroll along.\nIn most cases GetScrollParent(..) will be the correct function to use.\nExceptions to this is when we also want to include overflow:hidden, or if we have an\nelement with position:absolute that is positioned relative to the document or an element\noutside of the overflowing/scrollable parent, and we still want a reference to the nearest\nparent with overflow set.\nReturns null if element passed is placed on its own stacking context with position:fixed.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element to get overflowing parent for" }, { "Name" : "scrollableOnly", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Flag indicating whether to only consider parents with overflow:auto or overflow:scroll.\nParents with overflow:hidden will be ignored. As such, only a parent with the ability to\nscroll overflowing content into view can be returned." }] }, { "Container" : "Fit.Dom", "Name" : "GetParentOfType", "Returns" : "DOMElement | null", "Access" : "public", "Description" : "Returns first parent of specified type for a given element if found, otherwise Null", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to find parent for" }, { "Name" : "parentType", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Tagname of parent element to look for" }] }, { "Container" : "Fit.Dom", "Name" : "GetPosition", "Returns" : "Fit.TypeDefs.Position | null", "Access" : "public", "Description" : "Get position for visible element.\nObject returned contains an X and Y property\nwith the desired integer values (pixels).\nThe position returned is where the margin edge\nstarts, if such is applied.\nNull will be returned if element is not visible.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element to get position for" }, { "Name" : "relativeToViewport", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to get element position relative to viewport rather than to document which may exceed the viewport.\nContrary to Fit.Dom.GetBoundingPosition(elm), the position returned is where the margin edge starts, if such is applied." }] }, { "Container" : "Fit.Dom", "Name" : "GetRelativePosition", "Returns" : "Fit.TypeDefs.Position | null", "Access" : "public", "Description" : "Get element position relative to a positioned parent or ancestor (offsetParent).\nCoordinates returned are relative to document if no positioned parent or ancestor is found.\nFor an element with position:fixed coordinates relative to the document is returned.\nObject returned contains an X and Y property with the desired integer values (pixels).\nNotice that Null is returned in case element is not rooted yet (added to DOM) or invisible.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element to get position for" }] }, { "Container" : "Fit.Dom", "Name" : "GetScrollBars", "Returns" : "Fit.TypeDefs.ScrollBarsPresent", "Access" : "public", "Description" : "Get information about scrollbars within a given DOM element.\nReturns an object with Vertical and Horizontal properties, each containing\nEnabled and Size properties, which can be used to determine whether scrolling is enabled,\nand the size of the scrollbar. The size remains 0 when scrolling is not enabled.\nTo determine whether the browser's viewport has scrolling enabled, use Fit.Browser.GetScrollBars().", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element to get scrollbar information for" }] }, { "Container" : "Fit.Dom", "Name" : "GetScrollDocument", "Returns" : "DOMElement", "Access" : "public", "Description" : "Get scrolling document element. This is the cross browser\nequivalent of document.scrollingElement.", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Dom", "Name" : "GetScrollParent", "Returns" : "DOMElement | null", "Access" : "public", "Description" : "Get element's scroll parent (parent that has overflow:auto or overflow:scroll,\nand that affects the position of the element if scrolled). This may not necessarily\nbe the first parent with overflow set - it also depends on the element's offsetParent.\nFor a parent to be considered the scroll parent, it must be scrollable, and the element\npassed to this function must be relatively positioned against this scroll parent, or\nrelatively positioned against an element within the scroll parent that is statically\npositioned, or in turn relatively positioned against the scroll parent.\nReturns null if element passed is placed on its own stacking context with position:fixed.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element to get scroll parent for" }] }, { "Container" : "Fit.Dom", "Name" : "GetScrollPosition", "Returns" : "Fit.TypeDefs.Position", "Access" : "public", "Description" : "Get number of pixels specified element's container(s)\nhave been scrolled. This gives us the total scroll value\nfor nested scrollable elements.\nObject returned contains an X and Y property with the desired integer values (pixels).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to get scroll position for" }] }, { "Container" : "Fit.Dom", "Name" : "HasClass", "Returns" : "boolean", "Access" : "public", "Description" : "Check whether given DOMElement has specified CSS class registered - returns True if found, otherwise False", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element for which CSS class may be registered" }, { "Name" : "cls", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "CSS class name" }] }, { "Container" : "Fit.Dom", "Name" : "InsertAfter", "Returns" : "", "Access" : "public", "Description" : "Insert DOMNode after another DOMNode", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "target", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to insert new element after" }, { "Name" : "newElm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to insert after target element" }] }, { "Container" : "Fit.Dom", "Name" : "InsertAt", "Returns" : "", "Access" : "public", "Description" : "Insert DOMNode at given position.\nNotice that position is relative to contained DOM Elements.\nText and Comment nodes are ignored.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "container", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Container to insert element into" }, { "Name" : "position", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Position (index) to insert element at" }, { "Name" : "newElm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to insert" }] }, { "Container" : "Fit.Dom", "Name" : "InsertBefore", "Returns" : "", "Access" : "public", "Description" : "Insert DOMNode before another DOMNode", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "target", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to insert new element before" }, { "Name" : "newElm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to insert before target element" }] }, { "Container" : "Fit.Dom", "Name" : "IsRooted", "Returns" : "boolean", "Access" : "public", "Description" : "Returns True if element is rooted in document (appended to body), otherwise False", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to check" }] }, { "Container" : "Fit.Dom", "Name" : "IsVisible", "Returns" : "boolean", "Access" : "public", "Description" : "Check whether given element is visible. Returns True if element has been rooted\nin DOM and is visible. Returns False if not rooted, or display:none has been set\non element or any of its ancestors.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to check visibility for" }] }, { "Container" : "Fit.Dom", "Name" : "Remove", "Returns" : "", "Access" : "public", "Description" : "Remove DOMNode from its container element", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "DOMNode to remove" }] }, { "Container" : "Fit.Dom", "Name" : "RemoveClass", "Returns" : "", "Access" : "public", "Description" : "Remove CSS class from element if found", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element from which CSS class is to be removed" }, { "Name" : "cls", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "CSS class name" }] }, { "Container" : "Fit.Dom", "Name" : "Replace", "Returns" : "", "Access" : "public", "Description" : "Replace element with another one", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "oldElm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to replace (Element, Text, or Comment)" }, { "Name" : "newElm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Replacement element (Element, Text, or Comment)" }] }, { "Container" : "Fit.Dom", "Name" : "SetCaretPosition", "Returns" : "", "Access" : "public", "Description" : "Set caret position for input control", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "input", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Input element" }, { "Name" : "pos", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Integer value specifying caret position in input control" }] }, { "Container" : "Fit.Dom", "Name" : "Text", "Returns" : "string", "Access" : "public", "Description" : "Get/set inner text of DOMElement", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Node to update and/or get text value from" }, { "Name" : "value", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, inner text is updated with specified value" }] }, { "Container" : "Fit.Dom", "Name" : "Wrap", "Returns" : "", "Access" : "public", "Description" : "Wraps element in container element while preserving position in DOM if rooted", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elementToWrap", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to wrap" }, { "Name" : "container", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Container to wrap element within" }] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "GetNextZindex", "Returns" : "integer", "Access" : "public", "Description" : "Get next z-index which will place an element above any draggable element", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"keydown\" | \"keyup\" | \"keypress\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackKeyboard", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"click\" | \"contextmenu\" | \"dblclick\" | \"mousedown\" | \"mouseenter\" | \"mouseleave\" | \"mousemove\" | \"mouseout\" | \"mouseover\" | \"mouseup\" | \"mousewheel\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackMouse", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"popstate\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackPopState", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"hashchange\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackHashChange", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"focus\" | \"focusin\" | \"focusout\" | \"blur\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackFocus", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"beforeunload\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackBeforeUnload", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"cut\" | \"copy\" | \"paste\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackClipboard", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"storage\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackStorage", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given DOMElement and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element on to which event handler is registered" }, { "Name" : "event", "Type" : "\"#rooted\"", "Default" : "", "Nullable" : false, "Description" : "Event name" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackRooted", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackGeneric", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"keydown\" | \"keyup\" | \"keypress\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set True to capture event before it reaches target, False to catch event when it bubbles out from target.\nAlternatively pass options object to control behaviour on a more fine-grained scale.\nNOTICE: This feature will be ignored by Internet Explorer 8 and below." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackKeyboard", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"click\" | \"contextmenu\" | \"dblclick\" | \"mousedown\" | \"mouseenter\" | \"mouseleave\" | \"mousemove\" | \"mouseout\" | \"mouseover\" | \"mouseup\" | \"mousewheel\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set True to capture event before it reaches target, False to catch event when it bubbles out from target.\nAlternatively pass options object to control behaviour on a more fine-grained scale.\nNOTICE: This feature will be ignored by Internet Explorer 8 and below." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackMouse", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"popstate\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set True to capture event before it reaches target, False to catch event when it bubbles out from target.\nAlternatively pass options object to control behaviour on a more fine-grained scale.\nNOTICE: This feature will be ignored by Internet Explorer 8 and below." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackPopState", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"hashchange\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set True to capture event before it reaches target, False to catch event when it bubbles out from target.\nAlternatively pass options object to control behaviour on a more fine-grained scale.\nNOTICE: This feature will be ignored by Internet Explorer 8 and below." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackHashChange", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"focus\" | \"focusin\" | \"focusout\" | \"blur\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set True to capture event before it reaches target, False to catch event when it bubbles out from target.\nAlternatively pass options object to control behaviour on a more fine-grained scale.\nNOTICE: This feature will be ignored by Internet Explorer 8 and below." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackFocus", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"beforeunload\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set True to capture event before it reaches target, False to catch event when it bubbles out from target.\nAlternatively pass options object to control behaviour on a more fine-grained scale.\nNOTICE: This feature will be ignored by Internet Explorer 8 and below." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackBeforeUnload", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"cut\" | \"copy\" | \"paste\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set True to capture event before it reaches target, False to catch event when it bubbles out from target.\nAlternatively pass options object to control behaviour on a more fine-grained scale.\nNOTICE: This feature will be ignored by Internet Explorer 8 and below." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackClipboard", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"storage\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set True to capture event before it reaches target, False to catch event when it bubbles out from target.\nAlternatively pass options object to control behaviour on a more fine-grained scale.\nNOTICE: This feature will be ignored by Internet Explorer 8 and below." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackStorage", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given DOMElement and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element on to which event handler is registered" }, { "Name" : "event", "Type" : "\"#rooted\"", "Default" : "", "Nullable" : false, "Description" : "Event name" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "This argument is ignored for the specialized #rooted event." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackRooted", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Event name without 'on' prefix (e.g. 'load', 'mouseover', 'click' etc.)" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set True to capture event before it reaches target, False to catch event when it bubbles out from target.\nAlternatively pass options object to control behaviour on a more fine-grained scale.\nNOTICE: This feature will be ignored by Internet Explorer 8 and below." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackGeneric", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddMutationObserver", "Returns" : "integer", "Access" : "public", "Description" : "Registers mutation observer which is invoked when a DOMElement is updated. By default\nonly attributes and dimensions are observed. Use deep flag to have children and character data observed too.\nAn observer ID is returned which can be used to remove mutation observer.\nImportant: Mutation observers should be removed when no longer needed for better performance!\nTo remove an observer from within the observer function itself, simply call disconnect().", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOMElement to observe" }, { "Name" : "obs", "Type" : "Fit.EventsTypeDefs.MutationObserverCallback", "Default" : "", "Nullable" : false, "Description" : "JavaScript observer function to register - receives reference to DOMElement being observed when updated" }, { "Name" : "deep", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Flag indicating whether to check for modifications within element (children and character data) - this could potentially be expensive" }] }, { "Container" : "Fit.Events", "Name" : "GetEvent", "Returns" : "Event", "Access" : "public", "Description" : "Get event argument related to event just fired in a cross browser compatible manner", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "Event", "Default" : "undefined", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.Events", "Name" : "GetModifierKeys", "Returns" : "Fit.EventTypeDefs.ModifierKeys", "Access" : "public", "Description" : "Get object containing information about modifier keys currently being active.", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Events", "Name" : "GetPointerState", "Returns" : "Fit.EventTypeDefs.PointerState", "Access" : "public", "Description" : "Get object containing information about pointer.\nObject contains the following properties:\nTarget: Is the DOMElement affected by click/touch.\nButtons.Primary/Secondary: Is True if given button is being held down.\nCoordinates.ViewPort.X/Y: Mouse coordinates within viewport.\nCoordinates.Document.X/Y: Mouse coordinates within document which might have been scrolled.", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Events", "Name" : "GetRelatedTarget", "Returns" : "DOMElement | null", "Access" : "public", "Description" : "Get a reference to the secondary object related to an event - e.g. the element losing\nfocus in a focus event handler. Returns Null if there is no related event object, or if\nnot supported by the browser.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "Event", "Default" : "undefined", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.Events", "Name" : "GetTarget", "Returns" : "DOMElement", "Access" : "public", "Description" : "Get a reference to the object that is affected by an event", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "Event", "Default" : "undefined", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.Events", "Name" : "OnDomReady", "Returns" : "", "Access" : "public", "Description" : "Registers OnReady handler which gets fired when DOM is ready for manipulation, or if it is already ready", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "callback", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "OnReady", "Returns" : "", "Access" : "public", "Description" : "Registers OnReady handler which gets fired when document is ready, or if it is already ready", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "callback", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "PreventDefault", "Returns" : "boolean", "Access" : "public", "Description" : "Prevent default behaviour triggered by given event - returns False", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "Event", "Default" : "undefined", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.Events", "Name" : "RemoveHandler", "Returns" : "", "Access" : "public", "Description" : "Remove event handler given by Event ID returned from Fit.Events.AddHandler(..)", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) from which event handler is removed" }, { "Name" : "eventId", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Event ID identifying handler to remove" }] }, { "Container" : "Fit.Events", "Name" : "RemoveHandler", "Returns" : "", "Access" : "public", "Description" : "Remove event handler for specified event on given EventTarget", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) from which event handler is removed" }, { "Name" : "event", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Event name without 'on' prefix (e.g. 'load', 'mouseover', 'click' etc.)" }, { "Name" : "eventFunction", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to remove" }] }, { "Container" : "Fit.Events", "Name" : "RemoveHandler", "Returns" : "", "Access" : "public", "Description" : "Remove event handler for specified event on given EventTarget", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) from which event handler is removed" }, { "Name" : "event", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Event name without 'on' prefix (e.g. 'load', 'mouseover', 'click' etc.)" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Value indicating whether event handler was registered using event capturing (True) or event bubbling (False).\nIf event handler was registered with event options for more fine-grained control, these options are passed instead." }, { "Name" : "eventFunction", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to remove" }] }, { "Container" : "Fit.Events", "Name" : "RemoveMutationObserver", "Returns" : "", "Access" : "public", "Description" : "Remove mutation observer", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOMElement being observed" }, { "Name" : "obs", "Type" : "Fit.EventsTypeDefs.MutationObserverCallback", "Default" : "", "Nullable" : false, "Description" : "JavaScript observer function to remove" }, { "Name" : "deep", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, observer must have been registered with the same deep value to be removed" }] }, { "Container" : "Fit.Events", "Name" : "RemoveMutationObserver", "Returns" : "", "Access" : "public", "Description" : "Remove mutation observer by ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "id", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Observer ID returned from AddMutationObserver(..) function" }] }, { "Container" : "Fit.Events", "Name" : "Stop", "Returns" : "boolean", "Access" : "public", "Description" : "Completely suppress event which is equivalent of\ncalling both PreventDefault(e) and StopPropagation(e).\nReturns False.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "Event", "Default" : "undefined", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.Events", "Name" : "StopPropagation", "Returns" : "boolean", "Access" : "public", "Description" : "Prevent given event from propagating (bubble up) - returns False", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "Event", "Default" : "undefined", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.Internationalization", "Name" : "AddLocalization", "Returns" : "", "Access" : "public", "Description" : "Register information such as translations related to a specific language and country.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "type", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Object type associated with localization information - e.g. MyApp.ContactForm" }, { "Name" : "translations", "Type" : "Object", "Default" : "", "Nullable" : false, "Description" : "Object array containing language and country specific information such as translations.\nThe object array must be indexed using locale keys, and \"en\" must be defined first.\nExample: { \"en\": {}, \"en_GB\": {}, \"da\": {} }\nEvery language inherits all the information from \"en\", and country specific information\nsuch as \"de_AT\" automatically inherits everything from \"de\" - in which case\n\"de\" must be declared first.\nInformation can be obtained from within instances of the given type using:\nFit.Internationalization.GetLocale(this); // Translations for current locale\nFit.Internationalization.GetLocale(this, \"de_AT\"); // Translations for specific locale\nNaturally \"this\" is an instance of MyApp.ContactForm in this example." }] }, { "Container" : "Fit.Internationalization", "Name" : "GetLocale", "Returns" : "object", "Access" : "public", "Description" : "Get type specific locale information registered using Fit.Internationalization.AddLocalization(..)", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "instance", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Instance of type used to register locale information" }, { "Name" : "locale", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, information for specified locale such as en, en_GB, or da is returned.\nIf not found, en (en_US) is returned. If omitted, information for current locale is returned." }] }, { "Container" : "Fit.Internationalization", "Name" : "GetSystemLocale", "Returns" : "object", "Access" : "public", "Description" : "Get locale object such as:\n{\n     Formatting:\n     {\n         DecimalSeparator: '.',\n         ThousandsSeparator: ',',\n         DateFormat: 'MM/DD/YYYY',\n         TimeFormat: 'hh:mm',\n         TimeFormatLong: 'hh:mm:ss',\n         ClockHours: 12 // 24 or 12 (AM/PM)\n     },\n     Translations:\n     {\n         Required: 'Field is required'\n     }\n}", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "localeKey", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, specified locale such as en, en_GB, or da is returned. If not\nfound, en (en_US) is returned. If omitted, current locale is returned." }] }, { "Container" : "Fit.Internationalization", "Name" : "Locale", "Returns" : "string", "Access" : "public", "Description" : "Get/set active locale. Value returned is a lower cased string such as\n\"en\", \"en_us\", \"de\", etc. Changing locale results in OnLocaleChanged being fired.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "locale", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, locale is updated with specified value (e.g. en, en_GB, da, etc.)" }] }, { "Container" : "Fit.Internationalization", "Name" : "OnLocaleChanged", "Returns" : "", "Access" : "public", "Description" : "Add event handler which is called if locale is changed", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Event handler which takes no arguments" }] }, { "Container" : "Fit.Internationalization", "Name" : "RemoveOnLocaleChanged", "Returns" : "", "Access" : "public", "Description" : "Remove event handler to avoid it being called when locale is changed", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Event handler to remove" }] }, { "Container" : "Fit.Loader", "Name" : "ExecuteScript", "Returns" : "", "Access" : "public", "Description" : "Load client script on demand in a non-blocking manner.\n\nExecuteScript differs from LoadScript in the way code is loaded\nand executed. ExecuteScript loads the script using AJAX, meaning\nthe script file either has to be located on the same domain as\nthe application invoking ExecuteScript, or have the\nAccess-Control-Allow-Origin header configured to allow file to be\nloaded from a foreign domain.\nThe code loaded is injected into the virtual machine meaning debugging\nwill not reveal from which file the code originated, although this\ninformation can be retrived by inspecting the call stack.\nExecuteScript has the advantages that is allows for both an OnSuccess\nand OnFailure handler, and it allows for objects to be passed to\nthe executing script using the context parameter, which will\ncause the code to execute within its own contained scope (closure).\nThe script will execute in the global scope if no context object is provided.\n\n// Example of loading a JavaScript file, passing variables to it:\n\nFit.Loader.ExecuteScript(\"extensions/test/test.js\", function(src)\n{\n     alert(\"JavaScript \" + src + \" loaded and ready to be used!\");\n},\nfunction(src)\n{\n     alert(\"JavaScript \" + src + \" could NOT be loaded;);\n\n}, { $: window.jQuery, mode: \"advanced\", showData: \"users\" });", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "src", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Script source (path or URL)" }, { "Name" : "onSuccess", "Type" : "Fit.LoaderTypeDefs.LoadSingleEventHandler", "Default" : "undefined", "Nullable" : false, "Description" : "Callback function fired when script has been successfully loaded and executed.\nThe function takes the script source requested as an argument." }, { "Name" : "onFailure", "Type" : "Fit.LoaderTypeDefs.LoadSingleEventHandler", "Default" : "undefined", "Nullable" : false, "Description" : "Callback function fired if script could not be loaded or executed successfully.\nThe function takes the script source requested as an argument." }, { "Name" : "context", "Type" : "object", "Default" : "undefined", "Nullable" : false, "Description" : "Properties registered on the context object will be\nexposed as globally accessible objects for the executing script.\nExample: { jQuery: window.jQuery, $: window.jQuery }\nThe script will execute in the global window scope if no\ncontext object is defined." }] }, { "Container" : "Fit.Loader", "Name" : "LoadScript", "Returns" : "", "Access" : "public", "Description" : "Load client script on demand in a non-blocking manner.\n\n// Example of loading a JavaScript file\n\nFit.Loader.LoadScript(\"extensions/test/test.js\", function(src)\n{\n     alert(\"JavaScript \" + src + \" loaded and ready to be used!\");\n});", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "source", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Script source (path or URL)" }, { "Name" : "cb", "Type" : "Fit.LoaderTypeDefs.LoadSingleEventHandler", "Default" : "undefined", "Nullable" : false, "Description" : "Callback function fired when script loading is complete - takes the script source requested as an argument.\nBe aware that a load error will also trigger the callback to make sure control is always returned.\nConsider using feature detection within callback function for most reliable execution - example:\nif (expectedObjectOrFunction) { /* Successfully loaded, continue.. */ }" }] }, { "Container" : "Fit.Loader", "Name" : "LoadScript", "Returns" : "", "Access" : "public", "Description" : "Load client script on demand in a non-blocking manner.\n\n// Example of loading a JavaScript file\n\nFit.Loader.LoadScript(\"extensions/test/test.js\", { id: \"my-script\", charset: \"UTF-8\" }, function(src)\n{\n     alert(\"JavaScript \" + src + \" loaded and ready to be used!\");\n});", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "source", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Script source (path or URL)" }, { "Name" : "attributes", "Type" : "{[key:string]: string}", "Default" : "", "Nullable" : false, "Description" : "Attributes registered with script block" }, { "Name" : "cb", "Type" : "Fit.LoaderTypeDefs.LoadSingleEventHandler", "Default" : "undefined", "Nullable" : false, "Description" : "Callback function fired when script loading is complete - takes the script source requested as an argument.\nBe aware that a load error will also trigger the callback to make sure control is always returned.\nConsider using feature detection within callback function for most reliable execution - example:\nif (expectedObjectOrFunction) { /* Successfully loaded, continue.. */ }" }] }, { "Container" : "Fit.Loader", "Name" : "LoadScripts", "Returns" : "", "Access" : "public", "Description" : "Chain load multiple client scripts on demand in a non-blocking manner.\n\n// Example of loading multiple JavaScript files in serial:\n\nFit.Loader.LoadScripts(\n[\n     {\n          source: \"extensions/test/menu.js\",\n          attributes: { id: \"my-script\" },\n          loaded: function(cfg) { alert(\"JavaScript \" + cfg.source + \" loaded\"); }\n     },\n     {\n          source: \"http://cdn.domain.com/chat.js\",\n          attributes: { id: \"another-script\" },\n          loaded: function(cfg) { alert(\"JavaScript \" + cfg.source + \" loaded\"); }\n     }\n],\nfunction(cfgs)\n{\n     alert(\"All files loaded\");\n});\n\nFirst argument is an array of script configurations:\nsource:string (required): Script source (path or URL)\nloaded:function (optional): Callback function to execute when file has loaded (takes file configuration as argument)\nBe aware that loaded callback is invoked even if a load error occures, to make sure control is returned to your code.\n\nSecond argument is the callback function fired when all files have finished loading - takes configuration array as argument.\nThis too may be invoked even if a load error occured, to make sure control is returned to your code.\n\nConsider using feature detection within callback functions for super reliable execution - example:\nif (expectedObjectOrFunction) { /* Successfully loaded, continue.. */ }", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "cfg", "Type" : "Fit.LoaderTypeDefs.ResourceConfiguration[]", "Default" : "", "Nullable" : false, "Description" : "Configuration array (see function description for details)" }, { "Name" : "callback", "Type" : "Fit.LoaderTypeDefs.LoadMultiConfigurationsEventHandler", "Default" : "undefined", "Nullable" : false, "Description" : "Callback function fired when all scripts have finished loading (see function description for details)" }] }, { "Container" : "Fit.Loader", "Name" : "LoadStyleSheet", "Returns" : "", "Access" : "public", "Description" : "Load CSS stylesheet on demand in a non-blocking manner.\nIt is recommended to load stylesheets before rendering items using\nthe CSS classes to avoid FOUC (Flash Of Unstyled Content).\n\n// Example of loading a CSS file\n\nFit.Loader.LoadStyleSheet(\"extensions/test/layout.css\", function(src)\n{\n     alert(\"CSS file \" + src + \" loaded!\");\n});", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "src", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "CSS file source (path or URL)" }, { "Name" : "callback", "Type" : "Fit.LoaderTypeDefs.LoadSingleEventHandler", "Default" : "undefined", "Nullable" : false, "Description" : "Callback function fired when CSS file loading is complete - takes the file source requested as an argument.\nBe aware that a load error will also trigger the callback to make sure control is always returned." }] }, { "Container" : "Fit.Loader", "Name" : "LoadStyleSheets", "Returns" : "", "Access" : "public", "Description" : "Load multiple stylesheets in parrallel in a non-blocking manner.\n\n// Example of loading multiple CSS files:\n\nFit.Loader.LoadStyleSheets(\n[\n     {\n          source: \"extensions/test/menu.css\",\n          loaded: function(cfg) { alert(\"Stylesheet \" + cfg.source + \" loaded\"); }\n     },\n     {\n          source: \"http://cdn.domain.com/chat.css\",\n          loaded: function(cfg) { alert(\"Stylesheet \" + cfg.source + \" loaded\"); }\n     }\n],\nfunction(cfgs)\n{\n     alert(\"All stylesheets loaded\");\n});\n\nFirst argument is an array of stylesheet configurations:\nsource:string (required): Stylesheet source (path or URL)\nloaded:function (optional): Callback function to execute when stylesheet has loaded (takes stylesheet configuration as argument)\nBe aware that loaded callback is invoked even if a load error occures, to make sure control is returned to your code.\n\nSecond argument is the callback function fired when all stylesheets have finished loading - takes configuration array as argument.\nThis too may be invoked even if a load error occured, to make sure control is returned to your code.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "cfg", "Type" : "Fit.LoaderTypeDefs.ResourceConfiguration[]", "Default" : "", "Nullable" : false, "Description" : "Configuration array (see function description for details)" }, { "Name" : "callback", "Type" : "Fit.LoaderTypeDefs.LoadMultiConfigurationsEventHandler", "Default" : "undefined", "Nullable" : false, "Description" : "Callback function fired when all stylesheets have finished loading (see function description for details)" }] }, { "Container" : "Fit.Math", "Name" : "Format", "Returns" : "string", "Access" : "public", "Description" : "Format value to produce a number with the specified number of decimals.\nValue is properly rounded off to ensure best precision.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "number", "Default" : "", "Nullable" : false, "Description" : "Number to format" }, { "Name" : "decimals", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Desired number of decimals" }, { "Name" : "decimalSeparator", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, the specified decimal separator will be used" }] }, { "Container" : "Fit.Math", "Name" : "Random", "Returns" : "integer", "Access" : "public", "Description" : "Get random integer value", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "min", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "Minimum value - assumes 0 if not defined" }, { "Name" : "max", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "Maximum value - assumes Number.MAX_SAFE_INTEGER (9007199254740991) if not defined" }] }, { "Container" : "Fit.Math", "Name" : "Round", "Returns" : "number", "Access" : "public", "Description" : "Round off value to a number with the specified precision", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "number", "Default" : "", "Nullable" : false, "Description" : "Number to round off" }, { "Name" : "precision", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Desired precision" }, { "Name" : "midpointRounding", "Type" : "Fit.Math.MidpointRounding", "Default" : "undefined", "Nullable" : false, "Description" : "Argument specifies how the function processes a number that is midway between\ntwo numbers - defaults to Fit.Math.MidpointRounding.AwayFromZero if not specified." }] }, { "Container" : "Fit.String", "Name" : "DecodeHtml", "Returns" : "string", "Access" : "public", "Description" : "Decode special characters represented as HTML entities back into their actual characters", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "str", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String to decode" }] }, { "Container" : "Fit.String", "Name" : "EncodeHtml", "Returns" : "string", "Access" : "public", "Description" : "Encode special characters into HTML entities", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "str", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String to encode" }] }, { "Container" : "Fit.String", "Name" : "Hash", "Returns" : "integer", "Access" : "public", "Description" : "Get Java compatible Hash Code from string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "str", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String to get hash code from" }] }, { "Container" : "Fit.String", "Name" : "ParseImageBlobUrls", "Returns" : "string[]", "Access" : "public", "Description" : "Parse and return image blob URLs from image tags", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "str", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String to parse" }] }, { "Container" : "Fit.String", "Name" : "StripHtml", "Returns" : "string", "Access" : "public", "Description" : "Removes any HTML contained in string, and returns the raw text value", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "str", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String to strip HTML from" }] }, { "Container" : "Fit.String", "Name" : "Trim", "Returns" : "string", "Access" : "public", "Description" : "Removes any whitespaces in beginning and end of string passed, and returns the new string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "str", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String to trim" }] }, { "Container" : "Fit.String", "Name" : "UpperCaseFirst", "Returns" : "string", "Access" : "public", "Description" : "Returns string with first letter upper cased", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "str", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String to turn first letter into upper case" }] }, { "Container" : "Fit.Validation", "Name" : "Enabled", "Returns" : "", "Access" : "public", "Description" : "Set or get flag indicating whether type checking should take place (DebugMode)", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "", "Nullable" : false, "Description" : "True enables DebugMode, False disables DebugMode" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectArray", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of Array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectBoolean", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not a boolean", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectCollection", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not a collection that can be iterated", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectDate", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of Date", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectDictionary", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not a dictionary (associative array / object array),\ncontaning only objects/values of type given by validation callback.\nExample: Fit.Validation.ExpectDictionary(dict, Fit.Validation.ExpectString)", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Dictionary to validate" }, { "Name" : "typeValCallback", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Value validation callback" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectElement", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of HTMLElement", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectEvent", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of Event", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectEventTarget", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of EventTarget", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectFunction", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not a valid function", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectInstance", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of specified type", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "instanceType", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Instance type (constructor, e.g. Fit.Http.Request)" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectInstanceArray", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of Array\ncontaning only instances of specified type. Example:\nFit.Validation.ExpectInstanceArray(arr, Fit.Controls.TreeViewNode)", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "instanceType", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Instance type (constructor, e.g. Fit.Http.Request)" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectInteger", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an integer", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectIsSet", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is either Null or Undefined", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectNode", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of Element, Text, or Comment", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectNumber", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not a number", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectObject", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not a valid object such as { Name: 'Jimmy', Age: 34 }", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectRegExp", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of RegExp", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectString", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not a string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectStringValue", "Returns" : "", "Access" : "public", "Description" : "Same as Fit.Validation.ExpectString(..), but string must contain an actual value if set (not be empty)", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectTypeArray", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of Array\ncontaning only objects/values of type given by validation callback.\nExample: Fit.Validation.ExpectTypeArray(arr, Fit.Validation.ExpectString)", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "typeValCallback", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Value validation callback" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectWindow", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of Window", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "IsSet", "Returns" : "boolean", "Access" : "public", "Description" : "Returns True if specified object is set (not Null or Undefined), otherwise False", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }] }, { "Container" : "Fit.Validation", "Name" : "ThrowError", "Returns" : "", "Access" : "public", "Description" : "Throw error and provide stack trace to browser console", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "msg", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Error message" }] }, { "Container" : "Fit", "Name" : "GetPath", "Returns" : "string", "Access" : "public", "Description" : "Get absolute path to Fit.UI on server - e.g. /libs/fitui", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit", "Name" : "GetUrl", "Returns" : "string", "Access" : "public", "Description" : "Get fully qualified URL to Fit.UI on server - e.g. http://server.com/libs/fitui", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit", "Name" : "GetVersion", "Returns" : "Fit.CoreTypeDefs.VersionInfo", "Access" : "public", "Description" : "Get Fit.UI version object containing the following properties:\nMajor (integer), Minor (integer), Patch (integer), Version (string representing Major.Minor.Patch).", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit", "Name" : "SetPath", "Returns" : "", "Access" : "public", "Description" : "Set path to Fit.UI on server - e.g. libs/fitui.\nThis may be necessary if Fit.UI is loaded dynamically\nusing RequireJS or bundled using e.g. WebPack.\nChanging the path affects the return value of both\nGetUrl() and GetPath(), and from where Fit.UI will\nload resources dynamically.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "basePath", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Absolute or relative path to folder containing Fit.UI" }] }, { "Container" : "Fit", "Name" : "SetUrl", "Returns" : "", "Access" : "public", "Description" : "Set URL to Fit.UI on server - e.g. http://cdn/libs/fitui/.\nThis may be necessary if Fit.UI is loaded dynamically\nfrom a foreign domain such as a CDN (Content Delivery Network).\nChanging the URL affects the return value of both\nGetUrl() and GetPath(), and from where Fit.UI will\nload resources dynamically.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "baseUrl", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Full URL to folder containing Fit.UI" }] }, { "Container" : "Fit.Controls.Button", "Name" : "Button", "Returns" : "", "Access" : "public", "Description" : "Create instance of Button control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "controlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.Button", "Name" : "Click", "Returns" : "", "Access" : "public", "Description" : "Programmatically trigger a button click", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.Button", "Name" : "Enabled", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether button is enabled or not", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, True enables button, False disables it" }] }, { "Container" : "Fit.Controls.Button", "Name" : "Focused", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control has focus", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "focus", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True assigns focus, False removes focus (blur)" }] }, { "Container" : "Fit.Controls.Button", "Name" : "Height", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set control height - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control height is updated to specified value. A value of -1 resets control height." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, control height is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.Button", "Name" : "Icon", "Returns" : "string", "Access" : "public", "Description" : "Get/set button icon (Font Awesome icon name, e.g. fa-check-circle-o - https://fontawesome.com/v4.7.0/icons)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, button icon will be set to specified value" }] }, { "Container" : "Fit.Controls.Button", "Name" : "OnClick", "Returns" : "", "Access" : "public", "Description" : "Set callback function invoked when button is clicked", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ButtonTypeDefs.ClickEventHandler", "Default" : "", "Nullable" : false, "Description" : "Callback function invoked when button is clicked - takes button instance as argument" }] }, { "Container" : "Fit.Controls.Button", "Name" : "ReturnFocus", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether button returns focus after click", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "A value of True causes button to return focus to previously focused element after click - defaults to False" }] }, { "Container" : "Fit.Controls.Button", "Name" : "Title", "Returns" : "string", "Access" : "public", "Description" : "Get/set button title", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, button title will be set to specified value" }] }, { "Container" : "Fit.Controls.Button", "Name" : "Type", "Returns" : "Fit.Controls.ButtonType", "Access" : "public", "Description" : "Get/set button type producing specific look and feel.\nPossible values are:\n- Fit.Controls.ButtonType.Default (white)\n- Fit.Controls.ButtonType.Primary (blue)\n- Fit.Controls.ButtonType.Success (green)\n- Fit.Controls.ButtonType.Info (turquoise)\n- Fit.Controls.ButtonType.Warning (orange)\n- Fit.Controls.ButtonType.Danger (red)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "Fit.Controls.ButtonType", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, button type will be set to specified value" }] }, { "Container" : "Fit.Controls.Button", "Name" : "Width", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set control width - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control width is updated to specified value. A value of -1 resets control width." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, control width is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.CheckBox", "Name" : "CheckBox", "Returns" : "", "Access" : "public", "Description" : "Create instance of CheckBox control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.CheckBox", "Name" : "Checked", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is checked", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control's checked state is updated to specified value" }, { "Name" : "preserveDirtyState", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True prevents dirty state from being reset, False (default) resets the dirty state.\nIf dirty state is reset (default), the control value will be compared against the value passed,\nto determine whether it has been changed by the user or not, when IsDirty() is called." }] }, { "Container" : "Fit.Controls.CheckBox", "Name" : "Enabled", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is enabled or not", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, True enables control, False disables it" }] }, { "Container" : "Fit.Controls.CheckBox", "Name" : "Label", "Returns" : "string", "Access" : "public", "Description" : "Get/set label associated with checkbox", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, label is updated to specified value" }] }, { "Container" : "Fit.Controls.CheckBox", "Name" : "Width", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set control width - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control width is updated to specified value. A value of -1 resets control width." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, control width is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.Component", "Name" : "Component", "Returns" : "", "Access" : "public", "Description" : "Component constructor", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique component ID that can be used to access component using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.Component", "Name" : "Dispose", "Returns" : "", "Access" : "public", "Description" : "Destroys control to free up memory.\nMake sure to call Dispose() on Component which can be done like so:\nthis.Dispose = Fit.Core.CreateOverride(this.Dispose, function()\n{\n     // Add control specific dispose logic here\n     base(); // Call Dispose on Component\n});", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.Component", "Name" : "GetDomElement", "Returns" : "DOMElement", "Access" : "public", "Description" : "Get DOMElement representing control", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.Component", "Name" : "GetId", "Returns" : "string", "Access" : "public", "Description" : "Get unique Control ID", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.Component", "Name" : "Render", "Returns" : "", "Access" : "public", "Description" : "Render control, either inline or to element specified", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "toElement", "Type" : "DOMElement", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control is rendered to this element" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "AddChild", "Returns" : "", "Access" : "public", "Description" : "Add item to ContextMenu", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "item", "Type" : "Fit.Controls.ContextMenuItem", "Default" : "", "Nullable" : false, "Description" : "Item to add" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "ContextMenu", "Returns" : "", "Access" : "public", "Description" : "Create instance of ContextMenu control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "controlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "DetectBoundaries", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether boundary/collision detection is enabled or not", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables collision detection (default), False disables it" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "Focused", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control has focus", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True assigns focus, False removes focus (blur)" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "GetAllChildren", "Returns" : "Fit.Controls.ContextMenuItem[]", "Access" : "public", "Description" : "Get all children across entire hierarchy in a flat collection", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "GetChild", "Returns" : "Fit.Controls.ContextMenuItem | null", "Access" : "public", "Description" : "Get item by value - returns Null if not found", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Item value" }, { "Name" : "recursive", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True enables recursive search" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "GetChildren", "Returns" : "Fit.Controls.ContextMenuItem[]", "Access" : "public", "Description" : "Get all children", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "Hide", "Returns" : "", "Access" : "public", "Description" : "Hide context menu", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "IsVisible", "Returns" : "boolean", "Access" : "public", "Description" : "Get value indicating whether context menu is visible or not", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "AddChild", "Returns" : "", "Access" : "public", "Description" : "Add child item", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "item", "Type" : "Fit.Controls.ContextMenuItem", "Default" : "", "Nullable" : false, "Description" : "Item to add" }] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "ContextMenuItem", "Returns" : "", "Access" : "public", "Description" : "Create instance of ContextMenu Item", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "displayTitle", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Item title" }, { "Name" : "itemValue", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Item value" }] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "Dispose", "Returns" : "", "Access" : "public", "Description" : "Destroys item to free up memory", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "GetChild", "Returns" : "Fit.Controls.ContextMenuItem | null", "Access" : "public", "Description" : "Get item by value - returns Null if not found", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Item value" }, { "Name" : "recursive", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True enables recursive search" }] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "GetChildren", "Returns" : "Fit.Controls.ContextMenuItem[]", "Access" : "public", "Description" : "Get all children", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "GetDomElement", "Returns" : "DOMElement", "Access" : "public", "Description" : "Get DOMElement representing context menu item", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "GetParent", "Returns" : "Fit.Controls.ContextMenuItem | null", "Access" : "public", "Description" : "Get parent item - returns Null for a root item", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "RemoveChild", "Returns" : "", "Access" : "public", "Description" : "Remove child item", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "item", "Type" : "Fit.Controls.ContextMenuItem", "Default" : "", "Nullable" : false, "Description" : "Item to remove" }] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "Selectable", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether item is selectable or not", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables item, False disables it" }] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "Title", "Returns" : "string", "Access" : "public", "Description" : "Get/set item title", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, item title is updated" }] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "Value", "Returns" : "string", "Access" : "public", "Description" : "Get item value", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "OnHide", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when context menu is hidden.\nFunction receives one argument: Sender (Fit.Controls.ContextMenu).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ContextMenuTypeDefs.EventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "OnSelect", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when an item is selected in context menu.\nFunction receives two arguments:\nSender (Fit.Controls.ContextMenu) and Item (Fit.Controls.ContextMenuItem).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ContextMenuTypeDefs.SelectEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "OnShowing", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired before context menu is shown.\nThis event can be canceled by returning False.\nFunction receives one argument: Sender (Fit.Controls.ContextMenu).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ContextMenuTypeDefs.CancelableEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "OnShown", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when context menu is shown.\nFunction receives one argument: Sender (Fit.Controls.ContextMenu).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ContextMenuTypeDefs.EventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "RemoveAllChildren", "Returns" : "", "Access" : "public", "Description" : "Remove all items contained in ContextMenu", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dispose", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to dispose items" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "RemoveChild", "Returns" : "", "Access" : "public", "Description" : "Remove item from ContextMenu", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "item", "Type" : "Fit.Controls.ContextMenuItem", "Default" : "", "Nullable" : false, "Description" : "Item to remove" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "Show", "Returns" : "", "Access" : "public", "Description" : "Make context menu show up. If X,Y coordinates are not specified, the position of the mouse pointer will be used.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "x", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, context menu will open at specified horizontal position" }, { "Name" : "y", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, context menu will open at specified vertical position" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "AddCssClass", "Returns" : "", "Access" : "public", "Description" : "Add CSS class to DOMElement representing control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "CSS class to add" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "AddValidationRule", "Returns" : "", "Access" : "public", "Description" : "Set callback function used to perform on-the-fly validation against control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "validator", "Type" : "Fit.Controls.ControlBaseTypeDefs.ValidationCallback", "Default" : "", "Nullable" : false, "Description" : "Function receiving an instance of the control.\nA value of False or a non-empty string with an\nerror message must be returned if value is invalid." }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "AddValidationRule", "Returns" : "", "Access" : "public", "Description" : "Set regular expression used to perform on-the-fly validation against control value, as returned by the Value() function", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "validator", "Type" : "RegExp", "Default" : "", "Nullable" : false, "Description" : "Regular expression to validate value against" }, { "Name" : "errorMessage", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Optional error message displayed if value validation fails" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "AlwaysDirty", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is always considered dirty. This\ncomes in handy when programmatically changing a value of a control on behalf\nof the user. Some applications may choose to only save values from dirty controls.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, Always Dirty is enabled/disabled" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "AutoPostBack", "Returns" : "boolean", "Access" : "public", "Description" : "Set flag indicating whether control should post back changes automatically when value is changed", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables auto post back, False disables it" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "Clear", "Returns" : "", "Access" : "public", "Description" : "Clear control value", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "ControlBase", "Returns" : "", "Access" : "public", "Description" : "ControlBase constructor", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "Enabled", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is enabled or disabled.\nA disabled control's value and state is still included on postback, if part of a form.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables control (default), False disables control." }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "Focused", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control has focus.\nControl must be rooted in DOM and be visible for control to gain focus.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True assigns focus, False removes focus (blur)" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "HasCssClass", "Returns" : "boolean", "Access" : "public", "Description" : "Check whether CSS class is found on DOMElement representing control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "CSS class to check for" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "Height", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set control height - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control height is updated to specified value. A value of -1 resets control height." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, control height is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "IsDirty", "Returns" : "boolean", "Access" : "public", "Description" : "Get value indicating whether user has changed control value", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "IsValid", "Returns" : "boolean", "Access" : "public", "Description" : "Get value indicating whether control value is valid.\nControl value is considered invalid if control is required, but no value is set,\nor if control value does not match regular expression set using SetValidationExpression(..).", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "LazyValidation", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control initially appears as valid, even\nthough it is not. It will appear invalid once the user touches the control,\nor when control value is validated using Fit.Controls.ValidateAll(..).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, Lazy Validation is enabled/disabled" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "OnBlur", "Returns" : "", "Access" : "public", "Description" : "Register OnBlur event handler which is invoked when control loses focus", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ControlBaseTypeDefs.BaseEvent", "Default" : "", "Nullable" : false, "Description" : "Event handler function which accepts Sender (ControlBase)" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "OnChange", "Returns" : "", "Access" : "public", "Description" : "Register OnChange event handler which is invoked when control value is changed either programmatically or by user", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ControlBaseTypeDefs.BaseEvent", "Default" : "", "Nullable" : false, "Description" : "Event handler function which accepts Sender (ControlBase)" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "OnFocus", "Returns" : "", "Access" : "public", "Description" : "Register OnFocus event handler which is invoked when control gains focus", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ControlBaseTypeDefs.BaseEvent", "Default" : "", "Nullable" : false, "Description" : "Event handler function which accepts Sender (ControlBase)" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "RemoveAllValidationRules", "Returns" : "", "Access" : "public", "Description" : "Remove all validation rules", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "RemoveCssClass", "Returns" : "", "Access" : "public", "Description" : "Remove CSS class from DOMElement representing control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "CSS class to remove" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "RemoveValidationRule", "Returns" : "", "Access" : "public", "Description" : "Remove validation function used to perform on-the-fly validation against control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "validator", "Type" : "Fit.Controls.ControlBaseTypeDefs.ValidationCallback", "Default" : "", "Nullable" : false, "Description" : "Validation function registered using AddValidationRule(..)" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "RemoveValidationRule", "Returns" : "", "Access" : "public", "Description" : "Remove regular expression used to perform on-the-fly validation against control value", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "validator", "Type" : "RegExp", "Default" : "", "Nullable" : false, "Description" : "Regular expression registered using AddValidationRule(..)" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "Required", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is required to be set", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control required feature is enabled/disabled" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "Scope", "Returns" : "string", "Access" : "public", "Description" : "Get/set scope to which control belongs - this is used to validate multiple\ncontrols at once using Fit.Controls.ValidateAll(scope) or Fit.Controls.DirtyCheckAll(scope).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control scope is updated" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "SetValidationCallback", "Returns" : "", "Access" : "public", "Description" : "DEPRECATED! Please use AddValidationRule(..) instead.\nSet callback function used to perform on-the-fly validation against control value.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "function | null", "Default" : "", "Nullable" : false, "Description" : "Function receiving control value - must return True if value is valid, otherwise False" }, { "Name" : "errorMsg", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, specified error message is displayed when user clicks or hovers validation error indicator" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "SetValidationExpression", "Returns" : "", "Access" : "public", "Description" : "DEPRECATED! Please use AddValidationRule(..) instead.\nSet regular expression used to perform on-the-fly validation against control value.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "regEx", "Type" : "RegExp | null", "Default" : "", "Nullable" : false, "Description" : "Regular expression to validate against" }, { "Name" : "errorMsg", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, specified error message is displayed when user clicks or hovers validation error indicator" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "SetValidationHandler", "Returns" : "", "Access" : "public", "Description" : "DEPRECATED! Please use AddValidationRule(..) instead.\nSet callback function used to perform on-the-fly validation against control value", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "function | null", "Default" : "", "Nullable" : false, "Description" : "Function receiving an instance of the control and its value.\nAn error message string must be returned if value is invalid,\notherwise Null or an empty string if the value is valid." }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "UserValue", "Returns" : "string", "Access" : "public", "Description" : "Get/set value as if it was changed by the user. Contrary to Value(..), this function will never reset the dirty state.\nRestrictions/filtering/modifications may be enforced just as the UI control might do, e.g. prevent the use of certain\ncharacters, or completely ignore input if not allowed. It may also allow invalid values such as a partially entered date\nvalue. The intention with UserValue(..) is to mimic the behaviour of what the user can do with the user interface control.\nFor picker controls the value format is equivalent to the one dictated by the Value(..) function.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, value is inserted into control" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "Value", "Returns" : "string", "Access" : "public", "Description" : "Get/set control value.\nFor controls supporting multiple selections: Set value by providing a string in one the following formats:\ntitle1=val1[;title2=val2[;title3=val3]] or val1[;val2[;val3]].\nIf Title or Value contains reserved characters (semicolon or equality sign), these most be URIEncoded.\nSelected items are returned in the first format described, also with reserved characters URIEncoded.\nProviding a new value to this function results in OnChange being fired.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, value is inserted into control" }, { "Name" : "preserveDirtyState", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True prevents dirty state from being reset, False (default) resets the dirty state.\nIf dirty state is reset (default), the control value will be compared against the value passed,\nto determine whether it has been changed by the user or not, when IsDirty() is called." }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "Visible", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is visible", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control visibility is updated" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "Width", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set control width - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control width is updated to specified value. A value of -1 resets control width." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, control width is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "Date", "Returns" : "Date | null", "Access" : "public", "Description" : "Get/set control value.\nThe function works the same as the Value function, expect it\naccepts and returns a Date object instead of a string.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "Date | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, date is selected" }] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "DatePicker", "Returns" : "", "Access" : "public", "Description" : "Create instance of DatePicker control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "DatePlaceholder", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set date placeholder value. Returns Null if not set.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, placeholder is updated. Pass Null to use default\nplaceholder, or an empty string to remove placeholder." }] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "DetectBoundaries", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether boundary/collision detection is enabled or not (off by default).\nThis may cause calendar to open upwards if sufficient space is not available below control.\nIf control is contained in a scrollable parent, this will be considered the active viewport,\nand as such define the active boundaries - unless relativeToViewport is set to True, in which\ncase the actual browser viewport will be used.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables collision detection, False disables it (default)" }, { "Name" : "relativeToViewport", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True results in viewport being considered the container to which available space is determined.\nThis also results in calendar widget being positioned with position:fixed, allowing it to escape a container\nwith overflow (e.g. overflow:auto|hidden|scroll). Be aware though that this does not work reliably in combination\nwith CSS animation and CSS transform as it creates a new stacking context to which position:fixed becomes relative.\nA value of False (default) results in available space being determined relative to the boundaries of the\ncontrol's scroll parent. The calendar widget will stay within its container and not overflow it." }] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "Format", "Returns" : "string", "Access" : "public", "Description" : "Get/set format used by the DatePicker control. This will affect the format\nin which the date is presented, as well as the value returned by the GetText function.\nFormat takes precedence over locale.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, format is changed.\nThe following tokens can be used to construct the format:\nYYYY = Year with four digits (e.g. 2016)\nM = Month with one digit if possible (e.g. 1 or 12)\nMM = Month with two digits (e.g. 01 or 12)\nD = Day with one digit if possible (e.g. 1 or 24)\nDD = Day with two digits (e.g. 01 or 24)\nExamples: YYYY-MM-DD or D/M-YYYY" }] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "GetLocales", "Returns" : "string[]", "Access" : "public", "Description" : "Returns a string array containing supported locales", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "GetText", "Returns" : "string", "Access" : "public", "Description" : "Get control value as a string. Opposite to the Value function GetText returns the\nselected Date/DateTime in the format configured (see Format function). The Value\nfunction always returns the value in a fixed format, which is YYYY-MM-DD[ hh:mm].\nThe time portion is only appended if time is enabled (see Time function).", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "Hide", "Returns" : "", "Access" : "public", "Description" : "Calling this function will close the calendar widget.\nWhether this results in picker being hidden on mobile depends on implementation.\nOften it will only work if Hide() or Focused(false) is triggered by a user action such as a button click.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "Locale", "Returns" : "string", "Access" : "public", "Description" : "Get/set locale used by the DatePicker control. This will affect the\ndate format, unless format has been set explicitely, as well as the language used by the calendar widget.\nDatePicker locale takes precedence over locale set using Fit.Internationalization.Locale(..).\nCall the GetLocales function to get a complete list of supported locales.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, locale is changed" }] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "Show", "Returns" : "", "Access" : "public", "Description" : "Calling this function will open the calendar widget.\nWhether this results in picker being displayed on mobile depends on implementation.\nOften it will only work if Show() or Focused(true) is triggered by a user action such as a button click.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "Time", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether DatePicker should allow a time portion to be set.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, time is changed" }] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "TimePlaceholder", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set time placeholder value. Returns Null if not set.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, placeholder is updated. Pass Null to use default\nplaceholder, or an empty string to remove placeholder." }] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "UserValue", "Returns" : "string", "Access" : "public", "Description" : "Get/set value as if it was changed by the user.\nContrary to Value(..), this function allows for a partial (or invalid) date value.\nIf the time picker is enabled (see Time(..)) then both the date and time portion can\nbe set, separated by a space (e.g. 2020-10-25 14:30).\nOnChange fires if value provided is valid. See ControlBase.UserValue(..) for more details.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, value is inserted into control" }] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "Value", "Returns" : "string", "Access" : "public", "Description" : "Get/set control value in the following format: YYYY-MM-DD[ hh:mm]", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, value is inserted into control" }, { "Name" : "preserveDirtyState", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True prevents dirty state from being reset, False (default) resets the dirty state.\nIf dirty state is reset (default), the control value will be compared against the value passed,\nto determine whether it has been changed by the user or not, when IsDirty() is called." }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "AddButton", "Returns" : "", "Access" : "public", "Description" : "Add button to dialog", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "btn", "Type" : "Fit.Controls.Button", "Default" : "", "Nullable" : false, "Description" : "Instance of Fit.Controls.Button" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "BringToFront", "Returns" : "", "Access" : "public", "Description" : "Bring draggable dialog to front", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Close", "Returns" : "", "Access" : "public", "Description" : "Close dialog", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Content", "Returns" : "string", "Access" : "public", "Description" : "Get/set dialog content", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, dialog content is updated with specified value" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "ContentUrl", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set content URL - returns null if not set", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "url", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, dialog is updated with content from specified URL" }, { "Name" : "onLoadHandler", "Type" : "Fit.Controls.DialogTypeDefs.DialogEventHandler", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, callback is invoked when content has been loaded.\nInstance of Dialog is passed as an argument." }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Dialog", "Returns" : "", "Access" : "public", "Description" : "Create instance of Dialog control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "controlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Dismissible", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether dialog is dismissible or not", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, a value of True makes dialog dismissible by adding a close button while False disables it" }, { "Name" : "disposeOnDismiss", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, a value of True results in dialog being disposed (destroyed) when closed using dismiss/close button" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Draggable", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether dialog can be moved around on screen", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, a value of True enables dragging, False disables it (default)" }] }, { "Container" : "Fit.Controls.DialogEditor", "Name" : "CheckSpelling", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control should have spell checking enabled (default) or disabled", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, true enables spell checking while false disables it" }] }, { "Container" : "Fit.Controls.DialogEditor", "Name" : "DialogEditor", "Returns" : "", "Access" : "public", "Description" : "Create instance of DialogEditor control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "controlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.DialogEditor", "Name" : "Enabled", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is enabled or disabled", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables control (default), False disables control." }] }, { "Container" : "Fit.Controls.DialogEditor", "Name" : "Focused", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether editor control has focus.\nDialog must be open and visible for focus assignment to work.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True assigns focus, False removes focus (blur)" }] }, { "Container" : "Fit.Controls.DialogEditor", "Name" : "IsDirty", "Returns" : "boolean", "Access" : "public", "Description" : "Get value indicating whether user has changed control value", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DialogEditor", "Name" : "Placeholder", "Returns" : "string", "Access" : "public", "Description" : "Get/set value used as a placeholder to indicate expected input on supported browsers", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, value is set as placeholder" }] }, { "Container" : "Fit.Controls.DialogEditor", "Name" : "Value", "Returns" : "string", "Access" : "public", "Description" : "Get/set editor control value", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, value is inserted into control" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "GetContentDomElement", "Returns" : "DOMElement", "Access" : "public", "Description" : "Get dialog content element", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Height", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set dialog height - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, dialog height is updated to specified value. A value of -1 resets height to default." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, dialog width is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.DialogInterface", "Name" : "Cancel", "Returns" : "", "Access" : "public", "Description" : "Cancel dialog - equivalent to clicking the Cancel button, or the OK button on an Alert dialog", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DialogInterface", "Name" : "Confirm", "Returns" : "", "Access" : "public", "Description" : "Confirm dialog - equivalent to clicking the OK button", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DialogInterface", "Name" : "Dismiss", "Returns" : "", "Access" : "public", "Description" : "Dismiss dialog without taking any action", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.Dialog", "Name" : "IsOpen", "Returns" : "boolean", "Access" : "public", "Description" : "Get flag indicating whether dialog is open or not", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Maximizable", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether dialog is maximizable or not", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, a value of True makes dialog maximizable by adding a maximize button while False disables it" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Maximized", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether dialog is maximized or not", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True maximizes dialog while False restores it" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "MaximumHeight", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set dialog maximum height - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, dialog maximum height is updated to specified value. A value of -1 resets maximum height." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, dialog maximum height is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "MaximumWidth", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set dialog maximum width - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, dialog maximum width is updated to specified value. A value of -1 resets maximum width." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, dialog maximum width is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "MinimumHeight", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set dialog minimum height - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, dialog minimum height is updated to specified value. A value of -1 resets minimum height." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, dialog minimum height is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "MinimumWidth", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set dialog minimum width - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, dialog minimum width is updated to specified value. A value of -1 resets minimum width." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, dialog minimum width is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Modal", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether dialog is modal or not", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, True enables modal mode, False disables it" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "OnClose", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when dialog is closed or dismissed.\nUse this event to react to dialog being closed, no matter\nthe cause. Use OnDismiss event to detect when user closed it.\nAction can be suppressed by returning False.\nFunction receives one argument: Sender (Fit.Controls.Dialog)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.DialogTypeDefs.DialogEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "OnDismiss", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when dialog is being dismissed by the user.\nAction can be suppressed by returning False.\nFunction receives one argument: Sender (Fit.Controls.Dialog)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.DialogTypeDefs.DialogEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Open", "Returns" : "", "Access" : "public", "Description" : "Open dialog", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "renderTarget", "Type" : "DOMElement", "Default" : "undefined", "Nullable" : false, "Description" : "Optional render target which can be used to render dialog to specific\ncontainer rather than the root of the body element. This allows for\nthe dialog to inherit styles from the specified render target." }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "RemoveAllButtons", "Returns" : "", "Access" : "public", "Description" : "Remove all buttons from dialog", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dispose", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, a value of True results in buttons being disposed (destroyed)" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "RemoveButton", "Returns" : "", "Access" : "public", "Description" : "Remove button from dialog", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "btn", "Type" : "Fit.Controls.Button", "Default" : "", "Nullable" : false, "Description" : "Instance of Fit.Controls.Button" }, { "Name" : "dispose", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, a value of True results in button being disposed (destroyed)" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Reset", "Returns" : "", "Access" : "public", "Description" : "Reset custom size (Resizable enabled) and position (Draggable enabled)", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Resizable", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether dialog can be resized by the user", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, a value of True enables resizing, False disables it (default)" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Title", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set title - returns null if not set, and null can be passed to remove title", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, dialog title is updated with specified value" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Width", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set dialog width - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, dialog width is updated to specified value. A value of -1 resets width (auto sizing)." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, dialog width is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "AddSelection", "Returns" : "", "Access" : "public", "Description" : "Add selection to control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "title", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Item title" }, { "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Item value" }, { "Name" : "valid", "Type" : "boolean", "Default" : "true", "Nullable" : false, "Description" : "Flag indicating whether selection is valid or not. Invalid selections are highlighted and\nnot included when selections are retrived using Value() function, and not considered when\nIsDirty() is called to determine whether control value has been changed by user.\nGetSelections(true) can be used to retrive all items, including invalid selections." }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "ClearInput", "Returns" : "", "Access" : "public", "Description" : "Clear text field", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DropDown", "Name" : "ClearSelections", "Returns" : "", "Access" : "public", "Description" : "Clear selections", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DropDown", "Name" : "CloseDropDown", "Returns" : "", "Access" : "public", "Description" : "Close drop down menu", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DropDown", "Name" : "DetectBoundaries", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether boundary/collision detection is enabled or not (off by default).\nThis may cause drop down to open upwards if sufficient space is not available below control.\nIf control is contained in a scrollable parent, this will be considered the active viewport,\nand as such define the active boundaries - unless relativeToViewport is set to True, in which\ncase the actual browser viewport will be used.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables collision detection, False disables it (default)" }, { "Name" : "relativeToViewport", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True results in viewport being considered the container to which available space is determined.\nThis also results in DropDown menu being positioned with position:fixed, allowing it to escape a container\nwith overflow (e.g. overflow:auto|hidden|scroll). Be aware though that this does not work reliably in combination\nwith CSS animation and CSS transform as it creates a new stacking context to which position:fixed becomes relative.\nA value of False (default) results in available space being determined relative to the boundaries of the\ncontrol's scroll parent. The DropDown menu will stay within its container and not overflow it." }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "DropDown", "Returns" : "", "Access" : "public", "Description" : "Create instance of DropDown control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "DropDownMaxHeight", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set max height of drop down - returns object with Value (number) and Unit (string) properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, max height is updated to specified value. A value of -1 forces picker to fit height to content." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, max height is updated to specified CSS unit, otherwise px is assumed" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "DropDownMaxWidth", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set max width of drop down - returns object with Value (number) and Unit (string) properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, max width is updated to specified value. A value of -1 forces drop down to use control width." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, max width is updated to specified CSS unit, otherwise px is assumed" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "GetHighlighted", "Returns" : "Fit.Controls.DropDownTypeDefs.DropDownItem | null", "Access" : "public", "Description" : "Get item currently highlighted in picker control.\nReturns an object with Title (string), Value (string),\nand Valid (boolean) properties if found, otherwise Null.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DropDown", "Name" : "GetInputValue", "Returns" : "string", "Access" : "public", "Description" : "Get input value", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DropDown", "Name" : "GetPicker", "Returns" : "Fit.Controls.PickerBase", "Access" : "public", "Description" : "Get picker control used to add items to drop down control", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DropDown", "Name" : "GetSelectionByValue", "Returns" : "Fit.Controls.DropDownTypeDefs.DropDownItem | null", "Access" : "public", "Description" : "Get selected item by value - returns object with Title (string), Value (string), and Valid (boolean) properties if found, otherwise Null is returned", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value of selected item to retrive" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "GetSelections", "Returns" : "Fit.Controls.DropDownTypeDefs.DropDownItem[]", "Access" : "public", "Description" : "Get selected items - returned array contain objects with Title (string), Value (string), and Valid (boolean) properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "includeInvalid", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Flag indicating whether invalid selection should be included or not" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "HighlightFirst", "Returns" : "boolean", "Access" : "public", "Description" : "Make DropDown highlight first selectable item when opened", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If set, True enables feature, False disables it (default)" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "HtmlAllowed", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether HTML is allowed (shown) in selected items", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables support for HTML, False disables it" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "InputEnabled", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether input is enabled", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables input, False disables it" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "InvalidSelectionMessage", "Returns" : "string", "Access" : "public", "Description" : "Get/set mouse over text shown for invalid selections", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "msg", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, error message for invalid selections are set" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "IsDropDownOpen", "Returns" : "boolean", "Access" : "public", "Description" : "Get flag indicating whether drop down is open or not", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DropDown", "Name" : "MultiSelectionMode", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether control allows for multiple selections", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables multi selection mode, False disables it" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "OnClose", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when drop down menu is closed.\nFunction receives one argument: Sender (Fit.Controls.DropDown)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.DropDownTypeDefs.InteractionEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "OnInputChanged", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when input value is changed.\nFunction receives two arguments:\nSender (Fit.Controls.DropDown) and Value (string).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.DropDownTypeDefs.InputChangedEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "OnOpen", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when drop down menu is opened.\nFunction receives one argument: Sender (Fit.Controls.DropDown)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.DropDownTypeDefs.InteractionEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "OnPaste", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when text is pasted into input field.\nFunction receives two arguments:\nSender (Fit.Controls.DropDown) and Value (string).\nReturn False to cancel event and change, and prevent OnInputChanged from firing.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.DropDownTypeDefs.PasteEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "OpenDropDown", "Returns" : "", "Access" : "public", "Description" : "Open drop down menu", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DropDown", "Name" : "PersistView", "Returns" : "boolean", "Access" : "public", "Description" : "Make DropDown restore scroll position and previously highlighted item when reopened", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If set, True enables feature, False disables it (default)" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "Placeholder", "Returns" : "string", "Access" : "public", "Description" : "Get/set value used as a placeholder on supported browsers, to indicate expected value or action", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, value is set as placeholder" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "RemoveSelection", "Returns" : "", "Access" : "public", "Description" : "Remove selected item by value", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value of selected item to remove" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "RenameSelection", "Returns" : "", "Access" : "public", "Description" : "Rename title of selected item by its value", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value of selected item to rename" }, { "Name" : "newTitle", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "New item title" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "SearchModeOnFocus", "Returns" : "boolean", "Access" : "public", "Description" : "Clear input and display \"Search..\" placeholder when control receives focus.\nIf SearchModeOnFocus is enabled, InputEnabled will also be enabled. Disabling\nSearchModeOnFocus does not disable InputEnabled.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables search mode on focus, False disables it" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "SelectionModeToggle", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control allow user to toggle Selection Mode (Visual or Text)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables toggle button, False disables it" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "SetInputValue", "Returns" : "", "Access" : "public", "Description" : "Set value of text field which is automatically cleared the first time control\nreceives focus. Notice that this function should be called after AddSelection(..),\nsince adding selections causes the value of the text field to be cleared.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "New value for text field" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "SetPicker", "Returns" : "", "Access" : "public", "Description" : "Set picker control used to add items to drop down control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "pickerControl", "Type" : "Fit.Controls.PickerBase | null", "Default" : "", "Nullable" : false, "Description" : "Picker control extending from PickerBase" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "TextSelectionMode", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether to use Text Selection Mode (true) or Visual Selection Mode (false).\nVisual Selection Mode is the default way selected items are displayed, but it may result in control\nchanging dimensions as items are added/removed. Text Selection Mode prevents this and gives the\nuser a traditional DropDown control instead.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables Text Selection Mode, False disables it (Visual Selection Mode)" }, { "Name" : "cb", "Type" : "Fit.Controls.DropDownTypeDefs.SelectionToStringCallback", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, function will be called with DropDown being passed as an argument when selection text\nneeds to be updated. Function is expected to return a string representation of the selected items." }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "UpdateSelected", "Returns" : "Fit.Controls.DropDownTypeDefs.UpdatedDropDownItem[]", "Access" : "public", "Description" : "Update title of selected items based on data in associated picker control.\nAn array of updated items are returned. Each object has the following properties:\n- Title: string (Updated title)\n- Value: string (Unique item value)\n- Exists: boolean (True if item still exists, False if not)\nThis is useful if selections are stored in a database, and\navailable items may have their titles changed over time. Invoking\nthis function will ensure that the selection displayed to the user\nreflects the actual state of data in the picker control. Be aware\nthat this function can only update selected items if a picker has been\nassociated (see SetPicker(..)), and it contains the data from which\nselected items are to be updated.\nItems that no longer exists in picker's data will not automatically\nbe removed.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "AutoUpload", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control automatically starts upload process when files are selected", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, True enables auto upload, False disables it (default)" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "ButtonText", "Returns" : "string", "Access" : "public", "Description" : "Get/set button text", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, button text is set to specified value" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "DropZoneText", "Returns" : "string", "Access" : "public", "Description" : "Get/set drop zone text", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, drop zone text is set to specified value" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "Enabled", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is enabled or not.\nAny files added to the control prior to being disabled, will\nnot be included with a traditional postback to the server.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, True enables control, False disables it" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "FilePicker", "Returns" : "", "Access" : "public", "Description" : "Create instance of FilePicker control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "GetFiles", "Returns" : "Fit.Controls.FilePickerTypeDefs.File[]", "Access" : "public", "Description" : "Get collection of selected files. Each file is represented as an object with the following members:\n- Filename:string (Name of selected file)\n- Type:string (Mime type for selected file)\n- Size:integer (File size in bytes)\n- Id:string (Unique file ID)\n- Processed:boolean (Flag indicating whether file has been uploaded, or is currently being uploaded)\n- Progress:integer (Value from 0-100 indicating upload progress, a value of -1 when not uploading/uploaded)\n- FileObject:File (Native JS File object representing selected file)\n- GetImagePreview:function (Returns an HTMLImageElement with a preview for supported file types)\n- ServerResponse:string (Response from server after successful file upload, otherwise Null)\nNOTICE: The following properties/functions are not available in Legacy Mode: Type, Size, FileObject, GetImagePreview().", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "IsLegacyModeEnabled", "Returns" : "boolean", "Access" : "public", "Description" : "Get value indicating whether control is in legacy mode (old fashion upload control)", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "MultiSelectionMode", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether control allows for multiple selections", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables multi selection mode, False disables it" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "OnCompleted", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when all files selected have been fully processed.\nBe aware that this event fires even if some files were not uploaded successfully.\nAt this point files returned from GetFiles() contains a ServerResponse:string property\ncontaining the response from the server. This property remains Null in case of errors.\nFunction receives one argument: Sender (Fit.Controls.FlePicker).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.FilePickerTypeDefs.CompletedEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "OnFailure", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired for a given file if the upload process failed.\nFunction receives two arguments:\nSender (Fit.Controls.FlePicker) and EventArgs object.\nEventArgs object contains the following members:\n- Filename:string (Name of given file)\n- Type:string (Mime type for given file)\n- Size:integer (File size in bytes)\n- Id:string (Unique file ID)\n- Processed:boolean (Flag indicating whether file has been uploaded, or is currently being uploaded)\n- Progress:integer (A value from 0-100 indicating how many percent of the file has been uploaded)\n- FileObject:File (Native JS File object representing given file)\n- GetImagePreview:function (Returns an HTMLImageElement with a preview for supported file types)\n- ServerResponse:string (Response from server after successful file upload, otherwise Null)\nBe aware that Type and Size cannot be determined in Legacy Mode, and that FileObject in this\ncase will be Null. GetImagePreview() will also return Null in Legacy Mode.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.FilePickerTypeDefs.ProgressEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "OnProgress", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when the upload process for a given file is progressing.\nFunction receives two arguments:\nSender (Fit.Controls.FlePicker) and EventArgs object.\nEventArgs object contains the following members:\n- Filename:string (Name of given file)\n- Type:string (Mime type for given file)\n- Size:integer (File size in bytes)\n- Id:string (Unique file ID)\n- Processed:boolean (Flag indicating whether file has been uploaded, or is currently being uploaded)\n- Progress:integer (A value from 0-100 indicating how many percent of the file has been uploaded)\n- FileObject:File (Native JS File object representing given file)\n- GetImagePreview:function (Returns an HTMLImageElement with a preview for supported file types)\n- ServerResponse:string (Response from server after successful file upload, otherwise Null)\nBe aware that Type and Size cannot be determined in Legacy Mode, and that FileObject in this\ncase will be Null. GetImagePreview() will also return Null in Legacy Mode.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.FilePickerTypeDefs.ProgressEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "OnSuccess", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when a file has successfully been uploaded.\nFunction receives two arguments:\nSender (Fit.Controls.FlePicker) and EventArgs object.\nEventArgs object contains the following members:\n- Filename:string (Name of given file)\n- Type:string (Mime type for given file)\n- Size:integer (File size in bytes)\n- Id:string (Unique file ID)\n- Processed:boolean (Flag indicating whether file has been uploaded, or is currently being uploaded)\n- Progress:integer (A value from 0-100 indicating how many percent of the file has been uploaded)\n- FileObject:File (Native JS File object representing given file)\n- GetImagePreview:function (Returns an HTMLImageElement with a preview for supported file types)\n- ServerResponse:string (Response from server after successful file upload, otherwise Null)\nBe aware that Type and Size cannot be determined in Legacy Mode, and that FileObject in this\ncase will be Null. GetImagePreview() will also return Null in Legacy Mode.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.FilePickerTypeDefs.ProgressEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "OnUpload", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when upload is started.\nOperation can be canceled by returning False.\nFunction receives one argument: Sender (Fit.Controls.FilePicker).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.FilePickerTypeDefs.CancelableUploadEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "ShowDropZone", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is displayed as a drop zone on supported browsers or not", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, True enables drop zone, False disables it (default)" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "Upload", "Returns" : "", "Access" : "public", "Description" : "Upload selected files. Each file will be uploaded using POST over individual HTTP connections,\nand each file will be accessible from the POST data collection using the SelectedFile key.\nUse the OnProgress event to monitor the upload process, or use the OnCompleted event\nto be notified when all files have been fully processed.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "skip", "Type" : "string[]", "Default" : "undefined", "Nullable" : false, "Description" : "Optional argument allowing some of the selected files to be skipped during\nupload. The argument is a string array with the names of the files to skip." }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "Url", "Returns" : "string", "Access" : "public", "Description" : "Get/set URL to which files are uploaded when FilePicker.Upload() is called.\nMultiple files will be uploaded using POST over individual HTTP connections,\nand each file will be accessible from the POST data collection using the SelectedFile key.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "url", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, upload URL is set to specified value" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "Width", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Fit.Controls.ControlBase.Width override:\nGet/set control width - returns object with Value and Unit properties.\nThis implementation differs from ControlBase.Width as passing a value of -1 resets\nthe control width to fit its content, rather than assuming a fixed default width.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control width is updated to specified value. A value of -1 resets control width." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, control width is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.Input", "Name" : "CheckSpelling", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control should have spell checking enabled (default) or disabled", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, true enables spell checking while false disables it" }] }, { "Container" : "Fit.Controls.Input", "Name" : "DebounceOnChange", "Returns" : "integer", "Access" : "public", "Description" : "Get/set number of milliseconds used to postpone onchange event.\nEvery new keystroke/change resets the timer. Debouncing can\nimprove performance when working with large amounts of data.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "timeout", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, timeout value (milliseconds) is updated - a value of -1 disables debouncing" }] }, { "Container" : "Fit.Controls.Input", "Name" : "DesignMode", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is in Design Mode allowing for rich HTML content.\nNotice that this control type requires dimensions (Width/Height) to be specified in pixels.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables Design Mode, False disables it" }, { "Name" : "editorConfig", "Type" : "Fit.Controls.InputTypeDefs.DesignModeConfig", "Default" : "undefined", "Nullable" : false, "Description" : "If provided and DesignMode is enabled, configuration is applied when editor is created." }] }, { "Container" : "Fit.Controls.Input", "Name" : "Input", "Returns" : "", "Access" : "public", "Description" : "Create instance of Input control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.Input", "Name" : "Maximizable", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is maximizable.\nMaking control maximizable will disable Resizable.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables maximize button, False disables it" }, { "Name" : "heightMax", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, this becomes the height of the input control when maximized.\nThe value is considered the same unit set using Height(..) which defaults to px.\nIf not set, the value assumes twice the height set using Height(..)." }] }, { "Container" : "Fit.Controls.Input", "Name" : "Maximized", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is maximized", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True maximizes control, False minimizes it" }] }, { "Container" : "Fit.Controls.Input", "Name" : "MultiLine", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is in Multi Line mode (textarea)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables Multi Line mode, False disables it" }] }, { "Container" : "Fit.Controls.Input", "Name" : "Placeholder", "Returns" : "string", "Access" : "public", "Description" : "Get/set value used as a placeholder to indicate expected input on supported browsers", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, value is set as placeholder" }] }, { "Container" : "Fit.Controls.Input", "Name" : "Resizable", "Returns" : "Fit.Controls.InputResizing", "Access" : "public", "Description" : "Get/set value indicating whether control is resizable on supported\n(modern) browsers. Making control resizable will disable Maximizable.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "Fit.Controls.InputResizing", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, determines whether control resizes, and in what direction(s)." }] }, { "Container" : "Fit.Controls.Input", "Name" : "Type", "Returns" : "Fit.Controls.InputType", "Access" : "public", "Description" : "Get/set input type (e.g. Text, Password, Email, etc.)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "Fit.Controls.InputType", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, input type is changed to specified value" }] }, { "Container" : "Fit.Controls.ListView", "Name" : "AddItem", "Returns" : "", "Access" : "public", "Description" : "Add item to ListView", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "title", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Item title" }, { "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Item value" }] }, { "Container" : "Fit.Controls.ListView", "Name" : "GetItem", "Returns" : "Fit.Controls.ListViewTypeDefs.ListViewItem | null", "Access" : "public", "Description" : "Get item by value - returns object with Title (string) and Value (string) properties if found, otherwise Null", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value of item to retrieve" }] }, { "Container" : "Fit.Controls.ListView", "Name" : "GetItems", "Returns" : "Fit.Controls.ListViewTypeDefs.ListViewItem[]", "Access" : "public", "Description" : "Get all items - returns array containing objects with Title (string) and Value (string) properties", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ListView", "Name" : "HasItem", "Returns" : "boolean", "Access" : "public", "Description" : "Returns value indicating whether control contains item with specified value", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value of item to check for" }] }, { "Container" : "Fit.Controls.ListView", "Name" : "HtmlAllowed", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether HTML is allowed (shown) in ListView items", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables support for HTML, False disables it" }] }, { "Container" : "Fit.Controls.ListView", "Name" : "ListView", "Returns" : "", "Access" : "public", "Description" : "Create instance of ListView control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "controlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.ListView", "Name" : "OnSelect", "Returns" : "", "Access" : "public", "Description" : "Register event handler fired when item is being selected.\nSelection can be canceled by returning False.\nThe following arguments are passed to event handler function:\nSender (ListView) and Item (with Title (string) and Value (string) properties).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ListViewTypeDefs.OnSelectEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.ListView", "Name" : "OnSelected", "Returns" : "", "Access" : "public", "Description" : "Register event handler fired when item is selected.\nThe following arguments are passed to event handler function:\nSender (ListView) and Item (with Title (string) and Value (string) properties).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ListViewTypeDefs.OnSelectedEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.ListView", "Name" : "RemoveItem", "Returns" : "", "Access" : "public", "Description" : "Remove item from ListView", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value of item to remove" }] }, { "Container" : "Fit.Controls.ListView", "Name" : "RemoveItems", "Returns" : "", "Access" : "public", "Description" : "Remove all items from ListView", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "Destroy", "Returns" : "", "Access" : "public", "Description" : "Overridden by control developers (required).\nDestroys control to free up memory.\nMake sure to call Destroy() on PickerBase which can be done like so:\nthis.Destroy = Fit.Core.CreateOverride(this.Destroy, function()\n{\n     // Add control specific logic here\n     base(); // Call Destroy on PickerBase\n});", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "GetDomElement", "Returns" : "DOMElement", "Access" : "public", "Description" : "Overridden by control developers (required).\nGet DOMElement representing control.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "GetHighlighted", "Returns" : "Fit.Controls.PickerBaseTypeDefs.Item | null", "Access" : "public", "Description" : "Overridden by control developers (optional).\nHost control or external code may invoke this function to obtain the currently\nhighlighted item in the picker control.\nFunction returns Null when not implemented or when no item is highlighted. If found,\nan object with the following signature is returned: { Title: string, Value: string }.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "GetItemByValue", "Returns" : "Fit.Controls.PickerBaseTypeDefs.Item | null", "Access" : "public", "Description" : "Overridden by control developers (optional).\nHost control may invoke this function, for instance to update the title of selected items,\nto make sure these properly reflect the state of data displayed in the picker.\nFunction returns Null when not implemented or when an item is not found. If found, an object\nwith the following signature is returned: { Title: string, Value: string }.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value of item to retrieve" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "HandleEvent", "Returns" : "", "Access" : "public", "Description" : "Overridden by control developers (optional).\nHost control dispatches keyboard events to this function to allow\npicker control to handle keyboard navigation with keys such as\narrow up/down/left/right, enter, space, etc.\nPicker may return False to prevent host control from reacting to given event.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "Event", "Default" : "undefined", "Nullable" : false, "Description" : "Keyboard event to process" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "HighlightFirst", "Returns" : "boolean", "Access" : "public", "Description" : "Overridden by control developers (optional).\nThis function can be used to make the picker control automatically highlight the first item.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If set, True enables feature, False disables it (default)" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "MaxHeight", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set max height of control - returns object with Value (number) and Unit (string) properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, max height is updated to specified value. A value of -1 forces picker to fit height to content." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, max height is updated to specified CSS unit, otherwise px is assumed" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "OnFocusIn", "Returns" : "", "Access" : "public", "Description" : "Register OnFocusIn event handler which is invoked when picker gains focus", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.PickerBaseTypeDefs.BaseEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function which accepts Sender (PickerBase)" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "OnFocusOut", "Returns" : "", "Access" : "public", "Description" : "Register OnFocusOut event handler which is invoked when picker loses focus", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.PickerBaseTypeDefs.BaseEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function which accepts Sender (PickerBase)" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "OnHide", "Returns" : "", "Access" : "public", "Description" : "Register event handler fired when picker control is hidden in host control.\nThe following argument is passed to event handler function: Sender (PickerBase).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.PickerBaseTypeDefs.BaseEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "OnItemSelectionChanged", "Returns" : "", "Access" : "public", "Description" : "Register event handler fired when item selection is changed.\nThis event may be fired multiple times when a selection is changed, e.g. in Single Selection Mode,\nwhere an existing selected item is deselected, followed by selection of new item.\nThe following arguments are passed to event handler function:\nSender (PickerBase), EventArgs (containing Title (string), Value (string), and Selected (boolean) properties).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.PickerBaseTypeDefs.SelectionChangedEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "OnItemSelectionChanging", "Returns" : "", "Access" : "public", "Description" : "Register event handler fired when item selection is changing.\nSelection can be canceled by returning False.\nThe following arguments are passed to event handler function:\nSender (PickerBase), EventArgs (containing Title (string), Value (string), and Selected (boolean) properties).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.PickerBaseTypeDefs.SelectionChangingEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "OnItemSelectionComplete", "Returns" : "", "Access" : "public", "Description" : "Register event handler invoked when a series of related item changes are completed", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.PickerBaseTypeDefs.BaseEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function which accepts Sender (PickerBase)" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "OnShow", "Returns" : "", "Access" : "public", "Description" : "Register event handler fired when picker control is shown in host control.\nThe following argument is passed to event handler function: Sender (PickerBase).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.PickerBaseTypeDefs.BaseEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "PersistView", "Returns" : "boolean", "Access" : "public", "Description" : "Overridden by control developers (optional).\nThis function can be used to tell the picker control to persist (remember) its current state between interactions.\nFor instance a TreeView control would remembers its scroll position and highlighted node, while a calendar would\nremember the previously selected year and month.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If set, True enables feature, False disables it (default)" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "RevealItemInView", "Returns" : "", "Access" : "public", "Description" : "Overridden by control developers (optional).\nHost control may invoke this function to reveal a selected item in\nthe picker control. Often this means having the item scrolled into view.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value of item to reveal in view" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "SetSelections", "Returns" : "", "Access" : "public", "Description" : "Overridden by control developers (optional).\nHost control invokes this function when picker is assigned to host control, providing an array\nof items already selected. An item is an object with a Title (string) and Value (string) property set.\nIf picker defines preselected items, firing OnItemSelectionChanged\nfor these items, will update the host control appropriately.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "items", "Type" : "Fit.Controls.PickerBaseTypeDefs.Item[]", "Default" : "", "Nullable" : false, "Description" : "Array containing selected items: {Title:string, Value:string}" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "UpdateItemSelection", "Returns" : "", "Access" : "public", "Description" : "Overridden by control developers (optional).\nHost control invokes this function when an item's selection state is changed from host control.\nPicker control is responsible for firing FireOnItemSelectionChanging and FireOnItemSelectionChanged,\nas demonstrated below, if the picker control contains the given item.\n\nvar item = getItem(value);\nif (item !== null)\n{\n     if (this._internal.FireOnItemSelectionChanging(item.Title, item.Value, item.Selected, programmaticallyChanged) === false)\n         return false;\n\n     item.SetSelected(selected);\n     this._internal.FireOnItemSelectionChanged(item.Title, item.Value, item.Selected, programmaticallyChanged);\n}\n\nBoth events are fired by passing the given item's title, value, and current selection state.\nBe aware that host control may pass information about items not found in picker, e.g. when pasting\nitems which may turn out not to be valid selections.\nReturning False from UpdateItemSelection will cancel the change.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Item value" }, { "Name" : "selected", "Type" : "boolean", "Default" : "", "Nullable" : false, "Description" : "True if item was selected, False if item was deselected" }, { "Name" : "programmaticallyChanged", "Type" : "boolean", "Default" : "", "Nullable" : false, "Description" : "True if item was selected programmatically (not by user interaction), False otherwise" }] }, { "Container" : "Fit.Controls.ProgressBar", "Name" : "OnProgress", "Returns" : "", "Access" : "public", "Description" : "Set callback function invoked when progress is changed", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ProgressBarTypeDefs.ProgressEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler invoked when progress is changed - takes progress bar instance as argument" }] }, { "Container" : "Fit.Controls.ProgressBar", "Name" : "Progress", "Returns" : "integer", "Access" : "public", "Description" : "Get/set progress - a value between 0 and 100", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, progress is set to specified value (0-100)" }] }, { "Container" : "Fit.Controls.ProgressBar", "Name" : "ProgressBar", "Returns" : "", "Access" : "public", "Description" : "Create instance of ProgressBar control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "controlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.ProgressBar", "Name" : "Title", "Returns" : "string", "Access" : "public", "Description" : "Get/set title in progress bar", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, title will be set to specified value" }] }, { "Container" : "Fit.Controls.ProgressBar", "Name" : "Width", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set control width - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control width is updated to specified value. A value of -1 resets control width." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, control width is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.SoftLog", "Name" : "CatchUncaughtExceptions", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value determining whether to catch unhandled exceptions", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables exception logging, False disables it" }] }, { "Container" : "Fit.Controls.SoftLog", "Name" : "Clear", "Returns" : "", "Access" : "public", "Description" : "Clear log", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.SoftLog", "Name" : "Height", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set control height - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control height is updated to specified value. A value of -1 resets control height." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, control height is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.SoftLog", "Name" : "InterceptConsoleLog", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value determining whether to intercept console.log(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables console.log(..) interception, False disables it" }] }, { "Container" : "Fit.Controls.SoftLog", "Name" : "Log", "Returns" : "", "Access" : "public", "Description" : "Log message", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "msg", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Text message to log" }] }, { "Container" : "Fit.Controls.SoftLog", "Name" : "MaxEntries", "Returns" : "integer", "Access" : "public", "Description" : "Get/set number of log entries preserved", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes number of log entries preserved" }] }, { "Container" : "Fit.Controls.SoftLog", "Name" : "SoftLog", "Returns" : "", "Access" : "public", "Description" : "Create instance of SoftLog control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "controlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "AddChild", "Returns" : "", "Access" : "public", "Description" : "Add node to TreeView", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "node", "Type" : "Fit.Controls.TreeViewNode", "Default" : "", "Nullable" : false, "Description" : "Node to add" }, { "Name" : "atIndex", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "Optional index at which node is added" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "AllowDeselect", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether user is allowed to deselect nodes.\nBy default the user is allowed to deselect nodes.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes behaviour to specified value" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "Clear", "Returns" : "", "Access" : "public", "Description" : "Fit.Controls.ControlBase.Clear override:\nClear control value.\nOverride allows for non-selectable nodes to keep their selection state.\nThis is useful if TreeView has been configured to preselect some non-selectable\nnodes, hence preventing the user from removing these selections. In that case the\ndesired functionality of the Clear function could be to preserve these preselections.\nIf called with no arguments, all selections are cleared.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "preserveNonSelectable", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "True causes selection state of non-selectable nodes to be preserved, False do not" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "CollapseAll", "Returns" : "", "Access" : "public", "Description" : "Collapse all nodes, optionally to a maximum depth", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "maxDepth", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "Optional maximum depth to collapse nodes" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "ContextMenu", "Returns" : "Fit.Controls.ContextMenu", "Access" : "public", "Description" : "Get/set instance of ContextMenu control triggered when right clicking nodes in TreeView", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "contextMenu", "Type" : "Fit.Controls.ContextMenu | null", "Default" : "", "Nullable" : false, "Description" : "If defined, assignes ContextMenu control to TreeView" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "ExpandAll", "Returns" : "", "Access" : "public", "Description" : "Expand all nodes, optionally to a maximum depth", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "maxDepth", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "Optional maximum depth to expand nodes" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "GetActiveNode", "Returns" : "Fit.Controls.TreeViewNode | null", "Access" : "public", "Description" : "Get active (highlighted or focused) node - returns Null if no node is currently active", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeView", "Name" : "GetAllNodes", "Returns" : "Fit.Controls.TreeViewNode[]", "Access" : "public", "Description" : "Get all nodes across all children and their children, in a flat structure", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeView", "Name" : "GetChild", "Returns" : "Fit.Controls.TreeViewNode | null", "Access" : "public", "Description" : "Get node by value - returns Null if not found", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Node value" }, { "Name" : "recursive", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True enables recursive search" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "GetChildren", "Returns" : "Fit.Controls.TreeViewNode[]", "Access" : "public", "Description" : "Get all children", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeView", "Name" : "GetNodeAbove", "Returns" : "Fit.Controls.TreeViewNode | null", "Access" : "public", "Description" : "Get node above specified node - returns Null if no node is above the specified one", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "node", "Type" : "Fit.Controls.TreeViewNode", "Default" : "", "Nullable" : false, "Description" : "Node to get node above" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "GetNodeBelow", "Returns" : "Fit.Controls.TreeViewNode | null", "Access" : "public", "Description" : "Get node below specified node - returns Null if no node is below the specified one", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "node", "Type" : "Fit.Controls.TreeViewNode", "Default" : "", "Nullable" : false, "Description" : "Node to get node below" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "GetNodeFocused", "Returns" : "Fit.Controls.TreeViewNode | null", "Access" : "public", "Description" : "Get node currently having focus - returns Null if no node has focus", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeView", "Name" : "HtmlAllowed", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether HTML is allowed (shown) in TreeView nodes", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables support for HTML, False disables it" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "KeyboardNavigation", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether keyboard navigation is enabled", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables keyboard navigation, False disables it" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "Lines", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether helper lines are shown.\nNotice that helper lines cause node items to obtain a fixed\nline height of 20px, making it unsuitable for large fonts.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables helper lines, False disables them" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "AddChild", "Returns" : "", "Access" : "public", "Description" : "Add child node", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "node", "Type" : "Fit.Controls.TreeViewNode", "Default" : "", "Nullable" : false, "Description" : "Node to add" }, { "Name" : "atIndex", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "Optional index at which node is added" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "Dispose", "Returns" : "", "Access" : "public", "Description" : "Destroys object to free up memory", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "Expanded", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether node is expanded", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True expands node, False collapses it" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "Focused", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether node has focus", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True assigns focus, False removes it (blur)" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "GetChild", "Returns" : "Fit.Controls.TreeViewNode | null", "Access" : "public", "Description" : "Get node by value - returns Null if not found", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Node value" }, { "Name" : "recursive", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True enables recursive search" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "GetChildren", "Returns" : "Fit.Controls.TreeViewNode[]", "Access" : "public", "Description" : "Get all children", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "GetDomElement", "Returns" : "DOMElement", "Access" : "public", "Description" : "Get DOMElement representing node", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "GetIndex", "Returns" : "integer", "Access" : "public", "Description" : "Get node index (position in parent node or TreeView) - returns -1 if node has not been added yet", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "GetLevel", "Returns" : "integer", "Access" : "public", "Description" : "Get node depth in current hierarchy - root node is considered level 0", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "GetParent", "Returns" : "Fit.Controls.TreeViewNode | null", "Access" : "public", "Description" : "Get parent node - returns Null if node has no parent", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "GetTreeView", "Returns" : "Fit.Controls.TreeView | null", "Access" : "public", "Description" : "Returns TreeView if associated, otherwise Null", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "HasCheckbox", "Returns" : "boolean", "Access" : "public", "Description" : "Get value indicating whether node has its selection checkbox enabled", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "HtmlAllowed", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether HTML is allowed (shown) in TreeView node", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables support for HTML, False disables it" }, { "Name" : "recursive", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True applies change recursively to children" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "IsBehavioralNode", "Returns" : "boolean", "Access" : "public", "Description" : "Returns True if this is a behavioral node, otherwise False - see SetBehavioralNodeCallback for more details", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "RemoveChild", "Returns" : "", "Access" : "public", "Description" : "Remove child node - this does not result in TreeView.OnSelect and TreeView.OnSelected being fired for selected nodes", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "node", "Type" : "Fit.Controls.TreeViewNode", "Default" : "", "Nullable" : false, "Description" : "Node to remove" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "Selectable", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether user can change node selection state", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables node selection, False disables it" }, { "Name" : "showCheckbox", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True adds a selection checkbox, False removes it" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "Selected", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether node is selected.\nIf node is selected, it will automatically be made\nselectable, if not already done so.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "select", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True selects node, False deselects it" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "SetBehavioralNodeCallback", "Returns" : "", "Access" : "public", "Description" : "Set callback invoked when node is selected.\nA behavioral node is not considered data, so selecting it will not change\nthe control value. Since the node is not considered data, it will not trigger\nthe OnSelect and OnSelected TreeView events either.\nCallback receives two arguments:\nSender (Fit.Controls.TreeViewNode) and Selected (boolean value indicating new selection state).\nCallback may cancel changed selection state by returning False.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "func", "Type" : "Fit.Controls.TreeViewTypeDefs.CancelableBehavioralNodeCallback | null", "Default" : "", "Nullable" : false, "Description" : "Callback function invoked when node is selected - Null disables behavioral state" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "Title", "Returns" : "string", "Access" : "public", "Description" : "Get/set node title", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, node title is updated" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "TreeViewNode", "Returns" : "", "Access" : "public", "Description" : "Create instance of TreeViewNode", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "displayTitle", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Node title" }, { "Name" : "nodeValue", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Node value" }, { "Name" : "options", "Type" : "Fit.Controls.TreeViewNodeOptions", "Default" : "undefined", "Nullable" : false, "Description" : "Optional options" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "Value", "Returns" : "string", "Access" : "public", "Description" : "Get node value", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeView", "Name" : "OnContextMenu", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired before context menu is shown.\nThis event can be canceled by returning False.\nFunction receives two arguments:\nSender (Fit.Controls.TreeView) and Node (Fit.Controls.TreeViewNode).\nUse Sender.ContextMenu() to obtain a reference to the context menu.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.TreeViewTypeDefs.CancelableNodeEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "OnSelect", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when node is being selected or deselected.\nSelection can be canceled by returning False.\nFunction receives two arguments:\nSender (Fit.Controls.TreeView) and Node (Fit.Controls.TreeViewNode).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.TreeViewTypeDefs.CancelableNodeEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "OnSelectAll", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when Select All is used for a given node.\nThis event can be canceled by returning False.\nFunction receives two arguments:\nSender (Fit.Controls.TreeView) and EventArgs object.\nEventArgs object contains the following properties:\n- Node: Fit.Controls.TreeViewNode instance - Null if Select All was triggered for root nodes (all nodes)\n- Selected: Boolean value indicating new selection state", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.TreeViewTypeDefs.CancelableSelectionEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "OnSelectAllComplete", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when Select All operation has completed.\nFunction receives two arguments:\nSender (Fit.Controls.TreeView) and EventArgs object.\nEventArgs object contains the following properties:\n- Node: Fit.Controls.TreeViewNode instance - Null if Select All was triggered for root nodes (all nodes)\n- Selected: Boolean value indicating new selection state", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.TreeViewTypeDefs.SelectionCompleteEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "OnSelected", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when node is selected or deselected.\nSelection can not be canceled. Function receives two arguments:\nSender (Fit.Controls.TreeView) and Node (Fit.Controls.TreeViewNode).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.TreeViewTypeDefs.NodeEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "OnToggle", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when node is being expanded or collapsed.\nToggle can be canceled by returning False.\nFunction receives two arguments:\nSender (Fit.Controls.TreeView) and Node (Fit.Controls.TreeViewNode).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.TreeViewTypeDefs.CancelableNodeEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "OnToggled", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when node is expanded or collapsed.\nToggle can not be canceled. Function receives two arguments:\nSender (Fit.Controls.TreeView) and Node (Fit.Controls.TreeViewNode).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.TreeViewTypeDefs.NodeEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "RemoveAllChildren", "Returns" : "", "Access" : "public", "Description" : "Remove all nodes contained in TreeView - this does not result in OnSelect and OnSelected being fired for selected nodes", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dispose", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to dispose nodes" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "RemoveChild", "Returns" : "", "Access" : "public", "Description" : "Remove node from TreeView - this does not result in OnSelect and OnSelected being fired for selected nodes", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "node", "Type" : "Fit.Controls.TreeViewNode", "Default" : "", "Nullable" : false, "Description" : "Node to remove" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "Selectable", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether user can change selection state of nodes.\nThis affects all contained nodes. To configure nodes\nindividually, use Selectable(..) function on node instances.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables node selection, False disables it" }, { "Name" : "multi", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True enables node multi selection, False disables it" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "SelectAll", "Returns" : "", "Access" : "public", "Description" : "Select all nodes", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "selected", "Type" : "boolean", "Default" : "", "Nullable" : false, "Description" : "Value indicating whether to select or deselect nodes" }, { "Name" : "selectAllNode", "Type" : "Fit.Controls.TreeViewNode", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, children under given node is selected/deselected recursively.\nIf not specified, all nodes contained in TreeView will be selected/deselected." }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "Selected", "Returns" : "Fit.Controls.TreeViewNode[]", "Access" : "public", "Description" : "Get/set selected nodes", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "Fit.Controls.TreeViewNode[]", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, provided nodes are selected" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "SetActiveNode", "Returns" : "", "Access" : "public", "Description" : "Set active (highlighted or focused) node", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "node", "Type" : "Fit.Controls.TreeViewNode", "Default" : "", "Nullable" : false, "Description" : "Node to set active in TreeView" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "TreeView", "Returns" : "", "Access" : "public", "Description" : "Create instance of TreeView control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "WordWrap", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether Word Wrapping is enabled", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables Word Wrapping, False disables it" }] }, { "Container" : "Fit.Controls.WSContextMenu", "Name" : "JsonpCallback", "Returns" : "string", "Access" : "public", "Description" : "Get/set name of JSONP callback argument. Assigning a value will enable JSONP communication.\nOften this argument is simply \"callback\". Passing Null disables JSONP communication again.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, enables JSONP and updates JSONP callback argument" }] }, { "Container" : "Fit.Controls.WSContextMenu", "Name" : "OnPopulated", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when ContextMenu has been populated with items.\nFunction receives two arguments:\nSender (Fit.Controls.WSContextMenu) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSContextMenu instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Children: JSON items received from WebService", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSContextMenuTypeDefs.DataEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSContextMenu", "Name" : "OnRequest", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when data is being requested.\nRequest can be canceled by returning False.\nFunction receives two arguments:\nSender (Fit.Controls.WSContextMenu) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSContextMenu instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSContextMenuTypeDefs.RequestEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSContextMenu", "Name" : "OnResponse", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when data is received,\nallowing for data transformation to occure before\nContextMenu is populated. Function receives two arguments:\nSender (Fit.Controls.WSContextMenu) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSContextMenu instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Children: JSON items received from WebService", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSContextMenuTypeDefs.DataEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSContextMenu", "Name" : "Url", "Returns" : "string", "Access" : "public", "Description" : "Get/set URL to WebService responsible for providing data to ContextMenu.\nWebService must deliver all data at once in the following JSON format:\n[\n     { Title: \"Test 1\", Value: \"1001\", Selectable: true, Selected: true, Children: [] },\n     { Title: \"Test 2\", Value: \"1002\", Selectable: false, Selected: false, Children: [] }\n]\nOnly Value is required. Children is a collection of items with the same format as described above.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "wsUrl", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, updates WebService URL (e.g. http://server/ws/data.asxm/GetItems)" }] }, { "Container" : "Fit.Controls.WSContextMenu", "Name" : "WSContextMenu", "Returns" : "", "Access" : "public", "Description" : "Create instance of WSContextMenu control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "controlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "ActionMenuHtmlAllowed", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether HTML is allowed (shown) in selected items in action menu", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables support for HTML, False disables it" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "ActionMenuSortingLocale", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set locale used to sort action menu alphabetically - returns null (default) if not enabled.\nLocalized sorting is not supported on legacy browsers, which will fall back to sorting based on\neach character's position in the computer's character table.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, sorting is updated to use provided locale - null disables sorting" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "AutoUpdateSelected", "Returns" : "", "Access" : "public", "Description" : "Automatically update title of selected items based on data from WebService.\nContrary to UpdateSelected(), AutoUpdateSelected() automatically loads all\ndata from the associated WebService before updating the selected items, but\nonly if one or more items are selected.\nThe callback function is invoked when selected items have been updated.\nThe following arguments are passed to function:\n- Sender (WSDropDown)\n- An array of updated items, each with a Title (string), Value (string), and Exists (boolean) property.\nNotice that items that no longer exists in picker's data, will NOT automatically be removed.\nTo obtain all items with the most current state (both updated and unmodified selections), use;\ndropdown.AutoUpdateSelected(function(sender, updated) { console.log(\"All selected\", dropdown.GetSelections()); });\nFor additiona details see UpdateSelected().", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSDropDownTypeDefs.AutoUpdateSelectedCallback", "Default" : "undefined", "Nullable" : false, "Description" : "Optional callback function invoked when selected items have been updated" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "ClearData", "Returns" : "", "Access" : "public", "Description" : "Call this function to make control reload data when needed,\nensuring that the user will see the most recent values available.\nOperation may be postponed if data is currently loading from WebService.\nUse callback to pick up execution once data has been cleared.\nSender (Fit.Controls.WSDropDown) is passed to callback as an argument.\nTo make sure data reloads immediate, please use ReloadData(..) instead.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSDropDownTypeDefs.DataCallback", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, callback is invoked when data is cleared" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "GetListView", "Returns" : "Fit.Controls.WSListView", "Access" : "public", "Description" : "Get WSListView control used to display data in a flat list view", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "GetTreeView", "Returns" : "Fit.Controls.WSTreeView", "Access" : "public", "Description" : "Get WSTreeView control used to display data in a hierarchical tree view", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "JsonpCallback", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set name of JSONP callback argument. Assigning a value will enable JSONP communication.\nOften this argument is simply \"callback\". Passing Null disables JSONP communication again.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, enables JSONP and updates JSONP callback argument" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "ListViewEnabled", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether searchable ListView is enabled or not.\nThe value provided also determines the value for InputEnabled and vice versa.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables ListView and search capability (default), False disables it" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "OnAbort", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired if data request is canceled.\nFunction receives two arguments:\nSender (Fit.Controls.WSDropDown) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSDropDown instance\n- Picker: Picker causing WebService data request (WSTreeView or WSListView instance)\n- Node: Fit.Controls.TreeViewNode instance if requesting TreeView children, Null if requesting root nodes\n- Search: Search value if entered by user\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Data: JSON data received from WebService (Null in this particular case)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSDropDownTypeDefs.RequestAbortedEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "OnRequest", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when data is being requested.\nRequest can be canceled by returning False.\nFunction receives two arguments:\nSender (Fit.Controls.WSDropDown) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSDropDown instance\n- Picker: Picker causing WebService data request (WSTreeView or WSListView instance)\n- Node: Fit.Controls.TreeViewNode instance if requesting TreeView children, Null if requesting root nodes\n- Search: Search value if entered by user\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSDropDownTypeDefs.CancelableRequestEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "OnResponse", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when data is received,\nallowing for data transformation to occure before\npicker control is populated. Function receives two arguments:\nSender (Fit.Controls.WSDropDown) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSDropDown instance\n- Picker: Picker causing WebService data request (WSTreeView or WSListView instance)\n- Node: Fit.Controls.TreeViewNode instance if requesting TreeView children, Null if requesting root nodes\n- Search: Search value if entered by user\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Data: JSON data received from WebService", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSDropDownTypeDefs.ResponseEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "ReloadData", "Returns" : "", "Access" : "public", "Description" : "Call this function to make control reload data immediately,\nensuring that the user will see the most recent values available.\nUse callback to pick up execution once data has been loaded.\nSender (Fit.Controls.WSDropDown) is passed to callback as an argument.\nTo have data reload when needed (lazy loading), please use ClearData(..) instead.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSDropDownTypeDefs.DataCallback", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, callback is invoked when data has been loaded" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "ResetActionMenu", "Returns" : "", "Access" : "public", "Description" : "Reset action menu so it automatically determines whether to show up or not\nwhen DropDown control is opened/re-opened, based on rules outlined in the\ndescription for UseActionMenu(..).\nThis is useful if calling ClearData(..) and one wants to make sure the TreeView\ndata is immediately made visible once ready, rather than showing the action menu\nif it was previously shown.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "TreeViewEnabled", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether TreeView control is enabled or not", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables TreeView (default), False disables it" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "UpdateActionMenu", "Returns" : "", "Access" : "public", "Description" : "Update action menu to make it reflect availablity of data in TreeView", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "Url", "Returns" : "string", "Access" : "public", "Description" : "Get/set URL to WebService responsible for providing data to drop down.\nWebService must deliver data in the following JSON format:\n[\n     { Title: \"Test 1\", Value: \"1001\", Selectable: true, Selected: true, Children: [] },\n     { Title: \"Test 2\", Value: \"1002\", Selectable: false, Selected: false, Children: [] }\n]\nOnly Value is required. Children is a collection of nodes with the same format as described above.\nHasChildren:boolean may be set to indicate that children are available server side and that WebService\nshould be called to load these children when the given node is expanded.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "wsUrl", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, updates WebService URL (e.g. http://server/ws/data.asxm/GetData)" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "UseActionMenu", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control uses the built-in action menu to ease addition and removal of items.\nIf this property is not explicitly set, it will automatically be changed by the control depending on data and other settings.\nThe action menu will be enabled if TreeViewEnabled is set to False, as it would otherwise not show anything unless the user\nenters a search value. If TreeViewEnabled is True but no data is provided to the TreeView control upon request, the action menu\nis also enabled.\nIf the control does not have any selections, InputEnabled (or its alias ListViewEnabled) is True, and TreeViewEnabled is False,\nno picker will be displayed since the action menu would only display the \"Search for options\" item - but it should already\nbe obvious to the user that searching is required due to the placeholder displaying \"Search..\" by default.\nLikewise, if TreeViewEnabled is True and InputEnabled (or its alias ListViewEnabled) is False, and no selections are made,\nthe action menu would only display \"Show available options\". In this case the TreeView will be displayed instead,\neven if UseActionMenu has explicitely been set to True.\nThe behaviour described is in place to make sure the action menu is only displayed when it makes sense, since it introduces\nand extra step (click) required by the user to access data.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables the action menu, False disables it" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "WSDropDown", "Returns" : "", "Access" : "public", "Description" : "Create instance of WSDropDown control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.WSListView", "Name" : "JsonpCallback", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set name of JSONP callback argument. Assigning a value will enable JSONP communication.\nOften this argument is simply \"callback\". Passing Null disables JSONP communication again.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, enables JSONP and updates JSONP callback argument" }] }, { "Container" : "Fit.Controls.WSListView", "Name" : "OnAbort", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired if data request is canceled.\nFunction receives two arguments:\nSender (Fit.Controls.WSListView) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSListView instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Items: JSON items received from WebService (Null in this particular case)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSListViewTypeDefs.AbortEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSListView", "Name" : "OnPopulated", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when ListView has been populated with items.\nFunction receives two arguments:\nSender (Fit.Controls.WSListView) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSListView instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Items: JSON items received from WebService", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSListViewTypeDefs.DataEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSListView", "Name" : "OnRequest", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when data is being requested.\nRequest can be canceled by returning False.\nFunction receives two arguments:\nSender (Fit.Controls.WSListView) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSListView instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSListViewTypeDefs.CancelableRequestEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSListView", "Name" : "OnResponse", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when data is received,\nallowing for data transformation to occure before\nListView is populated. Function receives two arguments:\nSender (Fit.Controls.WSListView) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSListView instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Items: JSON items received from WebService", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSListViewTypeDefs.DataEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSListView", "Name" : "Reload", "Returns" : "", "Access" : "public", "Description" : "Load/reload data from WebService", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSListViewTypeDefs.ReloadCallback", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, callback function is invoked when data has been loaded\nand populated - takes Sender (Fit.Controls.WSListView) as an argument." }] }, { "Container" : "Fit.Controls.WSListView", "Name" : "Url", "Returns" : "string", "Access" : "public", "Description" : "Get/set URL to WebService responsible for providing data to control.\nWebService must deliver data in the following JSON format:\n[\n     { Title: \"Test 1\", Value: \"1001\", Selectable: true, Children: [] },\n     { Title: \"Test 2\", Value: \"1002\", Selectable: false, Children: [] }\n]\nOnly Value is required. Children is a collection of items with the same format as described above.\nBe aware that items are treated as a flat list, even when hierarchically structured using the Children property.\nItems with Selectable set to False will simply be ignored (not shown) while children will still be added.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "wsUrl", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, updates WebService URL (e.g. http://server/ws/data.asxm/GetItems)" }] }, { "Container" : "Fit.Controls.WSListView", "Name" : "WSListView", "Returns" : "", "Access" : "public", "Description" : "Create instance of WSListView control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "EnsureData", "Returns" : "", "Access" : "public", "Description" : "Ensure all data from WebService.\nContrary to Reload(..), this function does not clear selected\nvalues, or remove nodes already loaded - it merely loads data\nnot already loaded.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "callback", "Type" : "Fit.Controls.WSTreeViewTypeDefs.ReloadCallback", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, callback function is invoked when all nodes have been loaded\nand populated - takes Sender (Fit.Controls.WSTreeView) as an argument." }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "JsonpCallback", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set name of JSONP callback argument. Assigning a value will enable JSONP communication.\nOften this argument is simply \"callback\". Passing Null disables JSONP communication again.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, enables JSONP and updates JSONP callback argument" }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "OnAbort", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired if data request is canceled.\nFunction receives two arguments:\nSender (Fit.Controls.WSTreeView) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSTreeView instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Node: Fit.Controls.TreeViewNode instance to be populated\n- Children: JSON nodes received from WebService (Null in this particular case)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSTreeViewTypeDefs.AbortEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "OnPopulated", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when TreeView has been populated with nodes.\nNode is not populated and event is not fired though if node is disposed\nor detached from TreeView while data is loading from WebService.\nFunction receives two arguments:\nSender (Fit.Controls.WSTreeView) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSTreeView instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Node: Fit.Controls.TreeViewNode instance now populated with children\n- Children: JSON nodes received from WebService", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSTreeViewTypeDefs.DataEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "OnRequest", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when data is being requested.\nRequest can be canceled by returning False.\nFunction receives two arguments:\nSender (Fit.Controls.WSTreeView) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSTreeView instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Node: Fit.Controls.TreeViewNode instance", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSTreeViewTypeDefs.CancelableRequestEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "OnResponse", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when data is received,\nallowing for data transformation to occure before\nTreeView is populated. Function receives two arguments:\nSender (Fit.Controls.WSTreeView) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSTreeView instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Node: Fit.Controls.TreeViewNode instance to be populated\n- Children: JSON nodes received from WebService", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSTreeViewTypeDefs.DataEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "Reload", "Returns" : "", "Access" : "public", "Description" : "Reload data from WebService", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "keepState", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True will preserve selections, expanded state, and focus state, False will not (default)" }, { "Name" : "cb", "Type" : "Fit.Controls.WSTreeViewTypeDefs.ReloadCallback", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, callback function is invoked when root nodes have been loaded\nand populated - takes Sender (Fit.Controls.WSTreeView) as an argument." }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "SelectAllMode", "Returns" : "Fit.Controls.WSTreeViewSelectAllMode", "Access" : "public", "Description" : "Get/set flag indicating whether WebService returns the complete hierarchy when\nSelect All is triggered (Instantly), or loads data for each level individually\nwhen TreeView automatically expands all nodes (Progressively - chain loading).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "Fit.Controls.WSTreeViewSelectAllMode", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, behaviour is set to specified mode" }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "Selected", "Returns" : "Fit.Controls.TreeViewNode[]", "Access" : "public", "Description" : "Fit.Controls.TreeView.Selected override:\nGet/set selected nodes.\nNotice for getter: Nodes not loaded yet (preselections) are NOT associated with TreeView.\nThey are there to indicate a selection that has not yet occurred since the data has not yet been loaded.\nChanging properties of these nodes (e.g. node.Expanded(boolean) or node.Selected(boolean)) will not have any effect on the TreeView.\nSuch nodes can be identified using GetTreeView(): if (node.GetTreeView() === null) console.log(\"This is a preselection node\");\nThe following functions can be used to get node information: node.Title() and node.Value().", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "Fit.Controls.TreeViewNode[]", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, provided nodes are selected" }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "SetNodeSelection", "Returns" : "", "Access" : "public", "Description" : "Allows for a node's selection state to be set even if node has not been loaded yet", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Node value" }, { "Name" : "selected", "Type" : "boolean", "Default" : "", "Nullable" : false, "Description" : "Node selection state" }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "Url", "Returns" : "string", "Access" : "public", "Description" : "Get/set URL to WebService responsible for providing data to TreeView.\nWebService must deliver data in the following JSON format:\n[\n     { Title: \"Test 1\", Value: \"1001\", Selectable: true, Selected: true, Children: [] },\n     { Title: \"Test 2\", Value: \"1002\", Selectable: false, Selected: false, Children: [] }\n]\nOnly Value is required. Children is a collection of nodes with the same format as described above.\nHasChildren:boolean may be set to indicate that children are available server side and that WebService\nshould be called to load these children when the given node is expanded.\nAdditionally Expanded:boolean can be set to initially display node as expanded.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "wsUrl", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, updates WebService URL (e.g. http://server/ws/data.asxm/GetNodes)" }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "WSTreeView", "Returns" : "", "Access" : "public", "Description" : "Create instance of WSTreeView control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Cookies", "Name" : "Cookies", "Returns" : "", "Access" : "public", "Description" : "Create instance of cookie container isolated to either current path (default)\nor a custom path, and optionally an alternative part of the domain (by default\ncookies are available only on the current domain, while defining a domain makes\ncookies available to that particular domain and subdomains).", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Cookies", "Name" : "Domain", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set portion of domain to which cookies are isolated", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes isolation to specified domain portion, including subdomains - pass\nNull to unset it to make cookies available to current domain only (excluding subdomains)." }] }, { "Container" : "Fit.Cookies", "Name" : "Get", "Returns" : "string | null", "Access" : "public", "Description" : "Returns cookie value if found, otherwise Null", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "name", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Unique cookie name" }] }, { "Container" : "Fit.Cookies", "Name" : "Path", "Returns" : "string", "Access" : "public", "Description" : "Get/set path to which cookies are isolated", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes isolation to specified path" }] }, { "Container" : "Fit.Cookies", "Name" : "Prefix", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set prefix added to all cookies - useful for grouping related cookies and to avoid naming conflicts.\nNotice that Set/Get/Remove functions automatically apply the prefix to cookie names, so the use of a prefix\nis completely transparent.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes cookie prefix to specified value - pass Null to unset it" }] }, { "Container" : "Fit.Cookies", "Name" : "Remove", "Returns" : "", "Access" : "public", "Description" : "Remove cookie", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "name", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Unique cookie name" }] }, { "Container" : "Fit.Cookies", "Name" : "SameSite", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set SameSite policy", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "\"None\" | \"Lax\" | \"Strict\" | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes SameSite policy - pass Null to unset it" }] }, { "Container" : "Fit.Cookies", "Name" : "Secure", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set Secure flag", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes Secure flag" }] }, { "Container" : "Fit.Cookies", "Name" : "Set", "Returns" : "", "Access" : "public", "Description" : "Create or update cookie", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "name", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Unique cookie name" }, { "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Cookie value (cannot contain semicolon!)" }, { "Name" : "seconds", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "Optional expiration time in seconds. Creating a cookie with\nno expiration time will cause it to expire when session ends." }] }, { "Container" : "Fit.CoreTypeDefs.DebounceFunction", "Name" : "Cancel", "Returns" : "", "Access" : "public", "Description" : "Cancel debounced function if scheduled for execution", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.CoreTypeDefs.DebounceFunction", "Name" : "Flush", "Returns" : "", "Access" : "public", "Description" : "Force execution of debounced function if scheduled for execution", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "BringToFront", "Returns" : "", "Access" : "public", "Description" : "Bring draggable to front", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "BringToFrontOnActivation", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether to bring draggable to front when activated", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, a value of True enables functionality, False disables it (default)" }] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "Dispose", "Returns" : "", "Access" : "public", "Description" : "Free resources and disable dragging support for DOM element", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "Draggable", "Returns" : "", "Access" : "public", "Description" : "Constructor - create instance of Draggable class", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "domElm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element to turn into draggable object" }, { "Name" : "domTriggerElm", "Type" : "DOMElement", "Default" : "undefined", "Nullable" : false, "Description" : "Element that triggers dragging (optional)" }] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "GetDomElement", "Returns" : "DOMElement", "Access" : "public", "Description" : "Get draggable DOM element", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "OnDragging", "Returns" : "", "Access" : "public", "Description" : "Add event handler which constantly gets fired when dragging takes place", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.DragDrop.DraggableTypeDefs.DragEventHandler", "Default" : "", "Nullable" : false, "Description" : "Callback (event handler) function - draggable DOM element is passed to function" }] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "OnDragStart", "Returns" : "", "Access" : "public", "Description" : "Add event handler which gets fired when dragging starts", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.DragDrop.DraggableTypeDefs.DragEventHandler", "Default" : "", "Nullable" : false, "Description" : "Callback (event handler) function - draggable DOM element is passed to function" }] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "OnDragStop", "Returns" : "", "Access" : "public", "Description" : "Add event handler which gets fired when dragging stops", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.DragDrop.DraggableTypeDefs.DragStopEventHandler", "Default" : "", "Nullable" : false, "Description" : "Callback (event handler) function - instance of Draggable is passed to function" }] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "Reset", "Returns" : "", "Access" : "public", "Description" : "Reset draggable to initial position", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "ReturnFocus", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether focus is returned/restored after drag operation", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "A value of True causes draggable to return focus to previously\nfocused element when drag operation is completed - defaults to False" }] }, { "Container" : "Fit.DragDrop.DropZone", "Name" : "Dispose", "Returns" : "", "Access" : "public", "Description" : "Free resources and disable DropZone support for DOM element", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.DragDrop.DropZone", "Name" : "DropZone", "Returns" : "", "Access" : "public", "Description" : "Constructor - create instance of DropZone class", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "domElm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element to turn into dropzone object" }] }, { "Container" : "Fit.DragDrop.DropZone", "Name" : "GetDomElement", "Returns" : "DOMElement", "Access" : "public", "Description" : "Get dropzone DOM element", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.DragDrop.DropZone", "Name" : "OnDrop", "Returns" : "", "Access" : "public", "Description" : "Add event handler which gets fired when draggable is dropped on dropzone", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.DragDrop.DropZoneTypeDefs.DropEventHandler", "Default" : "", "Nullable" : false, "Description" : "Callback (event handler) function - instance of DropZone and Draggable is passed to function (in that order)" }] }, { "Container" : "Fit.DragDrop.DropZone", "Name" : "OnEnter", "Returns" : "", "Access" : "public", "Description" : "Add event handler which gets fired when draggable enters dropzone, ready to be dropped", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.DragDrop.DropZoneTypeDefs.EnterEventHandler", "Default" : "", "Nullable" : false, "Description" : "Callback (event handler) function - instance of DropZone is passed to function" }] }, { "Container" : "Fit.DragDrop.DropZone", "Name" : "OnLeave", "Returns" : "", "Access" : "public", "Description" : "Add event handler which gets fired when draggable leaves dropzone", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.DragDrop.DropZoneTypeDefs.LeaveEventHandler", "Default" : "", "Nullable" : false, "Description" : "Callback (event handler) function - instance of DropZone is passed to function" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"keydown\" | \"keyup\" | \"keypress\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackKeyboard", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"click\" | \"contextmenu\" | \"dblclick\" | \"mousedown\" | \"mouseenter\" | \"mouseleave\" | \"mousemove\" | \"mouseout\" | \"mouseover\" | \"mouseup\" | \"mousewheel\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackMouse", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"popstate\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackPopState", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"hashchange\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackHashChange", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"focus\" | \"focusin\" | \"focusout\" | \"blur\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackFocus", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"beforeunload\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackBeforeUnload", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"cut\" | \"copy\" | \"paste\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackClipboard", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"storage\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackStorage", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers handler for specified event on given DOMElement and returns Event ID", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element on to which event handler is registered" }, { "Name" : "event", "Type" : "\"#rooted\"", "Default" : "", "Nullable" : false, "Description" : "Event name" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackRooted", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers handler for specified event on given DOMElement and returns Event ID", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element on to which event handler is registered" }, { "Name" : "event", "Type" : "\"#mutation\"", "Default" : "", "Nullable" : false, "Description" : "Event name" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.MutationObserverCallback", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackGeneric", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"keydown\" | \"keyup\" | \"keypress\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "options", "Type" : "{ Id?: string, Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set additional options - not guaranteed to be cross browser compatible!" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackKeyboard", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"click\" | \"contextmenu\" | \"dblclick\" | \"mousedown\" | \"mouseenter\" | \"mouseleave\" | \"mousemove\" | \"mouseout\" | \"mouseover\" | \"mouseup\" | \"mousewheel\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "options", "Type" : "{ Id?: string, Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set additional options - not guaranteed to be cross browser compatible!" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackMouse", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"popstate\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "options", "Type" : "{ Id?: string, Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set additional options - not guaranteed to be cross browser compatible!" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackPopState", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"hashchange\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "options", "Type" : "{ Id?: string, Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set additional options - not guaranteed to be cross browser compatible!" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackHashChange", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"focus\" | \"focusin\" | \"focusout\" | \"blur\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "options", "Type" : "{ Id?: string, Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set additional options - not guaranteed to be cross browser compatible!" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackFocus", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"beforeunload\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "options", "Type" : "{ Id?: string, Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set additional options - not guaranteed to be cross browser compatible!" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackBeforeUnload", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"cut\" | \"copy\" | \"paste\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "options", "Type" : "{ Id?: string, Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set additional options - not guaranteed to be cross browser compatible!" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackClipboard", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"storage\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "options", "Type" : "{ Id?: string, Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set additional options - not guaranteed to be cross browser compatible!" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackStorage", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers handler for specified event on given DOMElement and returns Event ID", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element on to which event handler is registered" }, { "Name" : "event", "Type" : "\"#rooted\"", "Default" : "", "Nullable" : false, "Description" : "Event name" }, { "Name" : "options", "Type" : "{ Id?: string }", "Default" : "", "Nullable" : false, "Description" : "This argument is ignored for the specialized #rooted event." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackRooted", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers handler for specified event on given DOMElement and returns Event ID", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element on to which event handler is registered" }, { "Name" : "event", "Type" : "\"#mutation\"", "Default" : "", "Nullable" : false, "Description" : "Event name" }, { "Name" : "options", "Type" : "{ Id?: String, Deep?: boolean }", "Default" : "", "Nullable" : false, "Description" : "This argument is ignored for the specialized #rooted event." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackRooted", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Event name without 'on' prefix (e.g. 'load', 'mouseover', 'click' etc.)" }, { "Name" : "options", "Type" : "{ Id?: string, Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set additional options - not guaranteed to be cross browser compatible!" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackGeneric", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "EventManager", "Returns" : "", "Access" : "public", "Description" : "Create instance of EventManager", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.EventManager", "Name" : "Move", "Returns" : "", "Access" : "public", "Description" : "Move event handler by event ID to another DOMElement", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "id", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Event ID identifying handler to move" }, { "Name" : "newElm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element to which event handler is moved" }] }, { "Container" : "Fit.EventManager", "Name" : "Move", "Returns" : "", "Access" : "public", "Description" : "Invoke event handler by event ID", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "id", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Event ID identifying handler to invoke" }, { "Name" : "args", "Type" : "any[]", "Default" : "undefined", "Nullable" : false, "Description" : "Event handler arguments" }, { "Name" : "thisArg", "Type" : "any", "Default" : "undefined", "Nullable" : false, "Description" : "The value 'this' resolves to within event handler" }] }, { "Container" : "Fit.EventManager", "Name" : "Remove", "Returns" : "", "Access" : "public", "Description" : "Removes event handler by event ID", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "id", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Event ID identifying handler to remove" }] }, { "Container" : "Fit.EventManager", "Name" : "RemoveAll", "Returns" : "", "Access" : "public", "Description" : "Remove all event handlers registered", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "Abort", "Returns" : "", "Access" : "public", "Description" : "Abort request", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "Callback", "Returns" : "string", "Access" : "public", "Description" : "Get/set name of URL parameter receiving the name of the JSONP callback function", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes the name of the URL parameter to specified value" }] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "GetParameter", "Returns" : "string | null", "Access" : "public", "Description" : "Get URL parameter value - returns Null if parameter is not defined", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "key", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "URL parameter key" }] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "GetParameters", "Returns" : "string[]", "Access" : "public", "Description" : "Get all URL parameter keys", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "GetResponse", "Returns" : "object", "Access" : "public", "Description" : "Get response returned from server", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "JsonpRequest", "Returns" : "", "Access" : "public", "Description" : "Constructor - creates instance of JsonpRequest class", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "uri", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "URL to request" }, { "Name" : "jsonpCallbackName", "Type" : "string", "Default" : "callback", "Nullable" : false, "Description" : "Name of URL parameter receiving name of JSONP callback function" }] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "OnRequest", "Returns" : "", "Access" : "public", "Description" : "Add function to invoke when request is initiated.\nRequest can be canceled by returning False.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "func", "Type" : "Fit.Http.JsonpRequestTypeDefs.EventHandler", "Default" : "", "Nullable" : false, "Description" : "JavaScript function invoked when request is initiated.\nFit.Http.JsonpRequest instance is passed to function." }] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "OnSuccess", "Returns" : "", "Access" : "public", "Description" : "Add function to invoke when request is successful", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "func", "Type" : "Fit.Http.JsonpRequestTypeDefs.EventHandler", "Default" : "", "Nullable" : false, "Description" : "JavaScript function invoked when request finished successfully.\nFit.Http.JsonpRequest instance is passed to function." }] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "OnTimeout", "Returns" : "", "Access" : "public", "Description" : "Add function to invoke when request is unsuccessful due to timeout", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "func", "Type" : "Fit.Http.JsonpRequestTypeDefs.EventHandler", "Default" : "", "Nullable" : false, "Description" : "JavaScript function invoked when request timed out.\nFit.Http.JsonpRequest instance is passed to function." }] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "SetParameter", "Returns" : "", "Access" : "public", "Description" : "Set URL parameter", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "key", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "URL parameter key" }, { "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "URL parameter value" }, { "Name" : "uriEncode", "Type" : "boolean", "Default" : "true", "Nullable" : false, "Description" : "Set False to prevent value from being URI encoded to preserve special characters" }] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "Start", "Returns" : "", "Access" : "public", "Description" : "Invoke asynchroneus request", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "Timeout", "Returns" : "integer", "Access" : "public", "Description" : "Get/set request timeout in milliseconds.\nOnTimeout is fired if response is not received\nwithin specified amount of time. Defaults to 30000 ms.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes timeout to specified value" }] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "Url", "Returns" : "string", "Access" : "public", "Description" : "Get/set request URL", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes request URL to specified value" }] }, { "Container" : "Fit.Http.JsonRequest", "Name" : "GetResponseJson", "Returns" : "object | null", "Access" : "public", "Description" : "Returns result from request as JSON object, Null if no response was returned.\nReturn value will only be as expected if GetCurrentState() returns a value of 4\n(request done) and GetHttpStatus() returns a value of 2xx (request successful).\nNotice: .NET usually wraps data in a .d property. Data is automatically extracted\nfrom this property, hence contained data is returned as the root object.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.JsonRequest", "Name" : "JsonRequest", "Returns" : "", "Access" : "public", "Description" : "Constructor - creates instance of JSON Request class.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "url", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "URL to request, e.g.\nhttp://server/_layouts/15/Company/MyWebService.asmx/MyMethod" }] }, { "Container" : "Fit.Http.Request", "Name" : "Abort", "Returns" : "", "Access" : "public", "Description" : "Abort asynchroneus request", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "AddFormData", "Returns" : "", "Access" : "public", "Description" : "Add form data - this will change the request method from GET to POST\nand cause the following header to be added to the request, unless already\ndefined: Content-type: application/x-www-form-urlencoded", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "key", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Data key" }, { "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Data value" }, { "Name" : "uriEncode", "Type" : "boolean", "Default" : "true", "Nullable" : false, "Description" : "Set False to prevent value from being URI encoded to preserve special characters" }] }, { "Container" : "Fit.Http.Request", "Name" : "AddHeader", "Returns" : "", "Access" : "public", "Description" : "Add header to request", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "key", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Header key" }, { "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Header value" }] }, { "Container" : "Fit.Http.Request", "Name" : "Async", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether request is made asynchronously or synchronously", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, enforces an async or sync request based on the boolean value provided" }] }, { "Container" : "Fit.Http.Request", "Name" : "ClearFormData", "Returns" : "", "Access" : "public", "Description" : "Remove all form values from form data collection", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "ClearHeaders", "Returns" : "", "Access" : "public", "Description" : "Remove all request headers", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "GetCurrentState", "Returns" : "integer", "Access" : "public", "Description" : "Get current request state.\n0 = Unsent\n1 = Opened\n2 = Headers received\n3 = Loading\n4 = Done (response is ready for processing)", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "GetData", "Returns" : "object", "Access" : "public", "Description" : "Get data set to be posted", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "GetFormData", "Returns" : "string | null", "Access" : "public", "Description" : "Get form value added to form data collection - returns Null if not found", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "key", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Data key" }] }, { "Container" : "Fit.Http.Request", "Name" : "GetHeader", "Returns" : "string | null", "Access" : "public", "Description" : "Get request header - returns Null if not found", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "key", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Header name" }] }, { "Container" : "Fit.Http.Request", "Name" : "GetHeaders", "Returns" : "string[]", "Access" : "public", "Description" : "Get all request header names", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "GetHttpStatus", "Returns" : "integer", "Access" : "public", "Description" : "Returns HTTP status. Common return values are:\n200 = OK (successful request)\n304 = Forbidden (access denied)\n404 = Not found\n408 = Request time out\n500 = Internal server error\n503 = Service unavailable", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "GetResponse", "Returns" : "object", "Access" : "public", "Description" : "Returns result from request. Use this to obtain e.g. binary data on supported browsers.\nFor requests without custom RequestProperties set the return value will be the response text.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "GetResponseHeader", "Returns" : "string | null", "Access" : "public", "Description" : "Get response header (e.g. text/html) - returns Null if not found", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "key", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Header key (e.g. Content-Type)" }] }, { "Container" : "Fit.Http.Request", "Name" : "GetResponseHeaders", "Returns" : "{ Key: string, Value: string }[]", "Access" : "public", "Description" : "Get response headers - returned array contain objects with Key (string) and Value (string) properties", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "GetResponseJson", "Returns" : "object | null", "Access" : "public", "Description" : "Returns result from request as JSON object, Null if no response was returned.\nReturn value will only be as expected if GetCurrentState() returns a value of 4\n(request done) and GetHttpStatus() returns a value of 2xx (request successful).", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "GetResponseText", "Returns" : "string", "Access" : "public", "Description" : "Returns text result from request.\nReturn value will only be as expected if GetCurrentState() returns a value of 4\n(request done) and GetHttpStatus() returns a value of 2xx (request successful).", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "GetResponseXml", "Returns" : "Document", "Access" : "public", "Description" : "Returns result from request as XML or HTML document.\nReturn value will only be as expected if GetCurrentState() returns a value of 4\n(request done) and GetHttpStatus() returns a value of 2xx (request successful).", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "Method", "Returns" : "\"GET\" | \"POST\" | \"HEAD\" | \"PUT\" | \"DELETE\" | \"OPTIONS\"", "Access" : "public", "Description" : "Get/set request method (e.g. GET, POST, HEAD, PUT, DELETE, OPTIONS)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "\"GET\" | \"POST\" | \"HEAD\" | \"PUT\" | \"DELETE\" | \"OPTIONS\"", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes HTTP request method to specified value" }] }, { "Container" : "Fit.Http.Request", "Name" : "OnAbort", "Returns" : "", "Access" : "public", "Description" : "Add function to invoke when request is canceled", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "func", "Type" : "Fit.Http.RequestTypeDefs.EventHandler", "Default" : "", "Nullable" : false, "Description" : "JavaScript function invoked when request is canceled.\nFit.Http.Request instance is passed to function." }] }, { "Container" : "Fit.Http.Request", "Name" : "OnFailure", "Returns" : "", "Access" : "public", "Description" : "Add function to invoke when request is unsuccessful", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "func", "Type" : "Fit.Http.RequestTypeDefs.EventHandler", "Default" : "", "Nullable" : false, "Description" : "JavaScript function invoked when request finished, but not successfully.\nFit.Http.Request instance is passed to function." }] }, { "Container" : "Fit.Http.Request", "Name" : "OnRequest", "Returns" : "", "Access" : "public", "Description" : "Add function to invoke when request is initiated.\nRequest can be canceled by returning False.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "func", "Type" : "Fit.Http.RequestTypeDefs.EventHandler", "Default" : "", "Nullable" : false, "Description" : "JavaScript function invoked when request is initiated.\nFit.Http.Request instance is passed to function." }] }, { "Container" : "Fit.Http.Request", "Name" : "OnStateChange", "Returns" : "", "Access" : "public", "Description" : "Add function to invoke when request state is changed.\nUse GetCurrentState() to read the state at the given time.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "func", "Type" : "Fit.Http.RequestTypeDefs.EventHandler", "Default" : "", "Nullable" : false, "Description" : "JavaScript function invoked when state changes.\nFit.Http.Request instance is passed to function." }] }, { "Container" : "Fit.Http.Request", "Name" : "OnSuccess", "Returns" : "", "Access" : "public", "Description" : "Add function to invoke when request is successful", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "func", "Type" : "Fit.Http.RequestTypeDefs.EventHandler", "Default" : "", "Nullable" : false, "Description" : "JavaScript function invoked when request finished successfully.\nFit.Http.Request instance is passed to function." }] }, { "Container" : "Fit.Http.Request", "Name" : "RemoveFormData", "Returns" : "", "Access" : "public", "Description" : "Remove form value from form data collection", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "key", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Data key" }] }, { "Container" : "Fit.Http.Request", "Name" : "RemoveHeader", "Returns" : "", "Access" : "public", "Description" : "Remove request header", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "key", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Header name" }] }, { "Container" : "Fit.Http.Request", "Name" : "Request", "Returns" : "", "Access" : "public", "Description" : "Constructor - creates instance of Request class", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "uri", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "URL to request" }] }, { "Container" : "Fit.Http.Request", "Name" : "RequestProperties", "Returns" : "object", "Access" : "public", "Description" : "Set/get custom XHR request properties.\nExample of property object: { withCredentials: true, responseType: 'blob' }.\nHow different browsers and versions support and handle custom properties differ:\nhttps://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest\nFull cross browser support is therefore not guaranteed.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "propertyObject", "Type" : "object", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, properties will be applied to XHR request when Start() is invoked" }] }, { "Container" : "Fit.Http.Request", "Name" : "SetData", "Returns" : "", "Access" : "public", "Description" : "Set data to post - this will change the request method from GET to POST", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dataObj", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Data to send" }] }, { "Container" : "Fit.Http.Request", "Name" : "Start", "Returns" : "", "Access" : "public", "Description" : "Invoke request. An asynchroneus request is performed if an\nOnStateChange, OnSuccess, or OnFailure event handler has been set.\nIf no event handlers have been set, a synchronous request will be performed,\ncausing the client to wait (and freeze) until data is received.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "Url", "Returns" : "string", "Access" : "public", "Description" : "Get/set request URL", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes request URL to specified value" }] }, { "Container" : "Fit.Template", "Name" : "AddEventHandler", "Returns" : "integer", "Access" : "public", "Description" : "Add event handler to element within template given by element ID - event handler ID is returned", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "elmId", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Element ID" }, { "Name" : "event", "Type" : "\"keydown\" | \"keyup\" | \"keypress\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackKeyboard", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Template", "Name" : "AddEventHandler", "Returns" : "integer", "Access" : "public", "Description" : "Add event handler to element within template given by element ID - event handler ID is returned", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "elmId", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Element ID" }, { "Name" : "event", "Type" : "\"click\" | \"contextmenu\" | \"dblclick\" | \"mousedown\" | \"mouseenter\" | \"mouseleave\" | \"mousemove\" | \"mouseout\" | \"mouseover\" | \"mouseup\" | \"mousewheel\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackMouse", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Template", "Name" : "AddEventHandler", "Returns" : "integer", "Access" : "public", "Description" : "Add event handler to element within template given by element ID - event handler ID is returned", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "elmId", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Element ID" }, { "Name" : "event", "Type" : "\"popstate\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackPopState", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Template", "Name" : "AddEventHandler", "Returns" : "integer", "Access" : "public", "Description" : "Add event handler to element within template given by element ID - event handler ID is returned", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "elmId", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Element ID" }, { "Name" : "event", "Type" : "\"hashchange\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackHashChange", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Template", "Name" : "AddEventHandler", "Returns" : "integer", "Access" : "public", "Description" : "Add event handler to element within template given by element ID - event handler ID is returned", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "elmId", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Element ID" }, { "Name" : "event", "Type" : "\"focus\" | \"focusin\" | \"focusout\" | \"blur\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackFocus", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Template", "Name" : "AddEventHandler", "Returns" : "integer", "Access" : "public", "Description" : "Add event handler to element within template given by element ID - event handler ID is returned", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "elmId", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Element ID" }, { "Name" : "event", "Type" : "\"beforeunload\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackBeforeUnload", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Template", "Name" : "AddEventHandler", "Returns" : "integer", "Access" : "public", "Description" : "Add event handler to element within template given by element ID - event handler ID is returned", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "elmId", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Element ID" }, { "Name" : "event", "Type" : "\"cut\" | \"copy\" | \"paste\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackClipboard", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Template", "Name" : "AddEventHandler", "Returns" : "integer", "Access" : "public", "Description" : "Add event handler to element within template given by element ID - event handler ID is returned", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "elmId", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Element ID" }, { "Name" : "event", "Type" : "\"#rooted\"", "Default" : "", "Nullable" : false, "Description" : "Event name" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackRooted", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Template", "Name" : "AddEventHandler", "Returns" : "integer", "Access" : "public", "Description" : "Add event handler to element within template given by element ID - event handler ID is returned", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "elmId", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Element ID" }, { "Name" : "event", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackGeneric", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Template", "Name" : "AllowUnsafeContent", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether unsafe string values are handled or not.\nIf AllowUnsafeContent is True, arbitrary code can be added to the template\nand will be intepreted by the browser. If AllowUnsafeContent is False,\npotentially unsafe code will be encoded and displayed as is without interpretation.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, handling of string encoding is changed to reflect value" }] }, { "Container" : "Fit.Template", "Name" : "Dispose", "Returns" : "", "Access" : "public", "Description" : "Dispose template to free up memory", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Template", "Name" : "GetHtml", "Returns" : "string", "Access" : "public", "Description" : "Get HTML from template including any changes made", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.TemplateList", "Name" : "AddItem", "Returns" : "object", "Access" : "public", "Description" : "Create list item represented by associative object\narray containing either strings or DOMElements.\nExample:\nvar item = templateInstance.Content.MyList.AddItem();\nitem[\"Name\"] = \"James Thompson\";\nitem[\"Email\"] = \"james@server.com\";\nIt is also possible to assign data using properties:\nitem.ProfilePicture = document.createElement(\"img\");\nitem.ProfilePicture.src = \"james.png\";", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.TemplateList", "Name" : "Clear", "Returns" : "", "Access" : "public", "Description" : "Clear list", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.TemplateList", "Name" : "GetItems", "Returns" : "object[]", "Access" : "public", "Description" : "Get all list items added using AddItem()", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.TemplateList", "Name" : "RemoveItem", "Returns" : "", "Access" : "public", "Description" : "Remove list item (associative object array)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "item", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Item to remove" }] }, { "Container" : "Fit.Template", "Name" : "LoadHtml", "Returns" : "", "Access" : "public", "Description" : "Load HTML string into template", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "htmlSource", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "HTML string" }] }, { "Container" : "Fit.Template", "Name" : "LoadUrl", "Returns" : "", "Access" : "public", "Description" : "Load HTML from URL asynchronously", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "url", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "URL to HTML template" }, { "Name" : "cb", "Type" : "Fit.TemplateTypeDefs.LoadUrlCallback", "Default" : "", "Nullable" : false, "Description" : "Callback function invoked once HTML template has\nbeen loaded. Template instance and raw HTML data\nis passed to function. At this point placeholders\nand lists are accessible from the Content propery." }] }, { "Container" : "Fit.Template", "Name" : "RemoveEventHandler", "Returns" : "", "Access" : "public", "Description" : "Remove event handler by event ID returned by AddEventHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "eventId", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Event ID" }] }, { "Container" : "Fit.Template", "Name" : "Render", "Returns" : "", "Access" : "public", "Description" : "Render template, either inline or to element specified", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "toElement", "Type" : "DOMElement", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, template is rendered to this element" }] }, { "Container" : "Fit.Template", "Name" : "Reset", "Returns" : "", "Access" : "public", "Description" : "Resets template - all data and event handlers are removed. Change is not pushed to DOM automatically.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Template", "Name" : "Template", "Returns" : "", "Access" : "public", "Description" : "Constructor - creates instance of Template class", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "refreshable", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Flag indicating whether template can be updated after being rendered\nto DOM. A value of True results in template being wrapped in a div container\ncontrolled by the templating system." }, { "Name" : "autoDispose", "Type" : "boolean", "Default" : "true", "Nullable" : false, "Description" : "Flag indicating whether Fit.UI controls should be automatically disposed\nwhen removed from view. Controls are disposed once changes are pushed to\nDOM using the Update() function." }] }, { "Container" : "Fit.Template", "Name" : "Update", "Returns" : "", "Access" : "public", "Description" : "Push changes to DOM to make them visible through the user interface", "Static" : false, "Virtual" : false, "Parameters" : [] }];
188
+ var functions = [{ "Container" : "Fit.Controls.ButtonTypeDefs", "Name" : "ClickEventHandler", "Returns" : "", "Access" : "", "Description" : "OnClick event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Controls.Button", "Default" : "", "Nullable" : false, "Description" : "Instance of Button" }] }, { "Container" : "Fit.Controls.ContextMenuTypeDefs", "Name" : "CancelableEventHandler", "Returns" : "boolean | void", "Access" : "", "Description" : "Event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }] }, { "Container" : "Fit.Controls.ContextMenuTypeDefs", "Name" : "EventHandler", "Returns" : "", "Access" : "", "Description" : "Event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }] }, { "Container" : "Fit.Controls.ContextMenuTypeDefs", "Name" : "SelectEventHandler", "Returns" : "", "Access" : "", "Description" : "OnSelect event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "item", "Type" : "Fit.Controls.ContextMenuItem", "Default" : "", "Nullable" : false, "Description" : "Instance of ContextMenuItem" }] }, { "Container" : "Fit.Controls.ControlBaseTypeDefs", "Name" : "BaseEvent", "Returns" : "", "Access" : "", "Description" : "Event handler receiving an instance of the control firing the event", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Control instance" }] }, { "Container" : "Fit.Controls.ControlBaseTypeDefs", "Name" : "ValidationCallback", "Returns" : "boolean | string | void", "Access" : "", "Description" : "Validation callback used with AddValidationRule(..) inherited from Fit.Controls.ControlBase", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Control to validate" }] }, { "Container" : "Fit.Controls.DialogTypeDefs", "Name" : "ConfirmCallback", "Returns" : "", "Access" : "", "Description" : "Confirmation dialog callback", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "confirmed", "Type" : "boolean", "Default" : "", "Nullable" : false, "Description" : "True if OK button is clicked, otherwise False" }] }, { "Container" : "Fit.Controls.DialogTypeDefs", "Name" : "DialogEventHandler", "Returns" : "", "Access" : "", "Description" : "Dialog event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Controls.Dialog", "Default" : "", "Nullable" : false, "Description" : "Instance of Dialog" }] }, { "Container" : "Fit.Controls.DialogTypeDefs", "Name" : "PromptCallback", "Returns" : "", "Access" : "", "Description" : "Prompt dialog callback", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "string | null", "Default" : "", "Nullable" : false, "Description" : "String value entered if OK button is clicked, Null if prompt is canceled" }] }, { "Container" : "Fit.Controls.DropDownTypeDefs", "Name" : "InputChangedEventHandler", "Returns" : "", "Access" : "", "Description" : "Input changed event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Input value" }] }, { "Container" : "Fit.Controls.DropDownTypeDefs", "Name" : "InteractionEventHandler", "Returns" : "", "Access" : "", "Description" : "Event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }] }, { "Container" : "Fit.Controls.DropDownTypeDefs", "Name" : "PasteEventHandler", "Returns" : "boolean | void", "Access" : "", "Description" : "Paste event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value pasted into input field" }] }, { "Container" : "Fit.Controls.DropDownTypeDefs", "Name" : "SelectionToStringCallback", "Returns" : "string", "Access" : "", "Description" : "Callback responsible for constructing string value representing selected items", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }] }, { "Container" : "Fit.Controls.FilePickerTypeDefs", "Name" : "CancelableUploadEventHandler", "Returns" : "boolean | void", "Access" : "", "Description" : "Cancelable upload event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Controls.FilePicker", "Default" : "", "Nullable" : false, "Description" : "Instance of FilePicker" }] }, { "Container" : "Fit.Controls.FilePickerTypeDefs", "Name" : "CompletedEventHandler", "Returns" : "", "Access" : "", "Description" : "Completed event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Controls.FilePicker", "Default" : "", "Nullable" : false, "Description" : "Instance of FilePicker" }] }, { "Container" : "Fit.Controls.FilePickerTypeDefs", "Name" : "GetImagePreview", "Returns" : "HTMLImageElement | null", "Access" : "", "Description" : "Returns image preview for supported file types, Null for unsupported file types, and Null on browsers not supporting the File API", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.FilePickerTypeDefs", "Name" : "ProgressEventHandler", "Returns" : "", "Access" : "", "Description" : "Progress event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Controls.FilePicker", "Default" : "", "Nullable" : false, "Description" : "Instance of FilePicker" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.FilePickerTypeDefs.File", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.InputTypeDefs", "Name" : "DesignModeTagsOnRequest", "Returns" : "boolean | void", "Access" : "", "Description" : "Cancelable request event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Controls.Input", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnRequestEventHandlerArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.InputTypeDefs", "Name" : "DesignModeTagsOnResponse", "Returns" : "", "Access" : "", "Description" : "Response event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Controls.Input", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.InputTypeDefs.DesignModeTagsOnResponseEventHandlerArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.InputTypeDefs", "Name" : "DesignModeTagsTagCreator", "Returns" : "Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorReturnType | null | void", "Access" : "", "Description" : "Function producing JSON object representing tag to be inserted into editor.\nReturning nothing or Null results in default tag being inserted into editor.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Controls.Input", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.InputTypeDefs.DesignModeTagsTagCreatorCallbackArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.ListViewTypeDefs", "Name" : "OnSelectedEventHandler", "Returns" : "", "Access" : "", "Description" : "OnSelected event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "item", "Type" : "{ Title: string, Value: string }", "Default" : "", "Nullable" : false, "Description" : "Selected item" }] }, { "Container" : "Fit.Controls.ListViewTypeDefs", "Name" : "OnSelectEventHandler", "Returns" : "boolean | void", "Access" : "", "Description" : "OnSelect event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "item", "Type" : "{ Title: string, Value: string }", "Default" : "", "Nullable" : false, "Description" : "Selected item" }] }, { "Container" : "Fit.Controls.PickerBaseTypeDefs", "Name" : "BaseEventHandler", "Returns" : "", "Access" : "", "Description" : "Event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }] }, { "Container" : "Fit.Controls.PickerBaseTypeDefs", "Name" : "SelectionChangedEventHandler", "Returns" : "", "Access" : "", "Description" : "Selection changed event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.PickerBaseTypeDefs.SelectionEventHandlerArguments", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.PickerBaseTypeDefs", "Name" : "SelectionChangingEventHandler", "Returns" : "boolean | void", "Access" : "", "Description" : "Selection changing event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.PickerBaseTypeDefs.SelectionEventHandlerArguments", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.ProgressBarTypeDefs", "Name" : "ProgressEventHandler", "Returns" : "", "Access" : "", "Description" : "Progress event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Controls.ProgressBar", "Default" : "", "Nullable" : false, "Description" : "Instance of ProgressBar" }] }, { "Container" : "Fit.Controls.TreeViewTypeDefs", "Name" : "CancelableBehavioralNodeCallback", "Returns" : "boolean | void", "Access" : "", "Description" : "Behavioral node callback", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Controls.TreeViewNode", "Default" : "", "Nullable" : false, "Description" : "Instance of TreeViewNode" }, { "Name" : "selected", "Type" : "boolean", "Default" : "", "Nullable" : false, "Description" : "Value indicating new selection state" }] }, { "Container" : "Fit.Controls.TreeViewTypeDefs", "Name" : "CancelableNodeEventHandler", "Returns" : "boolean | void", "Access" : "", "Description" : "Cancelable node event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "node", "Type" : "Fit.Controls.TreeViewNode", "Default" : "", "Nullable" : false, "Description" : "Instance of TreeViewNode" }] }, { "Container" : "Fit.Controls.TreeViewTypeDefs", "Name" : "CancelableSelectionEventHandler", "Returns" : "boolean | void", "Access" : "", "Description" : "Cancelable select all event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.TreeViewTypeDefs.SelectionEventHandlerArgs", "Default" : "", "Nullable" : false, "Description" : "Event handler arguments" }] }, { "Container" : "Fit.Controls.TreeViewTypeDefs", "Name" : "NodeEventHandler", "Returns" : "", "Access" : "", "Description" : "Node event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "node", "Type" : "Fit.Controls.TreeViewNode", "Default" : "", "Nullable" : false, "Description" : "Instance of TreeViewNode" }] }, { "Container" : "Fit.Controls.TreeViewTypeDefs", "Name" : "SelectionCompleteEventHandler", "Returns" : "", "Access" : "", "Description" : "Select all complete event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.TreeViewTypeDefs.SelectionEventHandlerArgs", "Default" : "", "Nullable" : false, "Description" : "Event handler arguments" }] }, { "Container" : "Fit.Controls.WSContextMenuTypeDefs", "Name" : "DataEventHandler", "Returns" : "", "Access" : "", "Description" : "Data event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSContextMenuTypeDefs.DataEventArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSContextMenuTypeDefs", "Name" : "RequestEventHandler", "Returns" : "boolean | void", "Access" : "", "Description" : "OnRequest event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSContextMenuTypeDefs.RequestEventArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSDropDownTypeDefs", "Name" : "AutoUpdateSelectedCallback", "Returns" : "", "Access" : "", "Description" : "AutoUpdateSelected callback", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "updatedItems", "Type" : "Fit.Controls.DropDownTypeDefs.UpdatedDropDownItem[]", "Default" : "", "Nullable" : false, "Description" : "Updated items" }] }, { "Container" : "Fit.Controls.WSDropDownTypeDefs", "Name" : "CancelableRequestEventHandler", "Returns" : "", "Access" : "", "Description" : "Cancelable request event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSDropDownTypeDefs.RequestEventArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSDropDownTypeDefs", "Name" : "DataCallback", "Returns" : "", "Access" : "", "Description" : "Event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }] }, { "Container" : "Fit.Controls.WSDropDownTypeDefs", "Name" : "RequestAbortedEventHandler", "Returns" : "", "Access" : "", "Description" : "Aborted request handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSDropDownTypeDefs.AbortedRequestEventArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSDropDownTypeDefs", "Name" : "ResponseEventHandler", "Returns" : "", "Access" : "", "Description" : "Response event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSDropDownTypeDefs.ResponseEventArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSListViewTypeDefs", "Name" : "AbortEventHandler", "Returns" : "", "Access" : "", "Description" : "Abort event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSListViewTypeDefs.AbortHandlerEventArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSListViewTypeDefs", "Name" : "CancelableRequestEventHandler", "Returns" : "boolean | void", "Access" : "", "Description" : "Request event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSListViewTypeDefs.EventHandlerArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSListViewTypeDefs", "Name" : "DataEventHandler", "Returns" : "", "Access" : "", "Description" : "Response event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSListViewTypeDefs.DataHandlerEventArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSListViewTypeDefs", "Name" : "ReloadCallback", "Returns" : "", "Access" : "", "Description" : "Reload callback", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }] }, { "Container" : "Fit.Controls.WSTreeViewTypeDefs", "Name" : "AbortEventHandler", "Returns" : "", "Access" : "", "Description" : "Abort event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSTreeViewTypeDefs.AbortHandlerEventArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSTreeViewTypeDefs", "Name" : "CancelableRequestEventHandler", "Returns" : "boolean | void", "Access" : "", "Description" : "Cancelable request event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSTreeViewTypeDefs.EventHandlerArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSTreeViewTypeDefs", "Name" : "DataEventHandler", "Returns" : "", "Access" : "", "Description" : "Data event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }, { "Name" : "eventArgs", "Type" : "Fit.Controls.WSTreeViewTypeDefs.DataHandlerEventArgs", "Default" : "", "Nullable" : false, "Description" : "Event arguments" }] }, { "Container" : "Fit.Controls.WSTreeViewTypeDefs", "Name" : "ReloadCallback", "Returns" : "", "Access" : "", "Description" : "Reload callback", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of control" }] }, { "Container" : "Fit.DragDrop.DraggableTypeDefs", "Name" : "DragEventHandler", "Returns" : "", "Access" : "", "Description" : "Event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dom", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element to which event is associated" }] }, { "Container" : "Fit.DragDrop.DraggableTypeDefs", "Name" : "DragStopEventHandler", "Returns" : "", "Access" : "", "Description" : "Event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dom", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element to which event is associated" }, { "Name" : "draggable", "Type" : "Fit.DragDrop.Draggable", "Default" : "", "Nullable" : false, "Description" : "Instance of Draggable to which event is associated" }] }, { "Container" : "Fit.DragDrop.DropZoneTypeDefs", "Name" : "DropEventHandler", "Returns" : "", "Access" : "", "Description" : "Event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dropZone", "Type" : "Fit.DragDrop.DropZone", "Default" : "", "Nullable" : false, "Description" : "Instance of DropZone to which draggable is dropped" }, { "Name" : "draggable", "Type" : "Fit.DragDrop.Draggable", "Default" : "", "Nullable" : false, "Description" : "Instance of Draggable being dropped" }] }, { "Container" : "Fit.DragDrop.DropZoneTypeDefs", "Name" : "EnterEventHandler", "Returns" : "", "Access" : "", "Description" : "Event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dropZone", "Type" : "Fit.DragDrop.DropZone", "Default" : "", "Nullable" : false, "Description" : "Instance of DropZone to which draggable can potentially be dropped now" }] }, { "Container" : "Fit.DragDrop.DropZoneTypeDefs", "Name" : "LeaveEventHandler", "Returns" : "", "Access" : "", "Description" : "Event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dropZone", "Type" : "Fit.DragDrop.DropZone", "Default" : "", "Nullable" : false, "Description" : "Instance of DropZone from which draggable is moved away" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "EventHandlerCallbackBeforeUnload", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "BeforeUnloadEvent", "Default" : "", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "EventHandlerCallbackClipboard", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "ClipboardEvent", "Default" : "", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "EventHandlerCallbackFocus", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "FocusEvent", "Default" : "", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "EventHandlerCallbackGeneric", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "Event", "Default" : "", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "EventHandlerCallbackHashChange", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "HashChangeEvent", "Default" : "", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "EventHandlerCallbackKeyboard", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "KeyboardEvent", "Default" : "", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "EventHandlerCallbackMouse", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "MouseEvent", "Default" : "", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "EventHandlerCallbackPopState", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "PopStateEvent", "Default" : "", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "EventHandlerCallbackRooted", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dom", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "EventHandlerCallbackStorage", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "StorageEvent", "Default" : "", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.EventsTypeDefs", "Name" : "MutationObserverCallback", "Returns" : "any", "Access" : "", "Description" : "Event handler callback used with Fit.Events.AddMutationObserver(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dom", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element" }] }, { "Container" : "Fit.Http.JsonpRequestTypeDefs", "Name" : "EventHandler", "Returns" : "", "Access" : "", "Description" : "JsonpRequest event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Http.JsonpRequest", "Default" : "", "Nullable" : false, "Description" : "Instance of JsonpRequest which triggered event" }] }, { "Container" : "Fit.Http.RequestTypeDefs", "Name" : "EventHandler", "Returns" : "", "Access" : "", "Description" : "Request event handler", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "$TypeOfThis", "Default" : "", "Nullable" : false, "Description" : "Instance of request which triggered event" }] }, { "Container" : "Fit.LoaderTypeDefs", "Name" : "LoadMultiConfigurationsEventHandler", "Returns" : "", "Access" : "", "Description" : "Callback invoked when all resources are loaded", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cfgs", "Type" : "Fit.LoaderTypeDefs.ResourceConfiguration[]", "Default" : "", "Nullable" : false, "Description" : "Resources loaded" }] }, { "Container" : "Fit.LoaderTypeDefs", "Name" : "LoadSingleConfigurationEventHandler", "Returns" : "", "Access" : "", "Description" : "Callback invoked when resource is loaded", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cfg", "Type" : "Fit.LoaderTypeDefs.ResourceConfiguration", "Default" : "", "Nullable" : false, "Description" : "Resource loaded" }] }, { "Container" : "Fit.LoaderTypeDefs", "Name" : "LoadSingleEventHandler", "Returns" : "", "Access" : "", "Description" : "Callback invoked when resource is loaded", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "src", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Resource loaded" }] }, { "Container" : "Fit.TemplateTypeDefs", "Name" : "LoadUrlCallback", "Returns" : "", "Access" : "", "Description" : "Callback invoked when template is loaded", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "sender", "Type" : "Fit.Template", "Default" : "", "Nullable" : false, "Description" : "Instance of Template" }, { "Name" : "html", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Template's HTML content" }] }, { "Container" : "Fit.Array", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Add object to array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array", "Default" : "", "Nullable" : false, "Description" : "Array to which object is added" }, { "Name" : "obj", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to add to array" }] }, { "Container" : "Fit.Array", "Name" : "Clear", "Returns" : "", "Access" : "public", "Description" : "Clear all items from array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array", "Default" : "", "Nullable" : false, "Description" : "Array from which all objects are remove" }] }, { "Container" : "Fit.Array", "Name" : "Contains", "Returns" : "boolean", "Access" : "public", "Description" : "Returns True if given object is contained in collection, otherwise False", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array | HTMLCollection | NodeList | NamedNodeMap | FileList | StyleSheetList | CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection to search through" }, { "Name" : "obj", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to look for" }] }, { "Container" : "Fit.Array", "Name" : "Copy", "Returns" : "$Type[]", "Access" : "public", "Description" : "Returns a shallow copy of the collection. For a deep copy see Fit.Core.Clone(..).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "$Type[]", "Default" : "", "Nullable" : false, "Description" : "Collection to copy" }] }, { "Container" : "Fit.Array", "Name" : "Copy", "Returns" : "HTMLElement[]", "Access" : "public", "Description" : "Returns a shallow copy of the collection. For a deep copy see Fit.Core.Clone(..).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "HTMLCollection", "Default" : "", "Nullable" : false, "Description" : "Collection to copy" }] }, { "Container" : "Fit.Array", "Name" : "Copy", "Returns" : "Node[]", "Access" : "public", "Description" : "Returns a shallow copy of the collection. For a deep copy see Fit.Core.Clone(..).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "NodeList", "Default" : "", "Nullable" : false, "Description" : "Collection to copy" }] }, { "Container" : "Fit.Array", "Name" : "Copy", "Returns" : "Attr[]", "Access" : "public", "Description" : "Returns a shallow copy of the collection. For a deep copy see Fit.Core.Clone(..).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "NamedNodeMap", "Default" : "", "Nullable" : false, "Description" : "Collection to copy" }] }, { "Container" : "Fit.Array", "Name" : "Copy", "Returns" : "File[]", "Access" : "public", "Description" : "Returns a shallow copy of the collection. For a deep copy see Fit.Core.Clone(..).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "FileList", "Default" : "", "Nullable" : false, "Description" : "Collection to copy" }] }, { "Container" : "Fit.Array", "Name" : "Copy", "Returns" : "StyleSheet[]", "Access" : "public", "Description" : "Returns a shallow copy of the collection. For a deep copy see Fit.Core.Clone(..).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "StyleSheetList", "Default" : "", "Nullable" : false, "Description" : "Collection to copy" }] }, { "Container" : "Fit.Array", "Name" : "Copy", "Returns" : "CSSRule[]", "Access" : "public", "Description" : "Returns a shallow copy of the collection. For a deep copy see Fit.Core.Clone(..).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection to copy" }] }, { "Container" : "Fit.Array", "Name" : "Count", "Returns" : "integer", "Access" : "public", "Description" : "Returns number of elements in collection", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array | HTMLCollection | NodeList | NamedNodeMap | FileList | StyleSheetList | CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection to count elements within" }] }, { "Container" : "Fit.Array", "Name" : "Count", "Returns" : "integer", "Access" : "public", "Description" : "Returns number of elements in object array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "obj", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object array to count elements within" }] }, { "Container" : "Fit.Array", "Name" : "CustomRecurse", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to provided callback.\nCallback is expected to return any children supposed to be iterated too, or Null\nif further/deeper iteration is not required.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "$Type[]", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:$Type) => $Type[] | null | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nFunction must return children collection to continue recursive operation,\nor Null (or nothing) to stop further processing." }] }, { "Container" : "Fit.Array", "Name" : "CustomRecurse", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to provided callback.\nCallback is expected to return any children supposed to be iterated too, or Null\nif further/deeper iteration is not required.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "HTMLCollection", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:HTMLElement) => HTMLCollection | HTMLElement[] | null | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nFunction must return children collection to continue recursive operation,\nor Null (or nothing) to stop further processing." }] }, { "Container" : "Fit.Array", "Name" : "CustomRecurse", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to provided callback.\nCallback is expected to return any children supposed to be iterated too, or Null\nif further/deeper iteration is not required.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "NodeList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:Node) => NodeList | Node[] | null | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nFunction must return children collection to continue recursive operation,\nor Null (or nothing) to stop further processing." }] }, { "Container" : "Fit.Array", "Name" : "CustomRecurse", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to provided callback.\nCallback is expected to return any children supposed to be iterated too, or Null\nif further/deeper iteration is not required.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "NamedNodeMap[]", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:Attr) => NamedNodeMap | Attr[] | null | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nFunction must return children collection to continue recursive operation,\nor Null (or nothing) to stop further processing." }] }, { "Container" : "Fit.Array", "Name" : "CustomRecurse", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to provided callback.\nCallback is expected to return any children supposed to be iterated too, or Null\nif further/deeper iteration is not required.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "FileList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:File) => FileList | File[] | null | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nFunction must return children collection to continue recursive operation,\nor Null (or nothing) to stop further processing." }] }, { "Container" : "Fit.Array", "Name" : "CustomRecurse", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to provided callback.\nCallback is expected to return any children supposed to be iterated too, or Null\nif further/deeper iteration is not required.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "StyleSheetList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:StyleSheet) => StyleSheetList | StyleSheet[] | null | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nFunction must return children collection to continue recursive operation,\nor Null (or nothing) to stop further processing." }] }, { "Container" : "Fit.Array", "Name" : "CustomRecurse", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to provided callback.\nCallback is expected to return any children supposed to be iterated too, or Null\nif further/deeper iteration is not required.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:CSSRule) => CSSRuleList | CSSRule[] | null | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nFunction must return children collection to continue recursive operation,\nor Null (or nothing) to stop further processing." }] }, { "Container" : "Fit.Array", "Name" : "ForEach", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether iteration was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "$Type[]", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:$Type) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "ForEach", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether iteration was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "HTMLCollection", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:HTMLElement) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "ForEach", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether iteration was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "NodeList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:Node) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "ForEach", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether iteration was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "NamedNodeMap", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:Attr) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "ForEach", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether iteration was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "FileList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:File) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "ForEach", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether iteration was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "StyleSheetList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:StyleSheet) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "ForEach", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether iteration was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:CSSRule) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "ForEach", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether iteration was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "object[]", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "callback", "Type" : "(obj:object) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "ForEach", "Returns" : "boolean", "Access" : "public", "Description" : "Iterates through object properties and passes each property name to the provided callback function.\nReturns boolean indicating whether iteration was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "obj", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object containing properties to iterate through" }, { "Name" : "callback", "Type" : "(key:string) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting properties from the object, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "GetIndex", "Returns" : "integer", "Access" : "public", "Description" : "Returns index of object in collection if found, otherwise a value of -1 is returned", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array | HTMLCollection | NodeList | NamedNodeMap | FileList | StyleSheetList | CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection to search through" }, { "Name" : "obj", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to obtain index for" }] }, { "Container" : "Fit.Array", "Name" : "GetKeys", "Returns" : "integer[]", "Access" : "public", "Description" : "Returns all keys in collection (indices) - 0, 1, 2, 3, ...", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array | HTMLCollection | NodeList | NamedNodeMap | FileList | StyleSheetList | CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection to get keys from" }] }, { "Container" : "Fit.Array", "Name" : "GetKeys", "Returns" : "string[]", "Access" : "public", "Description" : "Returns all keys (property names) in object", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "obj", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to get keys from" }] }, { "Container" : "Fit.Array", "Name" : "HasItems", "Returns" : "boolean", "Access" : "public", "Description" : "Returns True if collection has items, otherwise False", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array | HTMLCollection | NodeList | NamedNodeMap | FileList | StyleSheetList | CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection to investigate" }] }, { "Container" : "Fit.Array", "Name" : "HasItems", "Returns" : "boolean", "Access" : "public", "Description" : "Returns True if object array has items, otherwise False", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "obj", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object array to investigate" }] }, { "Container" : "Fit.Array", "Name" : "Insert", "Returns" : "", "Access" : "public", "Description" : "Insert object into array at specified index", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array", "Default" : "", "Nullable" : false, "Description" : "Array into which object is inserted" }, { "Name" : "idx", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Index to insert object at" }, { "Name" : "obj", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to insert into array" }] }, { "Container" : "Fit.Array", "Name" : "Join", "Returns" : "string", "Access" : "public", "Description" : "Join objects from a collection into a string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "$Type[]", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects" }, { "Name" : "separator", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String used to glue values together" }, { "Name" : "callback", "Type" : "(obj:$Type) => string", "Default" : "", "Nullable" : false, "Description" : "Callback returning string representation of objects passed from collection in turn" }] }, { "Container" : "Fit.Array", "Name" : "Join", "Returns" : "string", "Access" : "public", "Description" : "Join objects from a collection into a string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "HTMLCollection", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects" }, { "Name" : "separator", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String used to glue values together" }, { "Name" : "callback", "Type" : "(obj:HTMLElement) => string", "Default" : "", "Nullable" : false, "Description" : "Callback returning string representation of objects passed from collection in turn" }] }, { "Container" : "Fit.Array", "Name" : "Join", "Returns" : "string", "Access" : "public", "Description" : "Join objects from a collection into a string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "NodeList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects" }, { "Name" : "separator", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String used to glue values together" }, { "Name" : "callback", "Type" : "(obj:Node) => string", "Default" : "", "Nullable" : false, "Description" : "Callback returning string representation of objects passed from collection in turn" }] }, { "Container" : "Fit.Array", "Name" : "Join", "Returns" : "string", "Access" : "public", "Description" : "Join objects from a collection into a string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "NamedNodeMap", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects" }, { "Name" : "separator", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String used to glue values together" }, { "Name" : "callback", "Type" : "(obj:Attr) => string", "Default" : "", "Nullable" : false, "Description" : "Callback returning string representation of objects passed from collection in turn" }] }, { "Container" : "Fit.Array", "Name" : "Join", "Returns" : "string", "Access" : "public", "Description" : "Join objects from a collection into a string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "FileList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects" }, { "Name" : "separator", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String used to glue values together" }, { "Name" : "callback", "Type" : "(obj:File) => string", "Default" : "", "Nullable" : false, "Description" : "Callback returning string representation of objects passed from collection in turn" }] }, { "Container" : "Fit.Array", "Name" : "Join", "Returns" : "string", "Access" : "public", "Description" : "Join objects from a collection into a string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "StyleSheetList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects" }, { "Name" : "separator", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String used to glue values together" }, { "Name" : "callback", "Type" : "(obj:StyleSheet) => string", "Default" : "", "Nullable" : false, "Description" : "Callback returning string representation of objects passed from collection in turn" }] }, { "Container" : "Fit.Array", "Name" : "Join", "Returns" : "string", "Access" : "public", "Description" : "Join objects from a collection into a string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects" }, { "Name" : "separator", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String used to glue values together" }, { "Name" : "callback", "Type" : "(obj:CSSRule) => string", "Default" : "", "Nullable" : false, "Description" : "Callback returning string representation of objects passed from collection in turn" }] }, { "Container" : "Fit.Array", "Name" : "Merge", "Returns" : "($TypeA | $TypeB)[]", "Access" : "public", "Description" : "Merge/join two arrays", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr1", "Type" : "$TypeA[]", "Default" : "", "Nullable" : false, "Description" : "Array 1 to merge with array 2" }, { "Name" : "arr2", "Type" : "$TypeB[]", "Default" : "", "Nullable" : false, "Description" : "Array 2 to merge with array 1" }] }, { "Container" : "Fit.Array", "Name" : "Move", "Returns" : "", "Access" : "public", "Description" : "Move object within array from one position to another", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array", "Default" : "", "Nullable" : false, "Description" : "Array to manipulate" }, { "Name" : "fromIdx", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Position of object to move" }, { "Name" : "ToIdx", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "New object position" }] }, { "Container" : "Fit.Array", "Name" : "Recurse", "Returns" : "boolean", "Access" : "public", "Description" : "Recursively iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether recursion was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "$Type[]", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "childrenProperty", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Name of property or argumentless getter function returning children (e.g. \"Children\" or \"GetChildren\")" }, { "Name" : "callback", "Type" : "(obj:$Type) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "Recurse", "Returns" : "boolean", "Access" : "public", "Description" : "Recursively iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether recursion was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "HTMLCollection", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "childrenProperty", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Name of property or argumentless getter function returning children (e.g. \"Children\" or \"GetChildren\")" }, { "Name" : "callback", "Type" : "(obj:HTMLElement) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "Recurse", "Returns" : "boolean", "Access" : "public", "Description" : "Recursively iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether recursion was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "NodeList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "childrenProperty", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Name of property or argumentless getter function returning children (e.g. \"Children\" or \"GetChildren\")" }, { "Name" : "callback", "Type" : "(obj:Node) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "Recurse", "Returns" : "boolean", "Access" : "public", "Description" : "Recursively iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether recursion was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "NamedNodeMap", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "childrenProperty", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Name of property or argumentless getter function returning children (e.g. \"Children\" or \"GetChildren\")" }, { "Name" : "callback", "Type" : "(obj:Attr) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "Recurse", "Returns" : "boolean", "Access" : "public", "Description" : "Recursively iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether recursion was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "FileList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "childrenProperty", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Name of property or argumentless getter function returning children (e.g. \"Children\" or \"GetChildren\")" }, { "Name" : "callback", "Type" : "(obj:File) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "Recurse", "Returns" : "boolean", "Access" : "public", "Description" : "Recursively iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether recursion was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "StyleSheetList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "childrenProperty", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Name of property or argumentless getter function returning children (e.g. \"Children\" or \"GetChildren\")" }, { "Name" : "callback", "Type" : "(obj:StyleSheet) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "Recurse", "Returns" : "boolean", "Access" : "public", "Description" : "Recursively iterates through objects in collection and passes each object to the provided callback function.\nReturns boolean indicating whether recursion was carried through (True) or interrupted (False).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection containing objects to iterate through" }, { "Name" : "childrenProperty", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Name of property or argumentless getter function returning children (e.g. \"Children\" or \"GetChildren\")" }, { "Name" : "callback", "Type" : "(obj:CSSRule) => boolean | void", "Default" : "", "Nullable" : false, "Description" : "Callback function accepting objects from the collection, passed in turn.\nReturn False from callback to break loop." }] }, { "Container" : "Fit.Array", "Name" : "Remove", "Returns" : "", "Access" : "public", "Description" : "Remove object from array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array", "Default" : "", "Nullable" : false, "Description" : "Array from which object is remove" }, { "Name" : "obj", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to remove from array" }] }, { "Container" : "Fit.Array", "Name" : "RemoveAt", "Returns" : "", "Access" : "public", "Description" : "Remove object from array at specified index", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "arr", "Type" : "array", "Default" : "", "Nullable" : false, "Description" : "Array from which object is remove" }, { "Name" : "idx", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Object index in array" }] }, { "Container" : "Fit.Array", "Name" : "ToArray", "Returns" : "HTMLElement[]", "Access" : "public", "Description" : "Convert collection to a traditional JavaScript array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "coll", "Type" : "HTMLCollection", "Default" : "", "Nullable" : false, "Description" : "Collection to convert to array" }] }, { "Container" : "Fit.Array", "Name" : "ToArray", "Returns" : "Node[]", "Access" : "public", "Description" : "Convert collection to a traditional JavaScript array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "coll", "Type" : "NodeList", "Default" : "", "Nullable" : false, "Description" : "Collection to convert to array" }] }, { "Container" : "Fit.Array", "Name" : "ToArray", "Returns" : "Attr[]", "Access" : "public", "Description" : "Convert collection to a traditional JavaScript array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "coll", "Type" : "NamedNodeMap", "Default" : "", "Nullable" : false, "Description" : "Collection to convert to array" }] }, { "Container" : "Fit.Array", "Name" : "ToArray", "Returns" : "File[]", "Access" : "public", "Description" : "Convert collection to a traditional JavaScript array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "coll", "Type" : "FileList", "Default" : "", "Nullable" : false, "Description" : "Collection to convert to array" }] }, { "Container" : "Fit.Array", "Name" : "ToArray", "Returns" : "StyleSheet[]", "Access" : "public", "Description" : "Convert collection to a traditional JavaScript array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "coll", "Type" : "StyleSheetList", "Default" : "", "Nullable" : false, "Description" : "Collection to convert to array" }] }, { "Container" : "Fit.Array", "Name" : "ToArray", "Returns" : "CSSRule[]", "Access" : "public", "Description" : "Convert collection to a traditional JavaScript array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "coll", "Type" : "CSSRuleList", "Default" : "", "Nullable" : false, "Description" : "Collection to convert to array" }] }, { "Container" : "Fit.Array", "Name" : "ToArray", "Returns" : "$Type[]", "Access" : "public", "Description" : "Copy array to a new array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "coll", "Type" : "$Type[]", "Default" : "", "Nullable" : false, "Description" : "Array to copy to a new array" }] }, { "Container" : "Fit.Browser", "Name" : "GetBrowser", "Returns" : "\"Edge\" | \"Chrome\" | \"Safari\" | \"MSIE\" | \"Firefox\" | \"Opera\" | \"Unknown\"", "Access" : "public", "Description" : "Returns name of browser useful for adjusting behaviour based on render engine.\nPossible values are: Chrome (both WebKit and Blink based - also returned for modern versions of\nOpera and Edge), Safari (also returned for Edge, Chrome, Opera, and Firefox on iOS), Edge (version 12-18),\nMSIE (version 8-11), Firefox, Opera (version 1-12), and Unknown.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "returnAppId", "Type" : "false", "Default" : "false", "Nullable" : false, "Description" : "Set True to have app specific identifier returned" }] }, { "Container" : "Fit.Browser", "Name" : "GetBrowser", "Returns" : "\"Edge\" | \"Chrome\" | \"Safari\" | \"MSIE\" | \"Firefox\" | \"Opera\" | \"Unknown\"", "Access" : "public", "Description" : "Returns browser app name useful for adjusting behaviour based on actual\napplication, regardless of render engine and platform. Possible values are:\nChrome (both Webkit and Blink based), Safari, Edge (both legacy and modern),\nMSIE (version 8-11), Firefox, Opera (both legacy and modern), and Unknown.\nBe careful not to check against browser app name and app version alone.\nFor instance Opera 3 on a touch device is newer than Opera 60 on a Desktop\ndevice, as they are two completely different browsers. Check whether the browser runs on\na tablet or phone using e.g. Fit.Browser.IsMobile(true) or Fit.Browser.GetInfo(true).IsMobile.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "returnAppId", "Type" : "true", "Default" : "", "Nullable" : false, "Description" : "Set True to have app specific identifier returned" }] }, { "Container" : "Fit.Browser", "Name" : "GetComputedStyle", "Returns" : "string | null", "Access" : "public", "Description" : "Get style value applied after stylesheets have been loaded.\nAn empty string or null may be returned if style has not been defined or does not exist.\nMake sure not to use shorthand properties (e.g. border-color or padding) as some browsers are\nnot capable of calculating these - use the fully qualified property name (e.g. border-left-color\nor padding-left).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element which contains desired CSS style value" }, { "Name" : "style", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "CSS style property name" }] }, { "Container" : "Fit.Browser", "Name" : "GetInfo", "Returns" : "Fit.BrowserTypeDefs.BrowserInfo", "Access" : "public", "Description" : "Returns cached object with browser information", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "returnAppInfo", "Type" : "false", "Default" : "false", "Nullable" : false, "Description" : "Set True to have app specific browser information returned - see GetBrowser(..) for details" }] }, { "Container" : "Fit.Browser", "Name" : "GetInfo", "Returns" : "Fit.BrowserTypeDefs.BrowserAppInfo", "Access" : "public", "Description" : "Returns cached object with browser app information", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "returnAppInfo", "Type" : "true", "Default" : "", "Nullable" : false, "Description" : "Set True to have app specific browser information returned - see GetBrowser(..) for details" }] }, { "Container" : "Fit.Browser", "Name" : "GetLanguage", "Returns" : "string", "Access" : "public", "Description" : "Returns browser language - e.g. \"da\" (Danish), \"en\" (English) etc.", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Browser", "Name" : "GetPageHeight", "Returns" : "integer", "Access" : "public", "Description" : "Returns page height in pixels", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Browser", "Name" : "GetPageWidth", "Returns" : "integer", "Access" : "public", "Description" : "Returns page width in pixels", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Browser", "Name" : "GetQueryString", "Returns" : "Fit.BrowserTypeDefs.QueryString", "Access" : "public", "Description" : "Returns query string information", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "alternativeUrl", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Alternative URL to parse" }] }, { "Container" : "Fit.Browser", "Name" : "GetScreenDimensions", "Returns" : "Fit.TypeDefs.Dimension", "Access" : "public", "Description" : "Returns object with Width and Height properties specifying screen dimensions", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "onlyAvailable", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to return only available space (may be reduced by e.g. Start menu (Windows) or Dock (Linux/OSX)" }] }, { "Container" : "Fit.Browser", "Name" : "GetScreenHeight", "Returns" : "integer", "Access" : "public", "Description" : "Get screen height", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "onlyAvailable", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to return only available space (may be reduced by e.g. start menu (Windows) or Dock (Linux/OSX)" }] }, { "Container" : "Fit.Browser", "Name" : "GetScreenWidth", "Returns" : "integer", "Access" : "public", "Description" : "Get screen width", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "onlyAvailable", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to return only available space (may be reduced by e.g. start menu (Windows) or Dock (Linux/OSX)" }] }, { "Container" : "Fit.Browser", "Name" : "GetScrollBars", "Returns" : "Fit.TypeDefs.ScrollBarsPresent", "Access" : "public", "Description" : "Get information about scrollbars in viewport.\nReturns an object with Vertical and Horizontal properties, each containing\nEnabled and Size properties, which can be used to determine whether scrolling is enabled,\nand the size of the scrollbar. The size remains 0 when scrolling is not enabled.\nTo determine whether a DOM element has scrolling enabled, use Fit.Dom.GetScrollBars(..).", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Browser", "Name" : "GetScrollBarSize", "Returns" : "integer", "Access" : "public", "Description" : "Get thickness of browser scrollbars. The function works even when\nno scrollbars are currently present. For browsers and operating systems\nhiding scrollbars for scrollable objects, the value returned will be 0 (zero).", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Browser", "Name" : "GetScrollDocument", "Returns" : "DOMElement", "Access" : "public", "Description" : "Get scrolling document element. This is the cross browser\nequivalent of document.scrollingElement.", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Browser", "Name" : "GetScrollPosition", "Returns" : "Fit.TypeDefs.Position", "Access" : "public", "Description" : "Returns object with X and Y properties specifying scroll position", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Browser", "Name" : "GetVersion", "Returns" : "integer", "Access" : "public", "Description" : "Returns major version number for known browsers, -1 for unknown browsers", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "returnAppVersion", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to have app specific version number returned, rather than version number of browser engine.\nIf version number is used in combination with the result from Fit.Browser.GetBrowser(true), then\nthis argument should be True as well, otherwise False (default)." }] }, { "Container" : "Fit.Browser", "Name" : "GetViewPortDimensions", "Returns" : "Fit.TypeDefs.Dimension", "Access" : "public", "Description" : "Returns object with Width and Height properties specifying dimensions of viewport", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "includeScrollbars", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Include scrollbars if present to get all potential space available if scrollbars are removed." }] }, { "Container" : "Fit.Browser", "Name" : "IsMobile", "Returns" : "boolean", "Access" : "public", "Description" : "Returns value indicating whether device is a mobile device or not.\nNotice that some phones and tablets may identify as desktop devices,\nin which case IsMobile(..) will return False. In this case consider\nusing Fit.Browser.IsTouchEnabled(), e.g. in combination with\nFit.Browser.GetBrowser(), or a check against the size of the viewport,\nwhich will provide some indication as to whether device should be treated\nas a mobile device or not. As an example, Safari on iPad identifies as\na Mac computer by default (it has \"Request Desktop Website\" enabled by default).\nTo always detect iPad and iPhone as a mobile device, no matter the configuration\nof \"Request Desktop Website\"), simply use:\nvar isMobile = Fit.Browser.IsMobile(true) || (Fit.Browser.GetBrowser() === \"Safari\" && Fit.Browser.IsTouchEnabled())\nWe will not be able to distinguish between an iPhone and an iPad though, not even\nby looking at the viewport size, since this approach is unreliable with high resolution\niPhones and support for split screen which affects the viewport size.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "includeTablets", "Type" : "boolean", "Default" : "true", "Nullable" : false, "Description" : "Value indicating whether tablets are considered mobile devices or not" }] }, { "Container" : "Fit.Browser", "Name" : "IsStorageSupported", "Returns" : "boolean", "Access" : "public", "Description" : "Returns value indicating whether Session and Local storage is supported or not", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Browser", "Name" : "IsTouchEnabled", "Returns" : "boolean", "Access" : "public", "Description" : "Returns value indicating whether device is touch enabled or not", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Browser", "Name" : "Log", "Returns" : "", "Access" : "public", "Description" : "Log message or object", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "msg", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Message or object to log" }] }, { "Container" : "Fit.Browser", "Name" : "LogDeprecated", "Returns" : "", "Access" : "public", "Description" : "Log message about use of deprecated feature", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "msg", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Message to log" }] }, { "Container" : "Fit.Browser", "Name" : "ParseUrl", "Returns" : "Fit.BrowserTypeDefs.ParsedUrl", "Access" : "public", "Description" : "Parses well-formed URLs and returns an object containing the various components.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "url", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Well-formed URL to parse" }] }, { "Container" : "Fit.Color", "Name" : "HexToRgb", "Returns" : "string", "Access" : "public", "Description" : "Convert HEX color string into RGB color string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "hex", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "HEX color string, e.g. #C0C0C0 (hash symbol is optional)" }] }, { "Container" : "Fit.Color", "Name" : "IsHex", "Returns" : "boolean", "Access" : "public", "Description" : "Returns True if value is a valid HEX color value, otherwise False", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value to validate" }] }, { "Container" : "Fit.Color", "Name" : "IsRgb", "Returns" : "boolean", "Access" : "public", "Description" : "Returns True if value is a valid RGB(A) color value, otherwise False", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value to validate" }] }, { "Container" : "Fit.Color", "Name" : "ParseHex", "Returns" : "Fit.ColorTypeDefs.RgbColor", "Access" : "public", "Description" : "Convert HEX color string into RGB color object, e.g. { Red: 150, Green: 30, Blue: 185 }", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "hex", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "HEX color string, e.g. #C0C0C0 (hash symbol is optional)" }] }, { "Container" : "Fit.Color", "Name" : "ParseRgb", "Returns" : "Fit.ColorTypeDefs.RgbaColor", "Access" : "public", "Description" : "Parses RGB(A) string and turns result into a RGB(A) color object, e.g. { Red: 100, Green: 100, Blue: 100, Alpha: 0.3 }.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "RGB(A) color string, e.g. rgba(100, 100, 100, 0.3) or simply 100,100,200,0.3" }] }, { "Container" : "Fit.Color", "Name" : "RgbToHex", "Returns" : "string", "Access" : "public", "Description" : "Convert RGB colors into HEX color string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "r", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Color index for red" }, { "Name" : "g", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Color index for green" }, { "Name" : "b", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Color index for blue" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Alert", "Returns" : "Fit.Controls.DialogInterface", "Access" : "public", "Description" : "Display alert dialog", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "content", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Content to display in alert dialog" }, { "Name" : "cb", "Type" : "function", "Default" : "undefined", "Nullable" : false, "Description" : "Optional callback function invoked when OK button is clicked" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Confirm", "Returns" : "Fit.Controls.DialogInterface", "Access" : "public", "Description" : "Display confirmation dialog with OK and Cancel buttons", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "content", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Content to display in confirmation dialog" }, { "Name" : "cb", "Type" : "Fit.Controls.DialogTypeDefs.ConfirmCallback", "Default" : "", "Nullable" : false, "Description" : "Callback function invoked when a button is clicked.\nTrue is passed to callback function when OK is clicked, otherwise False." }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Prompt", "Returns" : "Fit.Controls.DialogInterface", "Access" : "public", "Description" : "Display prompt dialog that allows for user input", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "content", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Content to display in prompt dialog" }, { "Name" : "defaultValue", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Default value in input field" }, { "Name" : "cb", "Type" : "Fit.Controls.DialogTypeDefs.PromptCallback", "Default" : "undefined", "Nullable" : false, "Description" : "Callback function invoked when OK or Cancel button is clicked.\nValue entered in input field is passed, null if prompt is canceled." }] }, { "Container" : "Fit.Controls", "Name" : "DirtyCheckAll", "Returns" : "boolean", "Access" : "public", "Description" : "Check dirty state for all controls - either all controls on page, or within specified scope.\nReturns True if one or more controls are dirty, otherwise False.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "scope", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, dirty check controls only within this scope.\nSee Fit.Controls.ControlBase.Scope(..)\nfor details on configurering scoped validation." }] }, { "Container" : "Fit.Controls", "Name" : "Find", "Returns" : "Fit.Controls.Component | null", "Access" : "public", "Description" : "Get control by unique Control ID - returns Null if not found", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "id", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Unique Control ID" }] }, { "Container" : "Fit.Controls", "Name" : "Find", "Returns" : "$ExpectedControlType | null", "Access" : "public", "Description" : "Get control by unique Control ID - returns Null if not found", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "id", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Unique Control ID" }, { "Name" : "expectedType", "Type" : "$ExpectedControlType", "Default" : "", "Nullable" : false, "Description" : "For development environments supporting JSDoc and generics (e.g. VSCode), make Find(..) return found component\nas specified type. For instance to return a type as Fit.Controls.DropDown, specify Fit.Controls.DropDown.prototype." }] }, { "Container" : "Fit.Controls", "Name" : "ValidateAll", "Returns" : "boolean", "Access" : "public", "Description" : "Validate all controls - either all controls on page, or within specified scope.\nReturns True if all controls contain valid values, otherwise False.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "scope", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, validate controls only within this scope.\nSee Fit.Controls.ControlBase.Scope(..)\nfor details on configurering scoped validation." }] }, { "Container" : "Fit.Cookies", "Name" : "Get", "Returns" : "string | null", "Access" : "public", "Description" : "Returns cookie value if found, otherwise Null", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "name", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Unique cookie name" }] }, { "Container" : "Fit.Cookies", "Name" : "Remove", "Returns" : "", "Access" : "public", "Description" : "Remove cookie", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "name", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Unique cookie name" }, { "Name" : "path", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Optional cookie path.\nIf cookie was defined on a custom path, the\nsame path must be specified to remove the cookie." }, { "Name" : "domain", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Optional cookie domain.\nIf cookie was defined on a specific domain, the\nsame domain must be specified to remove the cookie." }] }, { "Container" : "Fit.Cookies", "Name" : "Remove", "Returns" : "", "Access" : "public", "Description" : "Remove cookie", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "cookie", "Type" : "Fit.CookiesDefs.CookieIdentity", "Default" : "", "Nullable" : false, "Description" : "Cookie to remove" }] }, { "Container" : "Fit.Cookies", "Name" : "Set", "Returns" : "", "Access" : "public", "Description" : "Create or update cookie", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "name", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Unique cookie name" }, { "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Cookie value (cannot contain semicolon!)" }, { "Name" : "seconds", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "Optional expiration time in seconds. Creating a cookie with\nno expiration time will cause it to expire when session ends." }, { "Name" : "path", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Optional cookie path.\nSpecifying no path makes cookie accessible to entire domain.\nSpecifying a path makes the cookie accessible to that particular path only.\nHowever, this is not a security feature! A page can read cookies from any path\nby creating an iframe with the path of the cookies, and read them through\nthe iframe's contentDocument.cookie property." }, { "Name" : "domain", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Optional cookie domain.\nNot specifying a domain restricts the cookie to the host portion of the page currently loaded.\nSpecifying a domain makes the cookies accessible to the domain and subdomains.\nIt is not possible to specify a foreign domain name - this will be silently ignored.\nExample: domain.com or sub.domain.com" }, { "Name" : "sameSite", "Type" : "\"None\" | \"Lax\" | \"Strict\"", "Default" : "undefined", "Nullable" : false, "Description" : "Optional Same-Site policy determining whether to accept cookie and send it along with HTTP requests.\nDifferent browsers (and versions) default to different values/behaviour, and a lot of different versions\nare known to incorrectly handle SameSite, so don't expect this to work reliably across browsers.\nSome browers may even work differently across platforms, despite being the same version, such as Safari on macOS and iOS.\nFurthermore the behaviour may vary depending on browser configuration (configuration flags).\nSee https://www.chromium.org/updates/same-site/incompatible-clients\nand https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite#browser_compatibility\nand https://caniuse.com/same-site-cookie-attribute\nNone = Cookie is included with cross-site requests, but only when Secure is True.\nLax = Cookie is included with all types of Same-Site requests, but only for top-level\nnavigation for cross-site requests (GET/HEAD requests only, and only in main window/frame).\nStrict = Cookie is included with all types of Same-Site requests, never for cross-site requests.\nMore recent versions of Chrome (and Chrome based browsers) default to Lax." }, { "Name" : "secure", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "Optional flag determining whether to accept and send along cookie on secure connections only." }] }, { "Container" : "Fit.Cookies", "Name" : "Set", "Returns" : "", "Access" : "public", "Description" : "Create or update cookie", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "newCookie", "Type" : "Fit.CookiesDefs.Cookie", "Default" : "", "Nullable" : false, "Description" : "New or updated cookie" }] }, { "Container" : "Fit.Core", "Name" : "Clone", "Returns" : "$ObjectType", "Access" : "public", "Description" : "Clone JavaScript object. Supported object types and values:\nString, Number, Boolean, Date, Array, (JSON) Object, Function, Undefined, Null, NaN,\nInfinity.\nVariables defined as undefined are left out of clone,\nsince an undefined variable is equal to a variable defined as undefined.\nNotice that Arrays and Objects can contain supported object types and values only.\nFunctions are considered references, and as such the cloned object will reference\nthe same functions.\nCustom properties set on native JS objects (e.g. Array.XYZ) are not cloned, only\nvalues are. Naturally custom (JSON) objects will be fully cloned, including all\nproperties. Both arrays and custom (JSON) objects are cloned recursively.\nBe aware of self referencing variables and circular structures, which\nwill cause an infinite loop, and eventually a stack overflow exception.\nDOM objects and window/frame instances are not supported.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "obj", "Type" : "$ObjectType", "Default" : "", "Nullable" : false, "Description" : "JS object to clone" }] }, { "Container" : "Fit.Core", "Name" : "CreateDebouncer", "Returns" : "Fit.CoreTypeDefs.DebounceFunction", "Access" : "public", "Description" : "Create a debouncing function that delays execution the specified number of milliseconds.\nInvoking function multiple times merely postpone execution the specified number of milliseconds.\nThis can greatly increase performance for expensive operations invoked often.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "func", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Reference to function to invoke" }, { "Name" : "timeout", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Number of milliseconds to postpone execution" }, { "Name" : "thisArg", "Type" : "any", "Default" : "undefined", "Nullable" : false, "Description" : "The value 'this' resolves to within debounced function" }] }, { "Container" : "Fit.Core", "Name" : "CreateOverride", "Returns" : "function", "Access" : "public", "Description" : "Create a function override for any given function using the approach below.\n\nthis.SayHello = function(name) { alert(\"Hello \" + name); }\nthis.SayHello = Fit.Core.CreateOverride(this.SayHello, function(name)\n{\nconsole.log(name + \" logged in\");\nconsole.log(name + \" is using the following browser: \" + navigator.userAgent);\n\nbase(name); // Call original SayHello function\n});\n\nNotice how base(..) allows us to call the original function.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "originalFunction", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Reference to function to override" }, { "Name" : "newFunction", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Reference to replacement function" }] }, { "Container" : "Fit.Core", "Name" : "Extend", "Returns" : "object", "Access" : "public", "Description" : "Extend any object with the public members of a super class.\n\nMyClass = function(controlId)\n{\n     Fit.Core.Extend(this, MySuperClass).Apply();\n}\n\nThe code above defines a class called MyClass which extends from MySuperClass.\nUse Apply() to pass variables to the super class constructor as shown below:\n\nMale = function(name, age)\n{\n     Fit.Core.Extend(this, Person).Apply(\"Male\", name, age);\n}\n\nNotice that calling just Extend(..) without calling Apply() on the object returned,\nwill not cause extension to occure. Apply() must be called, with or without parameters.\n\nNotice that Fit.UI supports multiple inheritance. Be careful not to extend from multiple\nclasses implementing functions with identical names, or at least be aware that the last\nclass from which the derivative extends, takes precedence.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "subInstance", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Instance of sub class to extend" }, { "Name" : "superType", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Class (function) to extend from" }] }, { "Container" : "Fit.Core", "Name" : "Extends", "Returns" : "boolean", "Access" : "public", "Description" : "Returns boolean indicating whether given object is an extension of a given super type - see Fit.Core.Extend(..).\nAlso look into Fit.Core.InstanceOf(..) which may provide the desired behaviour.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "instance", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object instance" }, { "Name" : "superType", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Reference to super class (function)" }] }, { "Container" : "Fit.Core", "Name" : "InstanceOf", "Returns" : "boolean", "Access" : "public", "Description" : "Returns boolean indicating whether given object is an instance or extension of a given class type - see Fit.Core.Extend(..).\nThis is equivalent of: var result = (obj instanceof MyType || Fit.Core.Extends(obj, MyType));", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "instance", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object instance" }, { "Name" : "type", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Reference to class (function)" }] }, { "Container" : "Fit.Core", "Name" : "IsEqual", "Returns" : "boolean", "Access" : "public", "Description" : "Compare two JavaScript objects to determine whether they are identical.\nReturns True if objects are identical (equal), otherwise False.\nFunctions are compared by reference, not by value.\nCustom properties set on native JS objects (e.g. Array.XYZ) are not compared, only\nvalues are. Naturally JSON objects will be fully compared, including all properties.\nBe aware of self referencing variables and circular structures, which\nwill cause an infinite loop, and eventually a stack overflow exception.\nDOM objects and window/frame instances are not supported.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "jsObj1", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "JS object to compare agains second JS object" }, { "Name" : "jsObj2", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "JS object to compare agains first JS object" }] }, { "Container" : "Fit.Core", "Name" : "Merge", "Returns" : "$ObjectTypeA + $ObjectTypeB", "Access" : "public", "Description" : "Deep merges two objects and returns the resulting object.\nTake notice of the behaviour and restriction of Fit.Core.Clone(..) since\nthe target object is first cloned using that function. The resulting object is\nthen enriched with the data from the merge object.\nProperty values on the merge object takes precedence over property values on the\ntarget object. Arrays are not merged but merely replaced if defined on the merge object.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "targetObject", "Type" : "$ObjectTypeA", "Default" : "", "Nullable" : false, "Description" : "Target object" }, { "Name" : "mergeObject", "Type" : "$ObjectTypeB", "Default" : "", "Nullable" : false, "Description" : "Merge object" }, { "Name" : "mergeObjectOverwriteBehaviour", "Type" : "Fit.Core.MergeOverwriteBehaviour", "Default" : "undefined", "Nullable" : false, "Description" : "Overwrite behaviour for merge object" }] }, { "Container" : "Fit.Data", "Name" : "Base64ToBlob", "Returns" : "", "Access" : "public", "Description" : "Converts base64 value into a blob", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "base64Data", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Base64 data to convert into a blob" }, { "Name" : "mimeType", "Type" : "string | null", "Default" : "", "Nullable" : false, "Description" : "Mime type such as image/png. If Null is passed, then mime\ntype will be extracted from base64 value if possible. If mime type\ncannot be determined, then application/octet-stream will be used." }, { "Name" : "async", "Type" : "boolean", "Default" : "", "Nullable" : false, "Description" : "Perform conversion asynchronously on supported browsers" }, { "Name" : "resolve", "Type" : "(result: { Success: boolean, Blob: Blob | null, Error: string | null }) => void", "Default" : "", "Nullable" : false, "Description" : "Function receiving blob once it is ready. Blob is null if an error occurred, in which case the Error property is set." }] }, { "Container" : "Fit.Data", "Name" : "CreateGuid", "Returns" : "string", "Access" : "public", "Description" : "Returns Version 4 compliant GUID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "dashFormat", "Type" : "boolean", "Default" : "true", "Nullable" : false, "Description" : "Flag indicating whether to use format with or without dashes.\nTrue = With dashes (default): 57df75f2-3d09-48ca-9c94-f64a5986518f (length = 36)\nFalse = Without dashes: 57df75f23d0948ca9c94f64a5986518f (length = 32)" }] }, { "Container" : "Fit.Date", "Name" : "Format", "Returns" : "string", "Access" : "public", "Description" : "Format instance of Date.\nExample: Fit.Date.Format(new Date(), \"YYYY-MM-DD hh:mm:ss\");\nResult: 2016-06-18 15:23:48\n\nDate can be formatted using the following variables:\nYYYY: 4 digits year (e.g. 2016)\nYY: 2 digits year (e.g. 16)\nMM: 2 digits month (e.g. 04)\nM: Prefer 1 digit month if possible (e.g. 4)\nDD: 2 digits day (e.g. 09)\nD: Prefer 1 digit day if possible (e.g. 9)\nW: 1 digit week number (e.g. 35)\nhh: 2 digits hours value (e.g. 08)\nh: 1 digit hours value if possible (e.g. 8)\nmm: 2 digits minutes value (e.g. 02)\nm: 1 digit minutes value if possible (e.g. 2)\nss: 2 digits seconds value (e.g. 05)\ns: 1 digit seconds value if possible (e.g. 5)", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "date", "Type" : "Date", "Default" : "", "Nullable" : false, "Description" : "Date to format as string" }, { "Name" : "format", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Date format" }] }, { "Container" : "Fit.Date", "Name" : "GetWeek", "Returns" : "integer", "Access" : "public", "Description" : "Get ISO 8601 week number from date", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "date", "Type" : "Date", "Default" : "", "Nullable" : false, "Description" : "Date to get week number from" }] }, { "Container" : "Fit.Date", "Name" : "Parse", "Returns" : "Date", "Access" : "public", "Description" : "Parse date as string into an instance of Date - example: 18-09/2016 17:03:21", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "strDate", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Date as string" }, { "Name" : "format", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Specify date format used to allow parser to determine which parts of the string\nis Year, Month, Day, etc. The same variables used for Fit.Date.Format\ncan be used, except for W (week).\nSince the parser do not need to know the length of the different parts that\nmakes up the Date, one can simply use the shorter variable format: Y, M, D, h, m, s.\nBe aware that the Parse function does not support a Year represented by a\n2 digit value, since it will be impossible to determine which century it belongs to.\nExample: D-M/Y h:m:s" }] }, { "Container" : "Fit.Dom", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Add element to container", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "container", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Add element to this container" }, { "Name" : "elm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element, Text, or Comment to add to container" }] }, { "Container" : "Fit.Dom", "Name" : "AddClass", "Returns" : "", "Access" : "public", "Description" : "Add CSS class to element if not already found", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element on which CSS class is to be added" }, { "Name" : "cls", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "CSS class name" }] }, { "Container" : "Fit.Dom", "Name" : "Attribute", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set attribute on DOMElement - returns Null if attribute does not exist", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOMElement to which attribute is set and/or returned from" }, { "Name" : "name", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Name of attribute to set or retrieve" }, { "Name" : "value", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, attribute is updated with specified value.\nPassing Null results in attribute being removed." }] }, { "Container" : "Fit.Dom", "Name" : "Contained", "Returns" : "boolean", "Access" : "public", "Description" : "Check whether given element is found in given container at any given level in object hierarchy", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "container", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Container expected to contain element" }, { "Name" : "elm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element expected to be found in container's object hierarchy" }] }, { "Container" : "Fit.Dom", "Name" : "CreateElement", "Returns" : "DOMNode", "Access" : "public", "Description" : "Create element with the specified HTML content.\nHTML content is (by default) wrapped in a &lt;div&gt; if it produced multiple elements.\nIf content on the other hand produces only one outer element, that particular element is returned.\nIt is possible to construct DOM objects of type Element, Text, and Comment.\nThe container type used to wrap multiple elements can be changed using the containerTagName argument.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "html", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "HTML element to create DOMElement from" }, { "Name" : "containerTagName", "Type" : "string", "Default" : "div", "Nullable" : false, "Description" : "If defined, and html argument produces multiple element, the result is wrapped in a container of\nthe specified type. If not set, multiple elements will be wrapped in a &lt;div&gt; container." }] }, { "Container" : "Fit.Dom", "Name" : "Data", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set data attribute on DOMElement - returns Null if data attribute does not exist", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOMElement to which data attribute is set and/or returned from" }, { "Name" : "name", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Name of data attribute to set or retrieve" }, { "Name" : "value", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, data attribute is updated with specified value.\nPassing Null results in data attribute being removed." }] }, { "Container" : "Fit.Dom", "Name" : "GetBoundingPosition", "Returns" : "Fit.TypeDefs.Position | null", "Access" : "public", "Description" : "Get position for visible element within viewport.\nObject returned contains an X and Y property\nwith the desired integer values (pixels).\nContrary to Fit.Dom.GetPosition(elm, true) which returns\nthe position to the margin edge, this function returns the\nposition of the element's border edge, and is the recommended\napproach.\nNull will be returned if element is not visible.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element to get position for" }] }, { "Container" : "Fit.Dom", "Name" : "GetComputedStyle", "Returns" : "string | null", "Access" : "public", "Description" : "Get style value applied after stylesheets have been loaded.\nAn empty string or null may be returned if style has not been defined or does not exist.\nMake sure not to use shorthand properties (e.g. border-color or padding) as some browsers are\nnot capable of calculating these - use the fully qualified property name (e.g. border-left-color\nor padding-left).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element which contains desired CSS style value" }, { "Name" : "style", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "CSS style property name" }] }, { "Container" : "Fit.Dom", "Name" : "GetConcealer", "Returns" : "DOMElement | null", "Access" : "public", "Description" : "Get container responsible for hiding given element.\nElement passed will be returned if hidden itself.\nReturns Null if element is visible, or has not been rooted in DOM yet.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to get concealer for" }] }, { "Container" : "Fit.Dom", "Name" : "GetDepth", "Returns" : "integer", "Access" : "public", "Description" : "Get number of levels specified element is nested in DOM.\nHTMLElement is at level 0, HTMLBodyElement is at level 1,\nfirst element in HTMLBodyElement is at level 2, and so forth.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to get depth in DOM for" }] }, { "Container" : "Fit.Dom", "Name" : "GetFocused", "Returns" : "DOMElement | null", "Access" : "public", "Description" : "Returns element currently focused. If no element is focused, the document body is returned.\nNull will be returned if the document has not been loaded yet.", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Dom", "Name" : "GetIndex", "Returns" : "integer", "Access" : "public", "Description" : "Get element position within parent element.\nNotice that Text and Comment nodes are ignored.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element to get index for" }] }, { "Container" : "Fit.Dom", "Name" : "GetInnerDimensions", "Returns" : "Fit.TypeDefs.Dimension", "Access" : "public", "Description" : "Returns object with Width and Height properties (integers) with inner dimensions of specified\ncontainer. Inner dimensions are width and height with padding and borders substracted.\nResult returned will be as expected no matter the box-sizing model being used.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element to get inner dimensions for" }] }, { "Container" : "Fit.Dom", "Name" : "GetOverflowingParent", "Returns" : "DOMElement | null", "Access" : "public", "Description" : "Get parent that has overflow set to auto, scroll, or hidden (hidden is optional).\nTo get the parent that actually affects the position of the element when scrolled,\nuse GetScrollParent(..) instead, as it may not be the first parent with overflow set.\nWhich parent affects the position of an element when scrolled depends on which element\nis the offsetParent - it might not be an element within the overflowing parent, or\nthe overflowing parent itself, which would be required to affect the element's position\nwhen the overflowing parent is scrolled.\nA scrollable container will only affect an element's position if it is statically positioned\nwithin the scrollable parent, or if it is positioned relative to another statically positioned element\nwithin the parent with overflow, or if the parent with overflow itself is positioned, which makes it the\noffsetParent, hence causing the element to scroll along.\nIn most cases GetScrollParent(..) will be the correct function to use.\nExceptions to this is when we also want to include overflow:hidden, or if we have an\nelement with position:absolute that is positioned relative to the document or an element\noutside of the overflowing/scrollable parent, and we still want a reference to the nearest\nparent with overflow set.\nReturns null if element passed is placed on its own stacking context with position:fixed.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element to get overflowing parent for" }, { "Name" : "scrollableOnly", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Flag indicating whether to only consider parents with overflow:auto or overflow:scroll.\nParents with overflow:hidden will be ignored. As such, only a parent with the ability to\nscroll overflowing content into view can be returned." }] }, { "Container" : "Fit.Dom", "Name" : "GetParentOfType", "Returns" : "DOMElement | null", "Access" : "public", "Description" : "Returns first parent of specified type for a given element if found, otherwise Null", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to find parent for" }, { "Name" : "parentType", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Tagname of parent element to look for" }] }, { "Container" : "Fit.Dom", "Name" : "GetPosition", "Returns" : "Fit.TypeDefs.Position | null", "Access" : "public", "Description" : "Get position for visible element.\nObject returned contains an X and Y property\nwith the desired integer values (pixels).\nThe position returned is where the margin edge\nstarts, if such is applied.\nNull will be returned if element is not visible.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element to get position for" }, { "Name" : "relativeToViewport", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to get element position relative to viewport rather than to document which may exceed the viewport.\nContrary to Fit.Dom.GetBoundingPosition(elm), the position returned is where the margin edge starts, if such is applied." }] }, { "Container" : "Fit.Dom", "Name" : "GetRelativePosition", "Returns" : "Fit.TypeDefs.Position | null", "Access" : "public", "Description" : "Get element position relative to a positioned parent or ancestor (offsetParent).\nCoordinates returned are relative to document if no positioned parent or ancestor is found.\nFor an element with position:fixed coordinates relative to the document is returned.\nObject returned contains an X and Y property with the desired integer values (pixels).\nNotice that Null is returned in case element is not rooted yet (added to DOM) or invisible.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element to get position for" }] }, { "Container" : "Fit.Dom", "Name" : "GetScrollBars", "Returns" : "Fit.TypeDefs.ScrollBarsPresent", "Access" : "public", "Description" : "Get information about scrollbars within a given DOM element.\nReturns an object with Vertical and Horizontal properties, each containing\nEnabled and Size properties, which can be used to determine whether scrolling is enabled,\nand the size of the scrollbar. The size remains 0 when scrolling is not enabled.\nTo determine whether the browser's viewport has scrolling enabled, use Fit.Browser.GetScrollBars().", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element to get scrollbar information for" }] }, { "Container" : "Fit.Dom", "Name" : "GetScrollDocument", "Returns" : "DOMElement", "Access" : "public", "Description" : "Get scrolling document element. This is the cross browser\nequivalent of document.scrollingElement.", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Dom", "Name" : "GetScrollParent", "Returns" : "DOMElement | null", "Access" : "public", "Description" : "Get element's scroll parent (parent that has overflow:auto or overflow:scroll,\nand that affects the position of the element if scrolled). This may not necessarily\nbe the first parent with overflow set - it also depends on the element's offsetParent.\nFor a parent to be considered the scroll parent, it must be scrollable, and the element\npassed to this function must be relatively positioned against this scroll parent, or\nrelatively positioned against an element within the scroll parent that is statically\npositioned, or in turn relatively positioned against the scroll parent.\nReturns null if element passed is placed on its own stacking context with position:fixed.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element to get scroll parent for" }] }, { "Container" : "Fit.Dom", "Name" : "GetScrollPosition", "Returns" : "Fit.TypeDefs.Position", "Access" : "public", "Description" : "Get number of pixels specified element's container(s)\nhave been scrolled. This gives us the total scroll value\nfor nested scrollable elements.\nObject returned contains an X and Y property with the desired integer values (pixels).", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to get scroll position for" }] }, { "Container" : "Fit.Dom", "Name" : "HasClass", "Returns" : "boolean", "Access" : "public", "Description" : "Check whether given DOMElement has specified CSS class registered - returns True if found, otherwise False", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element for which CSS class may be registered" }, { "Name" : "cls", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "CSS class name" }] }, { "Container" : "Fit.Dom", "Name" : "InsertAfter", "Returns" : "", "Access" : "public", "Description" : "Insert DOMNode after another DOMNode", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "target", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to insert new element after" }, { "Name" : "newElm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to insert after target element" }] }, { "Container" : "Fit.Dom", "Name" : "InsertAt", "Returns" : "", "Access" : "public", "Description" : "Insert DOMNode at given position.\nNotice that position is relative to contained DOM Elements.\nText and Comment nodes are ignored.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "container", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Container to insert element into" }, { "Name" : "position", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Position (index) to insert element at" }, { "Name" : "newElm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to insert" }] }, { "Container" : "Fit.Dom", "Name" : "InsertBefore", "Returns" : "", "Access" : "public", "Description" : "Insert DOMNode before another DOMNode", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "target", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to insert new element before" }, { "Name" : "newElm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to insert before target element" }] }, { "Container" : "Fit.Dom", "Name" : "IsRooted", "Returns" : "boolean", "Access" : "public", "Description" : "Returns True if element is rooted in document (appended to body), otherwise False", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to check" }] }, { "Container" : "Fit.Dom", "Name" : "IsVisible", "Returns" : "boolean", "Access" : "public", "Description" : "Check whether given element is visible. Returns True if element has been rooted\nin DOM and is visible. Returns False if not rooted, or display:none has been set\non element or any of its ancestors.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to check visibility for" }] }, { "Container" : "Fit.Dom", "Name" : "Remove", "Returns" : "", "Access" : "public", "Description" : "Remove DOMNode from its container element", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "DOMNode to remove" }] }, { "Container" : "Fit.Dom", "Name" : "RemoveClass", "Returns" : "", "Access" : "public", "Description" : "Remove CSS class from element if found", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element from which CSS class is to be removed" }, { "Name" : "cls", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "CSS class name" }] }, { "Container" : "Fit.Dom", "Name" : "Replace", "Returns" : "", "Access" : "public", "Description" : "Replace element with another one", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "oldElm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to replace (Element, Text, or Comment)" }, { "Name" : "newElm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Replacement element (Element, Text, or Comment)" }] }, { "Container" : "Fit.Dom", "Name" : "SetCaretPosition", "Returns" : "", "Access" : "public", "Description" : "Set caret position for input control", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "input", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Input element" }, { "Name" : "pos", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Integer value specifying caret position in input control" }] }, { "Container" : "Fit.Dom", "Name" : "Text", "Returns" : "string", "Access" : "public", "Description" : "Get/set inner text of DOMElement", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Node to update and/or get text value from" }, { "Name" : "value", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, inner text is updated with specified value" }] }, { "Container" : "Fit.Dom", "Name" : "Wrap", "Returns" : "", "Access" : "public", "Description" : "Wraps element in container element while preserving position in DOM if rooted", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elementToWrap", "Type" : "DOMNode", "Default" : "", "Nullable" : false, "Description" : "Element to wrap" }, { "Name" : "container", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Container to wrap element within" }] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "GetNextZindex", "Returns" : "integer", "Access" : "public", "Description" : "Get next z-index which will place an element above any draggable element", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"keydown\" | \"keyup\" | \"keypress\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackKeyboard", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"click\" | \"contextmenu\" | \"dblclick\" | \"mousedown\" | \"mouseenter\" | \"mouseleave\" | \"mousemove\" | \"mouseout\" | \"mouseover\" | \"mouseup\" | \"mousewheel\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackMouse", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"popstate\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackPopState", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"hashchange\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackHashChange", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"focus\" | \"focusin\" | \"focusout\" | \"blur\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackFocus", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"beforeunload\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackBeforeUnload", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"cut\" | \"copy\" | \"paste\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackClipboard", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"storage\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackStorage", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given DOMElement and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element on to which event handler is registered" }, { "Name" : "event", "Type" : "\"#rooted\"", "Default" : "", "Nullable" : false, "Description" : "Event name" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackRooted", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackGeneric", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"keydown\" | \"keyup\" | \"keypress\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set True to capture event before it reaches target, False to catch event when it bubbles out from target.\nAlternatively pass options object to control behaviour on a more fine-grained scale.\nNOTICE: This feature will be ignored by Internet Explorer 8 and below." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackKeyboard", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"click\" | \"contextmenu\" | \"dblclick\" | \"mousedown\" | \"mouseenter\" | \"mouseleave\" | \"mousemove\" | \"mouseout\" | \"mouseover\" | \"mouseup\" | \"mousewheel\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set True to capture event before it reaches target, False to catch event when it bubbles out from target.\nAlternatively pass options object to control behaviour on a more fine-grained scale.\nNOTICE: This feature will be ignored by Internet Explorer 8 and below." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackMouse", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"popstate\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set True to capture event before it reaches target, False to catch event when it bubbles out from target.\nAlternatively pass options object to control behaviour on a more fine-grained scale.\nNOTICE: This feature will be ignored by Internet Explorer 8 and below." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackPopState", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"hashchange\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set True to capture event before it reaches target, False to catch event when it bubbles out from target.\nAlternatively pass options object to control behaviour on a more fine-grained scale.\nNOTICE: This feature will be ignored by Internet Explorer 8 and below." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackHashChange", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"focus\" | \"focusin\" | \"focusout\" | \"blur\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set True to capture event before it reaches target, False to catch event when it bubbles out from target.\nAlternatively pass options object to control behaviour on a more fine-grained scale.\nNOTICE: This feature will be ignored by Internet Explorer 8 and below." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackFocus", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"beforeunload\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set True to capture event before it reaches target, False to catch event when it bubbles out from target.\nAlternatively pass options object to control behaviour on a more fine-grained scale.\nNOTICE: This feature will be ignored by Internet Explorer 8 and below." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackBeforeUnload", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"cut\" | \"copy\" | \"paste\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set True to capture event before it reaches target, False to catch event when it bubbles out from target.\nAlternatively pass options object to control behaviour on a more fine-grained scale.\nNOTICE: This feature will be ignored by Internet Explorer 8 and below." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackClipboard", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"storage\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set True to capture event before it reaches target, False to catch event when it bubbles out from target.\nAlternatively pass options object to control behaviour on a more fine-grained scale.\nNOTICE: This feature will be ignored by Internet Explorer 8 and below." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackStorage", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given DOMElement and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element on to which event handler is registered" }, { "Name" : "event", "Type" : "\"#rooted\"", "Default" : "", "Nullable" : false, "Description" : "Event name" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "This argument is ignored for the specialized #rooted event." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackRooted", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddHandler", "Returns" : "integer", "Access" : "public", "Description" : "Registers handler for specified event on given EventTarget and returns Event ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Event name without 'on' prefix (e.g. 'load', 'mouseover', 'click' etc.)" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set True to capture event before it reaches target, False to catch event when it bubbles out from target.\nAlternatively pass options object to control behaviour on a more fine-grained scale.\nNOTICE: This feature will be ignored by Internet Explorer 8 and below." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackGeneric", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "AddMutationObserver", "Returns" : "integer", "Access" : "public", "Description" : "Registers mutation observer which is invoked when a DOMElement is updated. By default\nonly attributes and dimensions are observed. Use deep flag to have children and character data observed too.\nAn observer ID is returned which can be used to remove mutation observer.\nImportant: Mutation observers should be removed when no longer needed for better performance!\nTo remove an observer from within the observer function itself, simply call disconnect().", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOMElement to observe" }, { "Name" : "obs", "Type" : "Fit.EventsTypeDefs.MutationObserverCallback", "Default" : "", "Nullable" : false, "Description" : "JavaScript observer function to register - receives reference to DOMElement being observed when updated" }, { "Name" : "deep", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Flag indicating whether to check for modifications within element (children and character data) - this could potentially be expensive" }] }, { "Container" : "Fit.Events", "Name" : "GetEvent", "Returns" : "Event", "Access" : "public", "Description" : "Get event argument related to event just fired in a cross browser compatible manner", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "Event", "Default" : "undefined", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.Events", "Name" : "GetModifierKeys", "Returns" : "Fit.EventTypeDefs.ModifierKeys", "Access" : "public", "Description" : "Get object containing information about modifier keys currently being active.", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Events", "Name" : "GetPointerState", "Returns" : "Fit.EventTypeDefs.PointerState", "Access" : "public", "Description" : "Get object containing information about pointer.\nObject contains the following properties:\nTarget: Is the DOMElement affected by click/touch.\nButtons.Primary/Secondary: Is True if given button is being held down.\nCoordinates.ViewPort.X/Y: Mouse coordinates within viewport.\nCoordinates.Document.X/Y: Mouse coordinates within document which might have been scrolled.", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Events", "Name" : "GetRelatedTarget", "Returns" : "DOMElement | null", "Access" : "public", "Description" : "Get a reference to the secondary object related to an event - e.g. the element losing\nfocus in a focus event handler. Returns Null if there is no related event object, or if\nnot supported by the browser.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "Event", "Default" : "undefined", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.Events", "Name" : "GetTarget", "Returns" : "DOMElement", "Access" : "public", "Description" : "Get a reference to the object that is affected by an event", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "Event", "Default" : "undefined", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.Events", "Name" : "OnDomReady", "Returns" : "", "Access" : "public", "Description" : "Registers OnReady handler which gets fired when DOM is ready for manipulation, or if it is already ready", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "callback", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "OnReady", "Returns" : "", "Access" : "public", "Description" : "Registers OnReady handler which gets fired when document is ready, or if it is already ready", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "callback", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Events", "Name" : "PreventDefault", "Returns" : "boolean", "Access" : "public", "Description" : "Prevent default behaviour triggered by given event - returns False", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "Event", "Default" : "undefined", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.Events", "Name" : "RemoveHandler", "Returns" : "", "Access" : "public", "Description" : "Remove event handler given by Event ID returned from Fit.Events.AddHandler(..)", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) from which event handler is removed" }, { "Name" : "eventId", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Event ID identifying handler to remove" }] }, { "Container" : "Fit.Events", "Name" : "RemoveHandler", "Returns" : "", "Access" : "public", "Description" : "Remove event handler for specified event on given EventTarget", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) from which event handler is removed" }, { "Name" : "event", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Event name without 'on' prefix (e.g. 'load', 'mouseover', 'click' etc.)" }, { "Name" : "eventFunction", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to remove" }] }, { "Container" : "Fit.Events", "Name" : "RemoveHandler", "Returns" : "", "Access" : "public", "Description" : "Remove event handler for specified event on given EventTarget", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) from which event handler is removed" }, { "Name" : "event", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Event name without 'on' prefix (e.g. 'load', 'mouseover', 'click' etc.)" }, { "Name" : "useCaptureOrOptions", "Type" : "boolean | { Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Value indicating whether event handler was registered using event capturing (True) or event bubbling (False).\nIf event handler was registered with event options for more fine-grained control, these options are passed instead." }, { "Name" : "eventFunction", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to remove" }] }, { "Container" : "Fit.Events", "Name" : "RemoveMutationObserver", "Returns" : "", "Access" : "public", "Description" : "Remove mutation observer", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "elm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOMElement being observed" }, { "Name" : "obs", "Type" : "Fit.EventsTypeDefs.MutationObserverCallback", "Default" : "", "Nullable" : false, "Description" : "JavaScript observer function to remove" }, { "Name" : "deep", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, observer must have been registered with the same deep value to be removed" }] }, { "Container" : "Fit.Events", "Name" : "RemoveMutationObserver", "Returns" : "", "Access" : "public", "Description" : "Remove mutation observer by ID", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "id", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Observer ID returned from AddMutationObserver(..) function" }] }, { "Container" : "Fit.Events", "Name" : "Stop", "Returns" : "boolean", "Access" : "public", "Description" : "Completely suppress event which is equivalent of\ncalling both PreventDefault(e) and StopPropagation(e).\nReturns False.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "Event", "Default" : "undefined", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.Events", "Name" : "StopPropagation", "Returns" : "boolean", "Access" : "public", "Description" : "Prevent given event from propagating (bubble up) - returns False", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "Event", "Default" : "undefined", "Nullable" : false, "Description" : "Event argument" }] }, { "Container" : "Fit.Internationalization", "Name" : "AddLocalization", "Returns" : "", "Access" : "public", "Description" : "Register information such as translations related to a specific language and country.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "type", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Object type associated with localization information - e.g. MyApp.ContactForm" }, { "Name" : "translations", "Type" : "Object", "Default" : "", "Nullable" : false, "Description" : "Object array containing language and country specific information such as translations.\nThe object array must be indexed using locale keys, and \"en\" must be defined first.\nExample: { \"en\": {}, \"en_GB\": {}, \"da\": {} }\nEvery language inherits all the information from \"en\", and country specific information\nsuch as \"de_AT\" automatically inherits everything from \"de\" - in which case\n\"de\" must be declared first.\nInformation can be obtained from within instances of the given type using:\nFit.Internationalization.GetLocale(this); // Translations for current locale\nFit.Internationalization.GetLocale(this, \"de_AT\"); // Translations for specific locale\nNaturally \"this\" is an instance of MyApp.ContactForm in this example." }] }, { "Container" : "Fit.Internationalization", "Name" : "GetLocale", "Returns" : "object", "Access" : "public", "Description" : "Get type specific locale information registered using Fit.Internationalization.AddLocalization(..)", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "instance", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Instance of type used to register locale information" }, { "Name" : "locale", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, information for specified locale such as en, en_GB, or da is returned.\nIf not found, en (en_US) is returned. If omitted, information for current locale is returned." }] }, { "Container" : "Fit.Internationalization", "Name" : "GetSystemLocale", "Returns" : "object", "Access" : "public", "Description" : "Get locale object such as:\n{\n     Formatting:\n     {\n         DecimalSeparator: '.',\n         ThousandsSeparator: ',',\n         DateFormat: 'MM/DD/YYYY',\n         TimeFormat: 'hh:mm',\n         TimeFormatLong: 'hh:mm:ss',\n         ClockHours: 12 // 24 or 12 (AM/PM)\n     },\n     Translations:\n     {\n         Required: 'Field is required'\n     }\n}", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "localeKey", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, specified locale such as en, en_GB, or da is returned. If not\nfound, en (en_US) is returned. If omitted, current locale is returned." }] }, { "Container" : "Fit.Internationalization", "Name" : "Locale", "Returns" : "string", "Access" : "public", "Description" : "Get/set active locale. Value returned is a lower cased string such as\n\"en\", \"en_us\", \"de\", etc. Changing locale results in OnLocaleChanged being fired.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "locale", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, locale is updated with specified value (e.g. en, en_GB, da, etc.)" }] }, { "Container" : "Fit.Internationalization", "Name" : "OnLocaleChanged", "Returns" : "", "Access" : "public", "Description" : "Add event handler which is called if locale is changed", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Event handler which takes no arguments" }] }, { "Container" : "Fit.Internationalization", "Name" : "RemoveOnLocaleChanged", "Returns" : "", "Access" : "public", "Description" : "Remove event handler to avoid it being called when locale is changed", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Event handler to remove" }] }, { "Container" : "Fit.Loader", "Name" : "ExecuteScript", "Returns" : "", "Access" : "public", "Description" : "Load client script on demand in a non-blocking manner.\n\nExecuteScript differs from LoadScript in the way code is loaded\nand executed. ExecuteScript loads the script using AJAX, meaning\nthe script file either has to be located on the same domain as\nthe application invoking ExecuteScript, or have the\nAccess-Control-Allow-Origin header configured to allow file to be\nloaded from a foreign domain.\nThe code loaded is injected into the virtual machine meaning debugging\nwill not reveal from which file the code originated, although this\ninformation can be retrived by inspecting the call stack.\nExecuteScript has the advantages that is allows for both an OnSuccess\nand OnFailure handler, and it allows for objects to be passed to\nthe executing script using the context parameter, which will\ncause the code to execute within its own contained scope (closure).\nThe script will execute in the global scope if no context object is provided.\n\n// Example of loading a JavaScript file, passing variables to it:\n\nFit.Loader.ExecuteScript(\"extensions/test/test.js\", function(src)\n{\n     alert(\"JavaScript \" + src + \" loaded and ready to be used!\");\n},\nfunction(src)\n{\n     alert(\"JavaScript \" + src + \" could NOT be loaded;);\n\n}, { $: window.jQuery, mode: \"advanced\", showData: \"users\" });", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "src", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Script source (path or URL)" }, { "Name" : "onSuccess", "Type" : "Fit.LoaderTypeDefs.LoadSingleEventHandler", "Default" : "undefined", "Nullable" : false, "Description" : "Callback function fired when script has been successfully loaded and executed.\nThe function takes the script source requested as an argument." }, { "Name" : "onFailure", "Type" : "Fit.LoaderTypeDefs.LoadSingleEventHandler", "Default" : "undefined", "Nullable" : false, "Description" : "Callback function fired if script could not be loaded or executed successfully.\nThe function takes the script source requested as an argument." }, { "Name" : "context", "Type" : "object", "Default" : "undefined", "Nullable" : false, "Description" : "Properties registered on the context object will be\nexposed as globally accessible objects for the executing script.\nExample: { jQuery: window.jQuery, $: window.jQuery }\nThe script will execute in the global window scope if no\ncontext object is defined." }] }, { "Container" : "Fit.Loader", "Name" : "LoadScript", "Returns" : "", "Access" : "public", "Description" : "Load client script on demand in a non-blocking manner.\n\n// Example of loading a JavaScript file\n\nFit.Loader.LoadScript(\"extensions/test/test.js\", function(src)\n{\n     alert(\"JavaScript \" + src + \" loaded and ready to be used!\");\n});", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "source", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Script source (path or URL)" }, { "Name" : "cb", "Type" : "Fit.LoaderTypeDefs.LoadSingleEventHandler", "Default" : "undefined", "Nullable" : false, "Description" : "Callback function fired when script loading is complete - takes the script source requested as an argument.\nBe aware that a load error will also trigger the callback to make sure control is always returned.\nConsider using feature detection within callback function for most reliable execution - example:\nif (expectedObjectOrFunction) { /* Successfully loaded, continue.. */ }" }] }, { "Container" : "Fit.Loader", "Name" : "LoadScript", "Returns" : "", "Access" : "public", "Description" : "Load client script on demand in a non-blocking manner.\n\n// Example of loading a JavaScript file\n\nFit.Loader.LoadScript(\"extensions/test/test.js\", { id: \"my-script\", charset: \"UTF-8\" }, function(src)\n{\n     alert(\"JavaScript \" + src + \" loaded and ready to be used!\");\n});", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "source", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Script source (path or URL)" }, { "Name" : "attributes", "Type" : "{[key:string]: string}", "Default" : "", "Nullable" : false, "Description" : "Attributes registered with script block" }, { "Name" : "cb", "Type" : "Fit.LoaderTypeDefs.LoadSingleEventHandler", "Default" : "undefined", "Nullable" : false, "Description" : "Callback function fired when script loading is complete - takes the script source requested as an argument.\nBe aware that a load error will also trigger the callback to make sure control is always returned.\nConsider using feature detection within callback function for most reliable execution - example:\nif (expectedObjectOrFunction) { /* Successfully loaded, continue.. */ }" }] }, { "Container" : "Fit.Loader", "Name" : "LoadScripts", "Returns" : "", "Access" : "public", "Description" : "Chain load multiple client scripts on demand in a non-blocking manner.\n\n// Example of loading multiple JavaScript files in serial:\n\nFit.Loader.LoadScripts(\n[\n     {\n          source: \"extensions/test/menu.js\",\n          attributes: { id: \"my-script\" },\n          loaded: function(cfg) { alert(\"JavaScript \" + cfg.source + \" loaded\"); }\n     },\n     {\n          source: \"http://cdn.domain.com/chat.js\",\n          attributes: { id: \"another-script\" },\n          loaded: function(cfg) { alert(\"JavaScript \" + cfg.source + \" loaded\"); }\n     }\n],\nfunction(cfgs)\n{\n     alert(\"All files loaded\");\n});\n\nFirst argument is an array of script configurations:\nsource:string (required): Script source (path or URL)\nloaded:function (optional): Callback function to execute when file has loaded (takes file configuration as argument)\nBe aware that loaded callback is invoked even if a load error occures, to make sure control is returned to your code.\n\nSecond argument is the callback function fired when all files have finished loading - takes configuration array as argument.\nThis too may be invoked even if a load error occured, to make sure control is returned to your code.\n\nConsider using feature detection within callback functions for super reliable execution - example:\nif (expectedObjectOrFunction) { /* Successfully loaded, continue.. */ }", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "cfg", "Type" : "Fit.LoaderTypeDefs.ResourceConfiguration[]", "Default" : "", "Nullable" : false, "Description" : "Configuration array (see function description for details)" }, { "Name" : "callback", "Type" : "Fit.LoaderTypeDefs.LoadMultiConfigurationsEventHandler", "Default" : "undefined", "Nullable" : false, "Description" : "Callback function fired when all scripts have finished loading (see function description for details)" }] }, { "Container" : "Fit.Loader", "Name" : "LoadStyleSheet", "Returns" : "", "Access" : "public", "Description" : "Load CSS stylesheet on demand in a non-blocking manner.\nIt is recommended to load stylesheets before rendering items using\nthe CSS classes to avoid FOUC (Flash Of Unstyled Content).\n\n// Example of loading a CSS file\n\nFit.Loader.LoadStyleSheet(\"extensions/test/layout.css\", function(src)\n{\n     alert(\"CSS file \" + src + \" loaded!\");\n});", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "src", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "CSS file source (path or URL)" }, { "Name" : "callback", "Type" : "Fit.LoaderTypeDefs.LoadSingleEventHandler", "Default" : "undefined", "Nullable" : false, "Description" : "Callback function fired when CSS file loading is complete - takes the file source requested as an argument.\nBe aware that a load error will also trigger the callback to make sure control is always returned." }] }, { "Container" : "Fit.Loader", "Name" : "LoadStyleSheets", "Returns" : "", "Access" : "public", "Description" : "Load multiple stylesheets in parrallel in a non-blocking manner.\n\n// Example of loading multiple CSS files:\n\nFit.Loader.LoadStyleSheets(\n[\n     {\n          source: \"extensions/test/menu.css\",\n          loaded: function(cfg) { alert(\"Stylesheet \" + cfg.source + \" loaded\"); }\n     },\n     {\n          source: \"http://cdn.domain.com/chat.css\",\n          loaded: function(cfg) { alert(\"Stylesheet \" + cfg.source + \" loaded\"); }\n     }\n],\nfunction(cfgs)\n{\n     alert(\"All stylesheets loaded\");\n});\n\nFirst argument is an array of stylesheet configurations:\nsource:string (required): Stylesheet source (path or URL)\nloaded:function (optional): Callback function to execute when stylesheet has loaded (takes stylesheet configuration as argument)\nBe aware that loaded callback is invoked even if a load error occures, to make sure control is returned to your code.\n\nSecond argument is the callback function fired when all stylesheets have finished loading - takes configuration array as argument.\nThis too may be invoked even if a load error occured, to make sure control is returned to your code.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "cfg", "Type" : "Fit.LoaderTypeDefs.ResourceConfiguration[]", "Default" : "", "Nullable" : false, "Description" : "Configuration array (see function description for details)" }, { "Name" : "callback", "Type" : "Fit.LoaderTypeDefs.LoadMultiConfigurationsEventHandler", "Default" : "undefined", "Nullable" : false, "Description" : "Callback function fired when all stylesheets have finished loading (see function description for details)" }] }, { "Container" : "Fit.Math", "Name" : "Format", "Returns" : "string", "Access" : "public", "Description" : "Format value to produce a number with the specified number of decimals.\nValue is properly rounded off to ensure best precision.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "number", "Default" : "", "Nullable" : false, "Description" : "Number to format" }, { "Name" : "decimals", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Desired number of decimals" }, { "Name" : "decimalSeparator", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, the specified decimal separator will be used" }] }, { "Container" : "Fit.Math", "Name" : "Random", "Returns" : "integer", "Access" : "public", "Description" : "Get random integer value", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "min", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "Minimum value - assumes 0 if not defined" }, { "Name" : "max", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "Maximum value - assumes Number.MAX_SAFE_INTEGER (9007199254740991) if not defined" }] }, { "Container" : "Fit.Math", "Name" : "Round", "Returns" : "number", "Access" : "public", "Description" : "Round off value to a number with the specified precision", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "number", "Default" : "", "Nullable" : false, "Description" : "Number to round off" }, { "Name" : "precision", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Desired precision" }, { "Name" : "midpointRounding", "Type" : "Fit.Math.MidpointRounding", "Default" : "undefined", "Nullable" : false, "Description" : "Argument specifies how the function processes a number that is midway between\ntwo numbers - defaults to Fit.Math.MidpointRounding.AwayFromZero if not specified." }] }, { "Container" : "Fit.String", "Name" : "DecodeHtml", "Returns" : "string", "Access" : "public", "Description" : "Decode special characters represented as HTML entities back into their actual characters", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "str", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String to decode" }] }, { "Container" : "Fit.String", "Name" : "EncodeHtml", "Returns" : "string", "Access" : "public", "Description" : "Encode special characters into HTML entities", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "str", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String to encode" }] }, { "Container" : "Fit.String", "Name" : "Hash", "Returns" : "integer", "Access" : "public", "Description" : "Get Java compatible Hash Code from string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "str", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String to get hash code from" }] }, { "Container" : "Fit.String", "Name" : "ParseImageBlobUrls", "Returns" : "string[]", "Access" : "public", "Description" : "Parse and return image blob URLs from image tags", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "str", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String to parse" }] }, { "Container" : "Fit.String", "Name" : "StripHtml", "Returns" : "string", "Access" : "public", "Description" : "Removes any HTML contained in string, and returns the raw text value", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "str", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String to strip HTML from" }] }, { "Container" : "Fit.String", "Name" : "Trim", "Returns" : "string", "Access" : "public", "Description" : "Removes any whitespaces in beginning and end of string passed, and returns the new string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "str", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String to trim" }] }, { "Container" : "Fit.String", "Name" : "UpperCaseFirst", "Returns" : "string", "Access" : "public", "Description" : "Returns string with first letter upper cased", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "str", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "String to turn first letter into upper case" }] }, { "Container" : "Fit.Validation", "Name" : "Enabled", "Returns" : "", "Access" : "public", "Description" : "Set or get flag indicating whether type checking should take place (DebugMode)", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "", "Nullable" : false, "Description" : "True enables DebugMode, False disables DebugMode" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectArray", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of Array", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectBoolean", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not a boolean", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectCollection", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not a collection that can be iterated", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectDate", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of Date", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectDictionary", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not a dictionary (associative array / object array),\ncontaning only objects/values of type given by validation callback.\nExample: Fit.Validation.ExpectDictionary(dict, Fit.Validation.ExpectString)", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Dictionary to validate" }, { "Name" : "typeValCallback", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Value validation callback" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectElement", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of HTMLElement", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectEvent", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of Event", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectEventTarget", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of EventTarget", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectFunction", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not a valid function", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectInstance", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of specified type", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "instanceType", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Instance type (constructor, e.g. Fit.Http.Request)" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectInstanceArray", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of Array\ncontaning only instances of specified type. Example:\nFit.Validation.ExpectInstanceArray(arr, Fit.Controls.TreeViewNode)", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "instanceType", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Instance type (constructor, e.g. Fit.Http.Request)" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectInteger", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an integer", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectIsSet", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is either Null or Undefined", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectNode", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of Element, Text, or Comment", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectNumber", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not a number", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectObject", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not a valid object such as { Name: 'Jimmy', Age: 34 }", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectRegExp", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of RegExp", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectString", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not a string", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectStringValue", "Returns" : "", "Access" : "public", "Description" : "Same as Fit.Validation.ExpectString(..), but string must contain an actual value if set (not be empty)", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectTypeArray", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of Array\ncontaning only objects/values of type given by validation callback.\nExample: Fit.Validation.ExpectTypeArray(arr, Fit.Validation.ExpectString)", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "typeValCallback", "Type" : "function", "Default" : "", "Nullable" : false, "Description" : "Value validation callback" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "ExpectWindow", "Returns" : "", "Access" : "public", "Description" : "Throws error if passed object is not an instance of Window", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }, { "Name" : "allowNotSet", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to allow object to be Null or Undefined" }] }, { "Container" : "Fit.Validation", "Name" : "IsSet", "Returns" : "boolean", "Access" : "public", "Description" : "Returns True if specified object is set (not Null or Undefined), otherwise False", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Object to validate" }] }, { "Container" : "Fit.Validation", "Name" : "ThrowError", "Returns" : "", "Access" : "public", "Description" : "Throw error and provide stack trace to browser console", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "msg", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Error message" }] }, { "Container" : "Fit", "Name" : "GetPath", "Returns" : "string", "Access" : "public", "Description" : "Get absolute path to Fit.UI on server - e.g. /libs/fitui", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit", "Name" : "GetUrl", "Returns" : "string", "Access" : "public", "Description" : "Get fully qualified URL to Fit.UI on server - e.g. http://server.com/libs/fitui", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit", "Name" : "GetVersion", "Returns" : "Fit.CoreTypeDefs.VersionInfo", "Access" : "public", "Description" : "Get Fit.UI version object containing the following properties:\nMajor (integer), Minor (integer), Patch (integer), Version (string representing Major.Minor.Patch).", "Static" : true, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit", "Name" : "SetPath", "Returns" : "", "Access" : "public", "Description" : "Set path to Fit.UI on server - e.g. libs/fitui.\nThis may be necessary if Fit.UI is loaded dynamically\nusing RequireJS or bundled using e.g. WebPack.\nChanging the path affects the return value of both\nGetUrl() and GetPath(), and from where Fit.UI will\nload resources dynamically.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "basePath", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Absolute or relative path to folder containing Fit.UI" }] }, { "Container" : "Fit", "Name" : "SetUrl", "Returns" : "", "Access" : "public", "Description" : "Set URL to Fit.UI on server - e.g. http://cdn/libs/fitui/.\nThis may be necessary if Fit.UI is loaded dynamically\nfrom a foreign domain such as a CDN (Content Delivery Network).\nChanging the URL affects the return value of both\nGetUrl() and GetPath(), and from where Fit.UI will\nload resources dynamically.", "Static" : true, "Virtual" : false, "Parameters" : [{ "Name" : "baseUrl", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Full URL to folder containing Fit.UI" }] }, { "Container" : "Fit.Controls.Button", "Name" : "Button", "Returns" : "", "Access" : "public", "Description" : "Create instance of Button control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "controlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.Button", "Name" : "Click", "Returns" : "", "Access" : "public", "Description" : "Programmatically trigger a button click", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.Button", "Name" : "Enabled", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether button is enabled or not", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, True enables button, False disables it" }] }, { "Container" : "Fit.Controls.Button", "Name" : "Focused", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control has focus", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "focus", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True assigns focus, False removes focus (blur)" }] }, { "Container" : "Fit.Controls.Button", "Name" : "Height", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set control height - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control height is updated to specified value. A value of -1 resets control height." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, control height is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.Button", "Name" : "Icon", "Returns" : "string", "Access" : "public", "Description" : "Get/set button icon (Font Awesome icon name, e.g. fa-check-circle-o - https://fontawesome.com/v4.7.0/icons)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, button icon will be set to specified value" }] }, { "Container" : "Fit.Controls.Button", "Name" : "OnClick", "Returns" : "", "Access" : "public", "Description" : "Set callback function invoked when button is clicked", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ButtonTypeDefs.ClickEventHandler", "Default" : "", "Nullable" : false, "Description" : "Callback function invoked when button is clicked - takes button instance as argument" }] }, { "Container" : "Fit.Controls.Button", "Name" : "ReturnFocus", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether button returns focus after click", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "A value of True causes button to return focus to previously focused element after click - defaults to False" }] }, { "Container" : "Fit.Controls.Button", "Name" : "Title", "Returns" : "string", "Access" : "public", "Description" : "Get/set button title", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, button title will be set to specified value" }] }, { "Container" : "Fit.Controls.Button", "Name" : "Type", "Returns" : "Fit.Controls.ButtonType", "Access" : "public", "Description" : "Get/set button type producing specific look and feel.\nPossible values are:\n- Fit.Controls.ButtonType.Default (white)\n- Fit.Controls.ButtonType.Primary (blue)\n- Fit.Controls.ButtonType.Success (green)\n- Fit.Controls.ButtonType.Info (turquoise)\n- Fit.Controls.ButtonType.Warning (orange)\n- Fit.Controls.ButtonType.Danger (red)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "Fit.Controls.ButtonType", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, button type will be set to specified value" }] }, { "Container" : "Fit.Controls.Button", "Name" : "Width", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set control width - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control width is updated to specified value. A value of -1 resets control width." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, control width is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.CheckBox", "Name" : "CheckBox", "Returns" : "", "Access" : "public", "Description" : "Create instance of CheckBox control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.CheckBox", "Name" : "Checked", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is checked", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control's checked state is updated to specified value" }, { "Name" : "preserveDirtyState", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True prevents dirty state from being reset, False (default) resets the dirty state.\nIf dirty state is reset (default), the control value will be compared against the value passed,\nto determine whether it has been changed by the user or not, when IsDirty() is called." }] }, { "Container" : "Fit.Controls.CheckBox", "Name" : "Enabled", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is enabled or not", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, True enables control, False disables it" }] }, { "Container" : "Fit.Controls.CheckBox", "Name" : "Label", "Returns" : "string", "Access" : "public", "Description" : "Get/set label associated with checkbox", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, label is updated to specified value" }] }, { "Container" : "Fit.Controls.CheckBox", "Name" : "Width", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set control width - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control width is updated to specified value. A value of -1 resets control width." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, control width is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.Component", "Name" : "Component", "Returns" : "", "Access" : "public", "Description" : "Component constructor", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique component ID that can be used to access component using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.Component", "Name" : "Dispose", "Returns" : "", "Access" : "public", "Description" : "Destroys control to free up memory.\nMake sure to call Dispose() on Component which can be done like so:\nthis.Dispose = Fit.Core.CreateOverride(this.Dispose, function()\n{\n     // Add control specific dispose logic here\n     base(); // Call Dispose on Component\n});", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.Component", "Name" : "GetDomElement", "Returns" : "DOMElement", "Access" : "public", "Description" : "Get DOMElement representing control", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.Component", "Name" : "GetId", "Returns" : "string", "Access" : "public", "Description" : "Get unique Control ID", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.Component", "Name" : "Render", "Returns" : "", "Access" : "public", "Description" : "Render control, either inline or to element specified", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "toElement", "Type" : "DOMElement", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control is rendered to this element" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "AddChild", "Returns" : "", "Access" : "public", "Description" : "Add item to ContextMenu", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "item", "Type" : "Fit.Controls.ContextMenuItem", "Default" : "", "Nullable" : false, "Description" : "Item to add" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "ContextMenu", "Returns" : "", "Access" : "public", "Description" : "Create instance of ContextMenu control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "controlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "DetectBoundaries", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether boundary/collision detection is enabled or not", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables collision detection (default), False disables it" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "Focused", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control has focus", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True assigns focus, False removes focus (blur)" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "GetAllChildren", "Returns" : "Fit.Controls.ContextMenuItem[]", "Access" : "public", "Description" : "Get all children across entire hierarchy in a flat collection", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "GetChild", "Returns" : "Fit.Controls.ContextMenuItem | null", "Access" : "public", "Description" : "Get item by value - returns Null if not found", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Item value" }, { "Name" : "recursive", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True enables recursive search" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "GetChildren", "Returns" : "Fit.Controls.ContextMenuItem[]", "Access" : "public", "Description" : "Get all children", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "Hide", "Returns" : "", "Access" : "public", "Description" : "Hide context menu", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "IsVisible", "Returns" : "boolean", "Access" : "public", "Description" : "Get value indicating whether context menu is visible or not", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "AddChild", "Returns" : "", "Access" : "public", "Description" : "Add child item", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "item", "Type" : "Fit.Controls.ContextMenuItem", "Default" : "", "Nullable" : false, "Description" : "Item to add" }] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "ContextMenuItem", "Returns" : "", "Access" : "public", "Description" : "Create instance of ContextMenu Item", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "displayTitle", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Item title" }, { "Name" : "itemValue", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Item value" }] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "Dispose", "Returns" : "", "Access" : "public", "Description" : "Destroys item to free up memory", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "GetChild", "Returns" : "Fit.Controls.ContextMenuItem | null", "Access" : "public", "Description" : "Get item by value - returns Null if not found", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Item value" }, { "Name" : "recursive", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True enables recursive search" }] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "GetChildren", "Returns" : "Fit.Controls.ContextMenuItem[]", "Access" : "public", "Description" : "Get all children", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "GetDomElement", "Returns" : "DOMElement", "Access" : "public", "Description" : "Get DOMElement representing context menu item", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "GetParent", "Returns" : "Fit.Controls.ContextMenuItem | null", "Access" : "public", "Description" : "Get parent item - returns Null for a root item", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "RemoveChild", "Returns" : "", "Access" : "public", "Description" : "Remove child item", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "item", "Type" : "Fit.Controls.ContextMenuItem", "Default" : "", "Nullable" : false, "Description" : "Item to remove" }] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "Selectable", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether item is selectable or not", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables item, False disables it" }] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "Title", "Returns" : "string", "Access" : "public", "Description" : "Get/set item title", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, item title is updated" }] }, { "Container" : "Fit.Controls.ContextMenuItem", "Name" : "Value", "Returns" : "string", "Access" : "public", "Description" : "Get item value", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "OnHide", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when context menu is hidden.\nFunction receives one argument: Sender (Fit.Controls.ContextMenu).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ContextMenuTypeDefs.EventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "OnSelect", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when an item is selected in context menu.\nFunction receives two arguments:\nSender (Fit.Controls.ContextMenu) and Item (Fit.Controls.ContextMenuItem).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ContextMenuTypeDefs.SelectEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "OnShowing", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired before context menu is shown.\nThis event can be canceled by returning False.\nFunction receives one argument: Sender (Fit.Controls.ContextMenu).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ContextMenuTypeDefs.CancelableEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "OnShown", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when context menu is shown.\nFunction receives one argument: Sender (Fit.Controls.ContextMenu).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ContextMenuTypeDefs.EventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "RemoveAllChildren", "Returns" : "", "Access" : "public", "Description" : "Remove all items contained in ContextMenu", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dispose", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to dispose items" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "RemoveChild", "Returns" : "", "Access" : "public", "Description" : "Remove item from ContextMenu", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "item", "Type" : "Fit.Controls.ContextMenuItem", "Default" : "", "Nullable" : false, "Description" : "Item to remove" }] }, { "Container" : "Fit.Controls.ContextMenu", "Name" : "Show", "Returns" : "", "Access" : "public", "Description" : "Make context menu show up. If X,Y coordinates are not specified, the position of the mouse pointer will be used.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "x", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, context menu will open at specified horizontal position" }, { "Name" : "y", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, context menu will open at specified vertical position" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "AddCssClass", "Returns" : "", "Access" : "public", "Description" : "Add CSS class to DOMElement representing control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "CSS class to add" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "AddValidationRule", "Returns" : "", "Access" : "public", "Description" : "Set callback function used to perform on-the-fly validation against control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "validator", "Type" : "Fit.Controls.ControlBaseTypeDefs.ValidationCallback", "Default" : "", "Nullable" : false, "Description" : "Function receiving an instance of the control.\nA value of False or a non-empty string with an\nerror message must be returned if value is invalid." }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "AddValidationRule", "Returns" : "", "Access" : "public", "Description" : "Set regular expression used to perform on-the-fly validation against control value, as returned by the Value() function", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "validator", "Type" : "RegExp", "Default" : "", "Nullable" : false, "Description" : "Regular expression to validate value against" }, { "Name" : "errorMessage", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Optional error message displayed if value validation fails" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "AlwaysDirty", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is always considered dirty. This\ncomes in handy when programmatically changing a value of a control on behalf\nof the user. Some applications may choose to only save values from dirty controls.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, Always Dirty is enabled/disabled" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "AutoPostBack", "Returns" : "boolean", "Access" : "public", "Description" : "Set flag indicating whether control should post back changes automatically when value is changed", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables auto post back, False disables it" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "Clear", "Returns" : "", "Access" : "public", "Description" : "Clear control value", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "ControlBase", "Returns" : "", "Access" : "public", "Description" : "ControlBase constructor", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "Enabled", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is enabled or disabled.\nA disabled control's value and state is still included on postback, if part of a form.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables control (default), False disables control." }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "Focused", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control has focus.\nControl must be rooted in DOM and be visible for control to gain focus.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True assigns focus, False removes focus (blur)" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "HasCssClass", "Returns" : "boolean", "Access" : "public", "Description" : "Check whether CSS class is found on DOMElement representing control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "CSS class to check for" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "Height", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set control height - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control height is updated to specified value. A value of -1 resets control height." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, control height is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "IsDirty", "Returns" : "boolean", "Access" : "public", "Description" : "Get value indicating whether user has changed control value", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "IsValid", "Returns" : "boolean", "Access" : "public", "Description" : "Get value indicating whether control value is valid.\nControl value is considered invalid if control is required, but no value is set,\nor if control value does not match regular expression set using SetValidationExpression(..).", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "LazyValidation", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control initially appears as valid, even\nthough it is not. It will appear invalid once the user touches the control,\nor when control value is validated using Fit.Controls.ValidateAll(..).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, Lazy Validation is enabled/disabled" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "OnBlur", "Returns" : "", "Access" : "public", "Description" : "Register OnBlur event handler which is invoked when control loses focus", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ControlBaseTypeDefs.BaseEvent", "Default" : "", "Nullable" : false, "Description" : "Event handler function which accepts Sender (ControlBase)" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "OnChange", "Returns" : "", "Access" : "public", "Description" : "Register OnChange event handler which is invoked when control value is changed either programmatically or by user", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ControlBaseTypeDefs.BaseEvent", "Default" : "", "Nullable" : false, "Description" : "Event handler function which accepts Sender (ControlBase)" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "OnFocus", "Returns" : "", "Access" : "public", "Description" : "Register OnFocus event handler which is invoked when control gains focus", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ControlBaseTypeDefs.BaseEvent", "Default" : "", "Nullable" : false, "Description" : "Event handler function which accepts Sender (ControlBase)" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "RemoveAllValidationRules", "Returns" : "", "Access" : "public", "Description" : "Remove all validation rules", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "RemoveCssClass", "Returns" : "", "Access" : "public", "Description" : "Remove CSS class from DOMElement representing control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "CSS class to remove" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "RemoveValidationRule", "Returns" : "", "Access" : "public", "Description" : "Remove validation function used to perform on-the-fly validation against control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "validator", "Type" : "Fit.Controls.ControlBaseTypeDefs.ValidationCallback", "Default" : "", "Nullable" : false, "Description" : "Validation function registered using AddValidationRule(..)" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "RemoveValidationRule", "Returns" : "", "Access" : "public", "Description" : "Remove regular expression used to perform on-the-fly validation against control value", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "validator", "Type" : "RegExp", "Default" : "", "Nullable" : false, "Description" : "Regular expression registered using AddValidationRule(..)" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "Required", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is required to be set", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control required feature is enabled/disabled" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "Scope", "Returns" : "string", "Access" : "public", "Description" : "Get/set scope to which control belongs - this is used to validate multiple\ncontrols at once using Fit.Controls.ValidateAll(scope) or Fit.Controls.DirtyCheckAll(scope).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control scope is updated" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "SetValidationCallback", "Returns" : "", "Access" : "public", "Description" : "DEPRECATED! Please use AddValidationRule(..) instead.\nSet callback function used to perform on-the-fly validation against control value.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "function | null", "Default" : "", "Nullable" : false, "Description" : "Function receiving control value - must return True if value is valid, otherwise False" }, { "Name" : "errorMsg", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, specified error message is displayed when user clicks or hovers validation error indicator" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "SetValidationExpression", "Returns" : "", "Access" : "public", "Description" : "DEPRECATED! Please use AddValidationRule(..) instead.\nSet regular expression used to perform on-the-fly validation against control value.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "regEx", "Type" : "RegExp | null", "Default" : "", "Nullable" : false, "Description" : "Regular expression to validate against" }, { "Name" : "errorMsg", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, specified error message is displayed when user clicks or hovers validation error indicator" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "SetValidationHandler", "Returns" : "", "Access" : "public", "Description" : "DEPRECATED! Please use AddValidationRule(..) instead.\nSet callback function used to perform on-the-fly validation against control value", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "function | null", "Default" : "", "Nullable" : false, "Description" : "Function receiving an instance of the control and its value.\nAn error message string must be returned if value is invalid,\notherwise Null or an empty string if the value is valid." }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "UserValue", "Returns" : "string", "Access" : "public", "Description" : "Get/set value as if it was changed by the user. Contrary to Value(..), this function will never reset the dirty state.\nRestrictions/filtering/modifications may be enforced just as the UI control might do, e.g. prevent the use of certain\ncharacters, or completely ignore input if not allowed. It may also allow invalid values such as a partially entered date\nvalue. The intention with UserValue(..) is to mimic the behaviour of what the user can do with the user interface control.\nFor picker controls the value format is equivalent to the one dictated by the Value(..) function.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, value is inserted into control" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "Value", "Returns" : "string", "Access" : "public", "Description" : "Get/set control value.\nFor controls supporting multiple selections: Set value by providing a string in one the following formats:\ntitle1=val1[;title2=val2[;title3=val3]] or val1[;val2[;val3]].\nIf Title or Value contains reserved characters (semicolon or equality sign), these most be URIEncoded.\nSelected items are returned in the first format described, also with reserved characters URIEncoded.\nProviding a new value to this function results in OnChange being fired.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, value is inserted into control" }, { "Name" : "preserveDirtyState", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True prevents dirty state from being reset, False (default) resets the dirty state.\nIf dirty state is reset (default), the control value will be compared against the value passed,\nto determine whether it has been changed by the user or not, when IsDirty() is called." }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "Visible", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is visible", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control visibility is updated" }] }, { "Container" : "Fit.Controls.ControlBase", "Name" : "Width", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set control width - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control width is updated to specified value. A value of -1 resets control width." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, control width is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "Date", "Returns" : "Date | null", "Access" : "public", "Description" : "Get/set control value.\nThe function works the same as the Value function, expect it\naccepts and returns a Date object instead of a string.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "Date | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, date is selected" }] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "DatePicker", "Returns" : "", "Access" : "public", "Description" : "Create instance of DatePicker control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "DatePlaceholder", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set date placeholder value. Returns Null if not set.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, placeholder is updated. Pass Null to use default\nplaceholder, or an empty string to remove placeholder." }] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "DetectBoundaries", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether boundary/collision detection is enabled or not (off by default).\nThis may cause calendar to open upwards if sufficient space is not available below control.\nIf control is contained in a scrollable parent, this will be considered the active viewport,\nand as such define the active boundaries - unless relativeToViewport is set to True, in which\ncase the actual browser viewport will be used.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables collision detection, False disables it (default)" }, { "Name" : "relativeToViewport", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True results in viewport being considered the container to which available space is determined.\nThis also results in calendar widget being positioned with position:fixed, allowing it to escape a container\nwith overflow (e.g. overflow:auto|hidden|scroll). Be aware though that this does not work reliably in combination\nwith CSS animation and CSS transform as it creates a new stacking context to which position:fixed becomes relative.\nA value of False (default) results in available space being determined relative to the boundaries of the\ncontrol's scroll parent. The calendar widget will stay within its container and not overflow it." }] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "Format", "Returns" : "string", "Access" : "public", "Description" : "Get/set format used by the DatePicker control. This will affect the format\nin which the date is presented, as well as the value returned by the GetText function.\nFormat takes precedence over locale.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, format is changed.\nThe following tokens can be used to construct the format:\nYYYY = Year with four digits (e.g. 2016)\nM = Month with one digit if possible (e.g. 1 or 12)\nMM = Month with two digits (e.g. 01 or 12)\nD = Day with one digit if possible (e.g. 1 or 24)\nDD = Day with two digits (e.g. 01 or 24)\nExamples: YYYY-MM-DD or D/M-YYYY" }] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "GetLocales", "Returns" : "string[]", "Access" : "public", "Description" : "Returns a string array containing supported locales", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "GetText", "Returns" : "string", "Access" : "public", "Description" : "Get control value as a string. Opposite to the Value function GetText returns the\nselected Date/DateTime in the format configured (see Format function). The Value\nfunction always returns the value in a fixed format, which is YYYY-MM-DD[ hh:mm].\nThe time portion is only appended if time is enabled (see Time function).", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "Hide", "Returns" : "", "Access" : "public", "Description" : "Calling this function will close the calendar widget.\nWhether this results in picker being hidden on mobile depends on implementation.\nOften it will only work if Hide() or Focused(false) is triggered by a user action such as a button click.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "Locale", "Returns" : "string", "Access" : "public", "Description" : "Get/set locale used by the DatePicker control. This will affect the\ndate format, unless format has been set explicitely, as well as the language used by the calendar widget.\nDatePicker locale takes precedence over locale set using Fit.Internationalization.Locale(..).\nCall the GetLocales function to get a complete list of supported locales.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, locale is changed" }] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "Show", "Returns" : "", "Access" : "public", "Description" : "Calling this function will open the calendar widget.\nWhether this results in picker being displayed on mobile depends on implementation.\nOften it will only work if Show() or Focused(true) is triggered by a user action such as a button click.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "Time", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether DatePicker should allow a time portion to be set.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, time is changed" }] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "TimePlaceholder", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set time placeholder value. Returns Null if not set.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, placeholder is updated. Pass Null to use default\nplaceholder, or an empty string to remove placeholder." }] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "UserValue", "Returns" : "string", "Access" : "public", "Description" : "Get/set value as if it was changed by the user.\nContrary to Value(..), this function allows for a partial (or invalid) date value.\nIf the time picker is enabled (see Time(..)) then both the date and time portion can\nbe set, separated by a space (e.g. 2020-10-25 14:30).\nOnChange fires if value provided is valid. See ControlBase.UserValue(..) for more details.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, value is inserted into control" }] }, { "Container" : "Fit.Controls.DatePicker", "Name" : "Value", "Returns" : "string", "Access" : "public", "Description" : "Get/set control value in the following format: YYYY-MM-DD[ hh:mm]", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, value is inserted into control" }, { "Name" : "preserveDirtyState", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True prevents dirty state from being reset, False (default) resets the dirty state.\nIf dirty state is reset (default), the control value will be compared against the value passed,\nto determine whether it has been changed by the user or not, when IsDirty() is called." }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "AddButton", "Returns" : "", "Access" : "public", "Description" : "Add button to dialog", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "btn", "Type" : "Fit.Controls.Button", "Default" : "", "Nullable" : false, "Description" : "Instance of Fit.Controls.Button" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "BringToFront", "Returns" : "", "Access" : "public", "Description" : "Bring draggable dialog to front", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Close", "Returns" : "", "Access" : "public", "Description" : "Close dialog", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Content", "Returns" : "string", "Access" : "public", "Description" : "Get/set dialog content", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, dialog content is updated with specified value" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "ContentUrl", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set content URL - returns null if not set", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "url", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, dialog is updated with content from specified URL" }, { "Name" : "onLoadHandler", "Type" : "Fit.Controls.DialogTypeDefs.DialogEventHandler", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, callback is invoked when content has been loaded.\nInstance of Dialog is passed as an argument." }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Dialog", "Returns" : "", "Access" : "public", "Description" : "Create instance of Dialog control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "controlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Dismissible", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether dialog is dismissible or not", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, a value of True makes dialog dismissible by adding a close button while False disables it" }, { "Name" : "disposeOnDismiss", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, a value of True results in dialog being disposed (destroyed) when closed using dismiss/close button" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Draggable", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether dialog can be moved around on screen", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, a value of True enables dragging, False disables it (default)" }] }, { "Container" : "Fit.Controls.DialogEditor", "Name" : "CheckSpelling", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control should have spell checking enabled (default) or disabled", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, true enables spell checking while false disables it" }] }, { "Container" : "Fit.Controls.DialogEditor", "Name" : "DialogEditor", "Returns" : "", "Access" : "public", "Description" : "Create instance of DialogEditor control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "controlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.DialogEditor", "Name" : "Enabled", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is enabled or disabled", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables control (default), False disables control." }] }, { "Container" : "Fit.Controls.DialogEditor", "Name" : "Focused", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether editor control has focus.\nDialog must be open and visible for focus assignment to work.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True assigns focus, False removes focus (blur)" }] }, { "Container" : "Fit.Controls.DialogEditor", "Name" : "IsDirty", "Returns" : "boolean", "Access" : "public", "Description" : "Get value indicating whether user has changed control value", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DialogEditor", "Name" : "Placeholder", "Returns" : "string", "Access" : "public", "Description" : "Get/set value used as a placeholder to indicate expected input on supported browsers", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, value is set as placeholder" }] }, { "Container" : "Fit.Controls.DialogEditor", "Name" : "Value", "Returns" : "string", "Access" : "public", "Description" : "Get/set editor control value", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, value is inserted into control" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "GetContentDomElement", "Returns" : "DOMElement", "Access" : "public", "Description" : "Get dialog content element", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Height", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set dialog height - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, dialog height is updated to specified value. A value of -1 resets height to default." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, dialog width is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.DialogInterface", "Name" : "Cancel", "Returns" : "", "Access" : "public", "Description" : "Cancel dialog - equivalent to clicking the Cancel button, or the OK button on an Alert dialog", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DialogInterface", "Name" : "Confirm", "Returns" : "", "Access" : "public", "Description" : "Confirm dialog - equivalent to clicking the OK button", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DialogInterface", "Name" : "Dismiss", "Returns" : "", "Access" : "public", "Description" : "Dismiss dialog without taking any action", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.Dialog", "Name" : "IsOpen", "Returns" : "boolean", "Access" : "public", "Description" : "Get flag indicating whether dialog is open or not", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Maximizable", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether dialog is maximizable or not", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, a value of True makes dialog maximizable by adding a maximize button while False disables it" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Maximized", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether dialog is maximized or not", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True maximizes dialog while False restores it" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "MaximumHeight", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set dialog maximum height - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, dialog maximum height is updated to specified value. A value of -1 resets maximum height." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, dialog maximum height is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "MaximumWidth", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set dialog maximum width - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, dialog maximum width is updated to specified value. A value of -1 resets maximum width." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, dialog maximum width is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "MinimumHeight", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set dialog minimum height - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, dialog minimum height is updated to specified value. A value of -1 resets minimum height." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, dialog minimum height is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "MinimumWidth", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set dialog minimum width - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, dialog minimum width is updated to specified value. A value of -1 resets minimum width." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, dialog minimum width is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Modal", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether dialog is modal or not", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, True enables modal mode, False disables it" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "OnClose", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when dialog is closed or dismissed.\nUse this event to react to dialog being closed, no matter\nthe cause. Use OnDismiss event to detect when user closed it.\nAction can be suppressed by returning False.\nFunction receives one argument: Sender (Fit.Controls.Dialog)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.DialogTypeDefs.DialogEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "OnDismiss", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when dialog is being dismissed by the user.\nAction can be suppressed by returning False.\nFunction receives one argument: Sender (Fit.Controls.Dialog)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.DialogTypeDefs.DialogEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Open", "Returns" : "", "Access" : "public", "Description" : "Open dialog", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "renderTarget", "Type" : "DOMElement", "Default" : "undefined", "Nullable" : false, "Description" : "Optional render target which can be used to render dialog to specific\ncontainer rather than the root of the body element. This allows for\nthe dialog to inherit styles from the specified render target." }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "RemoveAllButtons", "Returns" : "", "Access" : "public", "Description" : "Remove all buttons from dialog", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dispose", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, a value of True results in buttons being disposed (destroyed)" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "RemoveButton", "Returns" : "", "Access" : "public", "Description" : "Remove button from dialog", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "btn", "Type" : "Fit.Controls.Button", "Default" : "", "Nullable" : false, "Description" : "Instance of Fit.Controls.Button" }, { "Name" : "dispose", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, a value of True results in button being disposed (destroyed)" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Reset", "Returns" : "", "Access" : "public", "Description" : "Reset custom size (Resizable enabled) and position (Draggable enabled)", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Resizable", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether dialog can be resized by the user", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, a value of True enables resizing, False disables it (default)" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Title", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set title - returns null if not set, and null can be passed to remove title", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, dialog title is updated with specified value" }] }, { "Container" : "Fit.Controls.Dialog", "Name" : "Width", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set dialog width - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, dialog width is updated to specified value. A value of -1 resets width (auto sizing)." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, dialog width is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "AddSelection", "Returns" : "", "Access" : "public", "Description" : "Add selection to control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "title", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Item title" }, { "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Item value" }, { "Name" : "valid", "Type" : "boolean", "Default" : "true", "Nullable" : false, "Description" : "Flag indicating whether selection is valid or not. Invalid selections are highlighted and\nnot included when selections are retrived using Value() function, and not considered when\nIsDirty() is called to determine whether control value has been changed by user.\nGetSelections(true) can be used to retrive all items, including invalid selections." }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "ClearInput", "Returns" : "", "Access" : "public", "Description" : "Clear text field", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DropDown", "Name" : "ClearSelections", "Returns" : "", "Access" : "public", "Description" : "Clear selections", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DropDown", "Name" : "CloseDropDown", "Returns" : "", "Access" : "public", "Description" : "Close drop down menu", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DropDown", "Name" : "DetectBoundaries", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether boundary/collision detection is enabled or not (off by default).\nThis may cause drop down to open upwards if sufficient space is not available below control.\nIf control is contained in a scrollable parent, this will be considered the active viewport,\nand as such define the active boundaries - unless relativeToViewport is set to True, in which\ncase the actual browser viewport will be used.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables collision detection, False disables it (default)" }, { "Name" : "relativeToViewport", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True results in viewport being considered the container to which available space is determined.\nThis also results in DropDown menu being positioned with position:fixed, allowing it to escape a container\nwith overflow (e.g. overflow:auto|hidden|scroll). Be aware though that this does not work reliably in combination\nwith CSS animation and CSS transform as it creates a new stacking context to which position:fixed becomes relative.\nA value of False (default) results in available space being determined relative to the boundaries of the\ncontrol's scroll parent. The DropDown menu will stay within its container and not overflow it." }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "DropDown", "Returns" : "", "Access" : "public", "Description" : "Create instance of DropDown control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "DropDownMaxHeight", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set max height of drop down - returns object with Value (number) and Unit (string) properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, max height is updated to specified value. A value of -1 forces picker to fit height to content." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, max height is updated to specified CSS unit, otherwise px is assumed" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "DropDownMaxWidth", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set max width of drop down - returns object with Value (number) and Unit (string) properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, max width is updated to specified value. A value of -1 forces drop down to use control width." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, max width is updated to specified CSS unit, otherwise px is assumed" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "GetHighlighted", "Returns" : "Fit.Controls.DropDownTypeDefs.DropDownItem | null", "Access" : "public", "Description" : "Get item currently highlighted in picker control.\nReturns an object with Title (string), Value (string),\nand Valid (boolean) properties if found, otherwise Null.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DropDown", "Name" : "GetInputValue", "Returns" : "string", "Access" : "public", "Description" : "Get input value", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DropDown", "Name" : "GetPicker", "Returns" : "Fit.Controls.PickerBase | null", "Access" : "public", "Description" : "Get picker control used to add items to drop down control", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DropDown", "Name" : "GetSelectionByValue", "Returns" : "Fit.Controls.DropDownTypeDefs.DropDownItem | null", "Access" : "public", "Description" : "Get selected item by value - returns object with Title (string), Value (string), and Valid (boolean) properties if found, otherwise Null is returned", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value of selected item to retrive" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "GetSelections", "Returns" : "Fit.Controls.DropDownTypeDefs.DropDownItem[]", "Access" : "public", "Description" : "Get selected items - returned array contain objects with Title (string), Value (string), and Valid (boolean) properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "includeInvalid", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Flag indicating whether invalid selection should be included or not" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "HighlightFirst", "Returns" : "boolean", "Access" : "public", "Description" : "Make DropDown highlight first selectable item when opened", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If set, True enables feature, False disables it (default)" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "HtmlAllowed", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether HTML is allowed (shown) in selected items", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables support for HTML, False disables it" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "InputEnabled", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether input is enabled", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables input, False disables it" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "InvalidSelectionMessage", "Returns" : "string", "Access" : "public", "Description" : "Get/set mouse over text shown for invalid selections", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "msg", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, error message for invalid selections are set" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "IsDropDownOpen", "Returns" : "boolean", "Access" : "public", "Description" : "Get flag indicating whether drop down is open or not", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DropDown", "Name" : "MultiSelectionMode", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether control allows for multiple selections", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables multi selection mode, False disables it" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "OnClose", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when drop down menu is closed.\nFunction receives one argument: Sender (Fit.Controls.DropDown)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.DropDownTypeDefs.InteractionEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "OnInputChanged", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when input value is changed.\nFunction receives two arguments:\nSender (Fit.Controls.DropDown) and Value (string).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.DropDownTypeDefs.InputChangedEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "OnOpen", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when drop down menu is opened.\nFunction receives one argument: Sender (Fit.Controls.DropDown)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.DropDownTypeDefs.InteractionEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "OnPaste", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when text is pasted into input field.\nFunction receives two arguments:\nSender (Fit.Controls.DropDown) and Value (string).\nReturn False to cancel event and change, and prevent OnInputChanged from firing.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.DropDownTypeDefs.PasteEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "OpenDropDown", "Returns" : "", "Access" : "public", "Description" : "Open drop down menu", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.DropDown", "Name" : "PersistView", "Returns" : "boolean", "Access" : "public", "Description" : "Make DropDown restore scroll position and previously highlighted item when reopened", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If set, True enables feature, False disables it (default)" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "Placeholder", "Returns" : "string", "Access" : "public", "Description" : "Get/set value used as a placeholder on supported browsers, to indicate expected value or action", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, value is set as placeholder" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "RemoveSelection", "Returns" : "", "Access" : "public", "Description" : "Remove selected item by value", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value of selected item to remove" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "RenameSelection", "Returns" : "", "Access" : "public", "Description" : "Rename title of selected item by its value", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value of selected item to rename" }, { "Name" : "newTitle", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "New item title" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "SearchModeOnFocus", "Returns" : "boolean", "Access" : "public", "Description" : "Clear input and display \"Search..\" placeholder when control receives focus.\nIf SearchModeOnFocus is enabled, InputEnabled will also be enabled. Disabling\nSearchModeOnFocus does not disable InputEnabled.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables search mode on focus, False disables it" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "SelectionModeToggle", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control allow user to toggle Selection Mode (Visual or Text)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables toggle button, False disables it" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "SetInputValue", "Returns" : "", "Access" : "public", "Description" : "Set value of text field which is automatically cleared the first time control\nreceives focus. Notice that this function should be called after AddSelection(..),\nsince adding selections causes the value of the text field to be cleared.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "New value for text field" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "SetPicker", "Returns" : "", "Access" : "public", "Description" : "Set picker control used to add items to drop down control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "pickerControl", "Type" : "Fit.Controls.PickerBase | null", "Default" : "", "Nullable" : false, "Description" : "Picker control extending from PickerBase" }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "TextSelectionMode", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether to use Text Selection Mode (true) or Visual Selection Mode (false).\nVisual Selection Mode is the default way selected items are displayed, but it may result in control\nchanging dimensions as items are added/removed. Text Selection Mode prevents this and gives the\nuser a traditional DropDown control instead.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables Text Selection Mode, False disables it (Visual Selection Mode)" }, { "Name" : "cb", "Type" : "Fit.Controls.DropDownTypeDefs.SelectionToStringCallback", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, function will be called with DropDown being passed as an argument when selection text\nneeds to be updated. Function is expected to return a string representation of the selected items." }] }, { "Container" : "Fit.Controls.DropDown", "Name" : "UpdateSelected", "Returns" : "Fit.Controls.DropDownTypeDefs.UpdatedDropDownItem[]", "Access" : "public", "Description" : "Update title of selected items based on data in associated picker control.\nAn array of updated items are returned. Each object has the following properties:\n- Title: string (Updated title)\n- Value: string (Unique item value)\n- Exists: boolean (True if item still exists, False if not)\nThis is useful if selections are stored in a database, and\navailable items may have their titles changed over time. Invoking\nthis function will ensure that the selection displayed to the user\nreflects the actual state of data in the picker control. Be aware\nthat this function can only update selected items if a picker has been\nassociated (see SetPicker(..)), and it contains the data from which\nselected items are to be updated.\nItems that no longer exists in picker's data will not automatically\nbe removed.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "AutoUpload", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control automatically starts upload process when files are selected", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, True enables auto upload, False disables it (default)" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "ButtonText", "Returns" : "string", "Access" : "public", "Description" : "Get/set button text", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, button text is set to specified value" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "DropZoneText", "Returns" : "string", "Access" : "public", "Description" : "Get/set drop zone text", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, drop zone text is set to specified value" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "Enabled", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is enabled or not.\nAny files added to the control prior to being disabled, will\nnot be included with a traditional postback to the server.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, True enables control, False disables it" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "FilePicker", "Returns" : "", "Access" : "public", "Description" : "Create instance of FilePicker control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "GetFiles", "Returns" : "Fit.Controls.FilePickerTypeDefs.File[]", "Access" : "public", "Description" : "Get collection of selected files. Each file is represented as an object with the following members:\n- Filename:string (Name of selected file)\n- Type:string (Mime type for selected file)\n- Size:integer (File size in bytes)\n- Id:string (Unique file ID)\n- Processed:boolean (Flag indicating whether file has been uploaded, or is currently being uploaded)\n- Progress:integer (Value from 0-100 indicating upload progress, a value of -1 when not uploading/uploaded)\n- FileObject:File (Native JS File object representing selected file)\n- GetImagePreview:function (Returns an HTMLImageElement with a preview for supported file types)\n- ServerResponse:string (Response from server after successful file upload, otherwise Null)\nNOTICE: The following properties/functions are not available in Legacy Mode: Type, Size, FileObject, GetImagePreview().", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "IsLegacyModeEnabled", "Returns" : "boolean", "Access" : "public", "Description" : "Get value indicating whether control is in legacy mode (old fashion upload control)", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "MultiSelectionMode", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether control allows for multiple selections", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables multi selection mode, False disables it" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "OnCompleted", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when all files selected have been fully processed.\nBe aware that this event fires even if some files were not uploaded successfully.\nAt this point files returned from GetFiles() contains a ServerResponse:string property\ncontaining the response from the server. This property remains Null in case of errors.\nFunction receives one argument: Sender (Fit.Controls.FlePicker).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.FilePickerTypeDefs.CompletedEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "OnFailure", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired for a given file if the upload process failed.\nFunction receives two arguments:\nSender (Fit.Controls.FlePicker) and EventArgs object.\nEventArgs object contains the following members:\n- Filename:string (Name of given file)\n- Type:string (Mime type for given file)\n- Size:integer (File size in bytes)\n- Id:string (Unique file ID)\n- Processed:boolean (Flag indicating whether file has been uploaded, or is currently being uploaded)\n- Progress:integer (A value from 0-100 indicating how many percent of the file has been uploaded)\n- FileObject:File (Native JS File object representing given file)\n- GetImagePreview:function (Returns an HTMLImageElement with a preview for supported file types)\n- ServerResponse:string (Response from server after successful file upload, otherwise Null)\nBe aware that Type and Size cannot be determined in Legacy Mode, and that FileObject in this\ncase will be Null. GetImagePreview() will also return Null in Legacy Mode.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.FilePickerTypeDefs.ProgressEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "OnProgress", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when the upload process for a given file is progressing.\nFunction receives two arguments:\nSender (Fit.Controls.FlePicker) and EventArgs object.\nEventArgs object contains the following members:\n- Filename:string (Name of given file)\n- Type:string (Mime type for given file)\n- Size:integer (File size in bytes)\n- Id:string (Unique file ID)\n- Processed:boolean (Flag indicating whether file has been uploaded, or is currently being uploaded)\n- Progress:integer (A value from 0-100 indicating how many percent of the file has been uploaded)\n- FileObject:File (Native JS File object representing given file)\n- GetImagePreview:function (Returns an HTMLImageElement with a preview for supported file types)\n- ServerResponse:string (Response from server after successful file upload, otherwise Null)\nBe aware that Type and Size cannot be determined in Legacy Mode, and that FileObject in this\ncase will be Null. GetImagePreview() will also return Null in Legacy Mode.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.FilePickerTypeDefs.ProgressEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "OnSuccess", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when a file has successfully been uploaded.\nFunction receives two arguments:\nSender (Fit.Controls.FlePicker) and EventArgs object.\nEventArgs object contains the following members:\n- Filename:string (Name of given file)\n- Type:string (Mime type for given file)\n- Size:integer (File size in bytes)\n- Id:string (Unique file ID)\n- Processed:boolean (Flag indicating whether file has been uploaded, or is currently being uploaded)\n- Progress:integer (A value from 0-100 indicating how many percent of the file has been uploaded)\n- FileObject:File (Native JS File object representing given file)\n- GetImagePreview:function (Returns an HTMLImageElement with a preview for supported file types)\n- ServerResponse:string (Response from server after successful file upload, otherwise Null)\nBe aware that Type and Size cannot be determined in Legacy Mode, and that FileObject in this\ncase will be Null. GetImagePreview() will also return Null in Legacy Mode.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.FilePickerTypeDefs.ProgressEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "OnUpload", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when upload is started.\nOperation can be canceled by returning False.\nFunction receives one argument: Sender (Fit.Controls.FilePicker).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.FilePickerTypeDefs.CancelableUploadEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "ShowDropZone", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is displayed as a drop zone on supported browsers or not", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, True enables drop zone, False disables it (default)" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "Upload", "Returns" : "", "Access" : "public", "Description" : "Upload selected files. Each file will be uploaded using POST over individual HTTP connections,\nand each file will be accessible from the POST data collection using the SelectedFile key.\nUse the OnProgress event to monitor the upload process, or use the OnCompleted event\nto be notified when all files have been fully processed.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "skip", "Type" : "string[]", "Default" : "undefined", "Nullable" : false, "Description" : "Optional argument allowing some of the selected files to be skipped during\nupload. The argument is a string array with the names of the files to skip." }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "Url", "Returns" : "string", "Access" : "public", "Description" : "Get/set URL to which files are uploaded when FilePicker.Upload() is called.\nMultiple files will be uploaded using POST over individual HTTP connections,\nand each file will be accessible from the POST data collection using the SelectedFile key.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "url", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, upload URL is set to specified value" }] }, { "Container" : "Fit.Controls.FilePicker", "Name" : "Width", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Fit.Controls.ControlBase.Width override:\nGet/set control width - returns object with Value and Unit properties.\nThis implementation differs from ControlBase.Width as passing a value of -1 resets\nthe control width to fit its content, rather than assuming a fixed default width.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control width is updated to specified value. A value of -1 resets control width." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, control width is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.Input", "Name" : "CheckSpelling", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control should have spell checking enabled (default) or disabled", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, true enables spell checking while false disables it" }] }, { "Container" : "Fit.Controls.Input", "Name" : "DebounceOnChange", "Returns" : "integer", "Access" : "public", "Description" : "Get/set number of milliseconds used to postpone onchange event.\nEvery new keystroke/change resets the timer. Debouncing can\nimprove performance when working with large amounts of data.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "timeout", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, timeout value (milliseconds) is updated - a value of -1 disables debouncing" }] }, { "Container" : "Fit.Controls.Input", "Name" : "DesignMode", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is in Design Mode allowing for rich HTML content.\nNotice that this control type requires dimensions (Width/Height) to be specified in pixels.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables Design Mode, False disables it" }, { "Name" : "editorConfig", "Type" : "Fit.Controls.InputTypeDefs.DesignModeConfig", "Default" : "undefined", "Nullable" : false, "Description" : "If provided and DesignMode is enabled, configuration is applied when editor is created." }] }, { "Container" : "Fit.Controls.Input", "Name" : "Input", "Returns" : "", "Access" : "public", "Description" : "Create instance of Input control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.Input", "Name" : "Maximizable", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is maximizable.\nMaking control maximizable will disable Resizable.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables maximize button, False disables it" }, { "Name" : "heightMax", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, this becomes the height of the input control when maximized.\nThe value is considered the same unit set using Height(..) which defaults to px.\nIf not set, the value assumes twice the height set using Height(..)." }] }, { "Container" : "Fit.Controls.Input", "Name" : "Maximized", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is maximized", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True maximizes control, False minimizes it" }] }, { "Container" : "Fit.Controls.Input", "Name" : "MultiLine", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control is in Multi Line mode (textarea)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables Multi Line mode, False disables it" }] }, { "Container" : "Fit.Controls.Input", "Name" : "Placeholder", "Returns" : "string", "Access" : "public", "Description" : "Get/set value used as a placeholder to indicate expected input on supported browsers", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, value is set as placeholder" }] }, { "Container" : "Fit.Controls.Input", "Name" : "Resizable", "Returns" : "Fit.Controls.InputResizing", "Access" : "public", "Description" : "Get/set value indicating whether control is resizable on supported\n(modern) browsers. Making control resizable will disable Maximizable.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "Fit.Controls.InputResizing", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, determines whether control resizes, and in what direction(s)." }] }, { "Container" : "Fit.Controls.Input", "Name" : "Type", "Returns" : "Fit.Controls.InputType", "Access" : "public", "Description" : "Get/set input type (e.g. Text, Password, Email, etc.)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "Fit.Controls.InputType", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, input type is changed to specified value" }] }, { "Container" : "Fit.Controls.ListView", "Name" : "AddItem", "Returns" : "", "Access" : "public", "Description" : "Add item to ListView", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "title", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Item title" }, { "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Item value" }] }, { "Container" : "Fit.Controls.ListView", "Name" : "GetItem", "Returns" : "Fit.Controls.ListViewTypeDefs.ListViewItem | null", "Access" : "public", "Description" : "Get item by value - returns object with Title (string) and Value (string) properties if found, otherwise Null", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value of item to retrieve" }] }, { "Container" : "Fit.Controls.ListView", "Name" : "GetItems", "Returns" : "Fit.Controls.ListViewTypeDefs.ListViewItem[]", "Access" : "public", "Description" : "Get all items - returns array containing objects with Title (string) and Value (string) properties", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.ListView", "Name" : "HasItem", "Returns" : "boolean", "Access" : "public", "Description" : "Returns value indicating whether control contains item with specified value", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value of item to check for" }] }, { "Container" : "Fit.Controls.ListView", "Name" : "HtmlAllowed", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether HTML is allowed (shown) in ListView items", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables support for HTML, False disables it" }] }, { "Container" : "Fit.Controls.ListView", "Name" : "ListView", "Returns" : "", "Access" : "public", "Description" : "Create instance of ListView control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "controlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.ListView", "Name" : "OnSelect", "Returns" : "", "Access" : "public", "Description" : "Register event handler fired when item is being selected.\nSelection can be canceled by returning False.\nThe following arguments are passed to event handler function:\nSender (ListView) and Item (with Title (string) and Value (string) properties).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ListViewTypeDefs.OnSelectEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.ListView", "Name" : "OnSelected", "Returns" : "", "Access" : "public", "Description" : "Register event handler fired when item is selected.\nThe following arguments are passed to event handler function:\nSender (ListView) and Item (with Title (string) and Value (string) properties).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ListViewTypeDefs.OnSelectedEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.ListView", "Name" : "RemoveItem", "Returns" : "", "Access" : "public", "Description" : "Remove item from ListView", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value of item to remove" }] }, { "Container" : "Fit.Controls.ListView", "Name" : "RemoveItems", "Returns" : "", "Access" : "public", "Description" : "Remove all items from ListView", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "Destroy", "Returns" : "", "Access" : "public", "Description" : "Overridden by control developers (required).\nDestroys control to free up memory.\nMake sure to call Destroy() on PickerBase which can be done like so:\nthis.Destroy = Fit.Core.CreateOverride(this.Destroy, function()\n{\n     // Add control specific logic here\n     base(); // Call Destroy on PickerBase\n});", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "GetDomElement", "Returns" : "DOMElement", "Access" : "public", "Description" : "Overridden by control developers (required).\nGet DOMElement representing control.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "GetHighlighted", "Returns" : "Fit.Controls.PickerBaseTypeDefs.Item | null", "Access" : "public", "Description" : "Overridden by control developers (optional).\nHost control or external code may invoke this function to obtain the currently\nhighlighted item in the picker control.\nFunction returns Null when not implemented or when no item is highlighted. If found,\nan object with the following signature is returned: { Title: string, Value: string }.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "GetItemByValue", "Returns" : "Fit.Controls.PickerBaseTypeDefs.Item | null", "Access" : "public", "Description" : "Overridden by control developers (optional).\nHost control may invoke this function, for instance to update the title of selected items,\nto make sure these properly reflect the state of data displayed in the picker.\nFunction returns Null when not implemented or when an item is not found. If found, an object\nwith the following signature is returned: { Title: string, Value: string }.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value of item to retrieve" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "HandleEvent", "Returns" : "", "Access" : "public", "Description" : "Overridden by control developers (optional).\nHost control dispatches keyboard events to this function to allow\npicker control to handle keyboard navigation with keys such as\narrow up/down/left/right, enter, space, etc.\nPicker may return False to prevent host control from reacting to given event.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "e", "Type" : "Event", "Default" : "undefined", "Nullable" : false, "Description" : "Keyboard event to process" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "HighlightFirst", "Returns" : "boolean", "Access" : "public", "Description" : "Overridden by control developers (optional).\nThis function can be used to make the picker control automatically highlight the first item.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If set, True enables feature, False disables it (default)" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "MaxHeight", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set max height of control - returns object with Value (number) and Unit (string) properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, max height is updated to specified value. A value of -1 forces picker to fit height to content." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, max height is updated to specified CSS unit, otherwise px is assumed" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "OnFocusIn", "Returns" : "", "Access" : "public", "Description" : "Register OnFocusIn event handler which is invoked when picker gains focus", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.PickerBaseTypeDefs.BaseEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function which accepts Sender (PickerBase)" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "OnFocusOut", "Returns" : "", "Access" : "public", "Description" : "Register OnFocusOut event handler which is invoked when picker loses focus", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.PickerBaseTypeDefs.BaseEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function which accepts Sender (PickerBase)" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "OnHide", "Returns" : "", "Access" : "public", "Description" : "Register event handler fired when picker control is hidden in host control.\nThe following argument is passed to event handler function: Sender (PickerBase).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.PickerBaseTypeDefs.BaseEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "OnItemSelectionChanged", "Returns" : "", "Access" : "public", "Description" : "Register event handler fired when item selection is changed.\nThis event may be fired multiple times when a selection is changed, e.g. in Single Selection Mode,\nwhere an existing selected item is deselected, followed by selection of new item.\nThe following arguments are passed to event handler function:\nSender (PickerBase), EventArgs (containing Title (string), Value (string), and Selected (boolean) properties).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.PickerBaseTypeDefs.SelectionChangedEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "OnItemSelectionChanging", "Returns" : "", "Access" : "public", "Description" : "Register event handler fired when item selection is changing.\nSelection can be canceled by returning False.\nThe following arguments are passed to event handler function:\nSender (PickerBase), EventArgs (containing Title (string), Value (string), and Selected (boolean) properties).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.PickerBaseTypeDefs.SelectionChangingEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "OnItemSelectionComplete", "Returns" : "", "Access" : "public", "Description" : "Register event handler invoked when a series of related item changes are completed", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.PickerBaseTypeDefs.BaseEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function which accepts Sender (PickerBase)" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "OnShow", "Returns" : "", "Access" : "public", "Description" : "Register event handler fired when picker control is shown in host control.\nThe following argument is passed to event handler function: Sender (PickerBase).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.PickerBaseTypeDefs.BaseEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "PersistView", "Returns" : "boolean", "Access" : "public", "Description" : "Overridden by control developers (optional).\nThis function can be used to tell the picker control to persist (remember) its current state between interactions.\nFor instance a TreeView control would remembers its scroll position and highlighted node, while a calendar would\nremember the previously selected year and month.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If set, True enables feature, False disables it (default)" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "RevealItemInView", "Returns" : "", "Access" : "public", "Description" : "Overridden by control developers (optional).\nHost control may invoke this function to reveal a selected item in\nthe picker control. Often this means having the item scrolled into view.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Value of item to reveal in view" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "SetSelections", "Returns" : "", "Access" : "public", "Description" : "Overridden by control developers (optional).\nHost control invokes this function when picker is assigned to host control, providing an array\nof items already selected. An item is an object with a Title (string) and Value (string) property set.\nIf picker defines preselected items, firing OnItemSelectionChanged\nfor these items, will update the host control appropriately.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "items", "Type" : "Fit.Controls.PickerBaseTypeDefs.Item[]", "Default" : "", "Nullable" : false, "Description" : "Array containing selected items: {Title:string, Value:string}" }] }, { "Container" : "Fit.Controls.PickerBase", "Name" : "UpdateItemSelection", "Returns" : "", "Access" : "public", "Description" : "Overridden by control developers (optional).\nHost control invokes this function when an item's selection state is changed from host control.\nPicker control is responsible for firing FireOnItemSelectionChanging and FireOnItemSelectionChanged,\nas demonstrated below, if the picker control contains the given item.\n\nvar item = getItem(value);\nif (item !== null)\n{\n     if (this._internal.FireOnItemSelectionChanging(item.Title, item.Value, item.Selected, programmaticallyChanged) === false)\n         return false;\n\n     item.SetSelected(selected);\n     this._internal.FireOnItemSelectionChanged(item.Title, item.Value, item.Selected, programmaticallyChanged);\n}\n\nBoth events are fired by passing the given item's title, value, and current selection state.\nBe aware that host control may pass information about items not found in picker, e.g. when pasting\nitems which may turn out not to be valid selections.\nReturning False from UpdateItemSelection will cancel the change.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Item value" }, { "Name" : "selected", "Type" : "boolean", "Default" : "", "Nullable" : false, "Description" : "True if item was selected, False if item was deselected" }, { "Name" : "programmaticallyChanged", "Type" : "boolean", "Default" : "", "Nullable" : false, "Description" : "True if item was selected programmatically (not by user interaction), False otherwise" }] }, { "Container" : "Fit.Controls.ProgressBar", "Name" : "OnProgress", "Returns" : "", "Access" : "public", "Description" : "Set callback function invoked when progress is changed", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.ProgressBarTypeDefs.ProgressEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler invoked when progress is changed - takes progress bar instance as argument" }] }, { "Container" : "Fit.Controls.ProgressBar", "Name" : "Progress", "Returns" : "integer", "Access" : "public", "Description" : "Get/set progress - a value between 0 and 100", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, progress is set to specified value (0-100)" }] }, { "Container" : "Fit.Controls.ProgressBar", "Name" : "ProgressBar", "Returns" : "", "Access" : "public", "Description" : "Create instance of ProgressBar control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "controlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.ProgressBar", "Name" : "Title", "Returns" : "string", "Access" : "public", "Description" : "Get/set title in progress bar", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, title will be set to specified value" }] }, { "Container" : "Fit.Controls.ProgressBar", "Name" : "Width", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set control width - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control width is updated to specified value. A value of -1 resets control width." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, control width is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.SoftLog", "Name" : "CatchUncaughtExceptions", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value determining whether to catch unhandled exceptions", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables exception logging, False disables it" }] }, { "Container" : "Fit.Controls.SoftLog", "Name" : "Clear", "Returns" : "", "Access" : "public", "Description" : "Clear log", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.SoftLog", "Name" : "Height", "Returns" : "Fit.TypeDefs.CssValue", "Access" : "public", "Description" : "Get/set control height - returns object with Value and Unit properties", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "number", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, control height is updated to specified value. A value of -1 resets control height." }, { "Name" : "unit", "Type" : "Fit.TypeDefs.CssUnit", "Default" : "px", "Nullable" : false, "Description" : "If defined, control height is updated to specified CSS unit" }] }, { "Container" : "Fit.Controls.SoftLog", "Name" : "InterceptConsoleLog", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value determining whether to intercept console.log(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables console.log(..) interception, False disables it" }] }, { "Container" : "Fit.Controls.SoftLog", "Name" : "Log", "Returns" : "", "Access" : "public", "Description" : "Log message", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "msg", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Text message to log" }] }, { "Container" : "Fit.Controls.SoftLog", "Name" : "MaxEntries", "Returns" : "integer", "Access" : "public", "Description" : "Get/set number of log entries preserved", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes number of log entries preserved" }] }, { "Container" : "Fit.Controls.SoftLog", "Name" : "SoftLog", "Returns" : "", "Access" : "public", "Description" : "Create instance of SoftLog control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "controlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "AddChild", "Returns" : "", "Access" : "public", "Description" : "Add node to TreeView", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "node", "Type" : "Fit.Controls.TreeViewNode", "Default" : "", "Nullable" : false, "Description" : "Node to add" }, { "Name" : "atIndex", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "Optional index at which node is added" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "AllowDeselect", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether user is allowed to deselect nodes.\nBy default the user is allowed to deselect nodes.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes behaviour to specified value" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "Clear", "Returns" : "", "Access" : "public", "Description" : "Fit.Controls.ControlBase.Clear override:\nClear control value.\nOverride allows for non-selectable nodes to keep their selection state.\nThis is useful if TreeView has been configured to preselect some non-selectable\nnodes, hence preventing the user from removing these selections. In that case the\ndesired functionality of the Clear function could be to preserve these preselections.\nIf called with no arguments, all selections are cleared.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "preserveNonSelectable", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "True causes selection state of non-selectable nodes to be preserved, False do not" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "CollapseAll", "Returns" : "", "Access" : "public", "Description" : "Collapse all nodes, optionally to a maximum depth", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "maxDepth", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "Optional maximum depth to collapse nodes" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "ContextMenu", "Returns" : "Fit.Controls.ContextMenu", "Access" : "public", "Description" : "Get/set instance of ContextMenu control triggered when right clicking nodes in TreeView", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "contextMenu", "Type" : "Fit.Controls.ContextMenu | null", "Default" : "", "Nullable" : false, "Description" : "If defined, assignes ContextMenu control to TreeView" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "ExpandAll", "Returns" : "", "Access" : "public", "Description" : "Expand all nodes, optionally to a maximum depth", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "maxDepth", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "Optional maximum depth to expand nodes" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "GetActiveNode", "Returns" : "Fit.Controls.TreeViewNode | null", "Access" : "public", "Description" : "Get active (highlighted or focused) node - returns Null if no node is currently active", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeView", "Name" : "GetAllNodes", "Returns" : "Fit.Controls.TreeViewNode[]", "Access" : "public", "Description" : "Get all nodes across all children and their children, in a flat structure", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeView", "Name" : "GetChild", "Returns" : "Fit.Controls.TreeViewNode | null", "Access" : "public", "Description" : "Get node by value - returns Null if not found", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Node value" }, { "Name" : "recursive", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True enables recursive search" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "GetChildren", "Returns" : "Fit.Controls.TreeViewNode[]", "Access" : "public", "Description" : "Get all children", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeView", "Name" : "GetNodeAbove", "Returns" : "Fit.Controls.TreeViewNode | null", "Access" : "public", "Description" : "Get node above specified node - returns Null if no node is above the specified one", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "node", "Type" : "Fit.Controls.TreeViewNode", "Default" : "", "Nullable" : false, "Description" : "Node to get node above" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "GetNodeBelow", "Returns" : "Fit.Controls.TreeViewNode | null", "Access" : "public", "Description" : "Get node below specified node - returns Null if no node is below the specified one", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "node", "Type" : "Fit.Controls.TreeViewNode", "Default" : "", "Nullable" : false, "Description" : "Node to get node below" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "GetNodeFocused", "Returns" : "Fit.Controls.TreeViewNode | null", "Access" : "public", "Description" : "Get node currently having focus - returns Null if no node has focus", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeView", "Name" : "HtmlAllowed", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether HTML is allowed (shown) in TreeView nodes", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables support for HTML, False disables it" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "KeyboardNavigation", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether keyboard navigation is enabled", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables keyboard navigation, False disables it" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "Lines", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether helper lines are shown.\nNotice that helper lines cause node items to obtain a fixed\nline height of 20px, making it unsuitable for large fonts.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables helper lines, False disables them" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "AddChild", "Returns" : "", "Access" : "public", "Description" : "Add child node", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "node", "Type" : "Fit.Controls.TreeViewNode", "Default" : "", "Nullable" : false, "Description" : "Node to add" }, { "Name" : "atIndex", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "Optional index at which node is added" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "Dispose", "Returns" : "", "Access" : "public", "Description" : "Destroys object to free up memory", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "Expanded", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether node is expanded", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True expands node, False collapses it" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "Focused", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether node has focus", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True assigns focus, False removes it (blur)" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "GetChild", "Returns" : "Fit.Controls.TreeViewNode | null", "Access" : "public", "Description" : "Get node by value - returns Null if not found", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Node value" }, { "Name" : "recursive", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True enables recursive search" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "GetChildren", "Returns" : "Fit.Controls.TreeViewNode[]", "Access" : "public", "Description" : "Get all children", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "GetDomElement", "Returns" : "DOMElement", "Access" : "public", "Description" : "Get DOMElement representing node", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "GetIndex", "Returns" : "integer", "Access" : "public", "Description" : "Get node index (position in parent node or TreeView) - returns -1 if node has not been added yet", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "GetLevel", "Returns" : "integer", "Access" : "public", "Description" : "Get node depth in current hierarchy - root node is considered level 0", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "GetParent", "Returns" : "Fit.Controls.TreeViewNode | null", "Access" : "public", "Description" : "Get parent node - returns Null if node has no parent", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "GetTreeView", "Returns" : "Fit.Controls.TreeView | null", "Access" : "public", "Description" : "Returns TreeView if associated, otherwise Null", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "HasCheckbox", "Returns" : "boolean", "Access" : "public", "Description" : "Get value indicating whether node has its selection checkbox enabled", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "HtmlAllowed", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether HTML is allowed (shown) in TreeView node", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables support for HTML, False disables it" }, { "Name" : "recursive", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True applies change recursively to children" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "IsBehavioralNode", "Returns" : "boolean", "Access" : "public", "Description" : "Returns True if this is a behavioral node, otherwise False - see SetBehavioralNodeCallback for more details", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "RemoveChild", "Returns" : "", "Access" : "public", "Description" : "Remove child node - this does not result in TreeView.OnSelect and TreeView.OnSelected being fired for selected nodes", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "node", "Type" : "Fit.Controls.TreeViewNode", "Default" : "", "Nullable" : false, "Description" : "Node to remove" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "Selectable", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether user can change node selection state", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables node selection, False disables it" }, { "Name" : "showCheckbox", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True adds a selection checkbox, False removes it" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "Selected", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether node is selected.\nIf node is selected, it will automatically be made\nselectable, if not already done so.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "select", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True selects node, False deselects it" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "SetBehavioralNodeCallback", "Returns" : "", "Access" : "public", "Description" : "Set callback invoked when node is selected.\nA behavioral node is not considered data, so selecting it will not change\nthe control value. Since the node is not considered data, it will not trigger\nthe OnSelect and OnSelected TreeView events either.\nCallback receives two arguments:\nSender (Fit.Controls.TreeViewNode) and Selected (boolean value indicating new selection state).\nCallback may cancel changed selection state by returning False.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "func", "Type" : "Fit.Controls.TreeViewTypeDefs.CancelableBehavioralNodeCallback | null", "Default" : "", "Nullable" : false, "Description" : "Callback function invoked when node is selected - Null disables behavioral state" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "Title", "Returns" : "string", "Access" : "public", "Description" : "Get/set node title", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, node title is updated" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "TreeViewNode", "Returns" : "", "Access" : "public", "Description" : "Create instance of TreeViewNode", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "displayTitle", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Node title" }, { "Name" : "nodeValue", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Node value" }, { "Name" : "options", "Type" : "Fit.Controls.TreeViewNodeOptions", "Default" : "undefined", "Nullable" : false, "Description" : "Optional options" }] }, { "Container" : "Fit.Controls.TreeViewNode", "Name" : "Value", "Returns" : "string", "Access" : "public", "Description" : "Get node value", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.TreeView", "Name" : "OnContextMenu", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired before context menu is shown.\nThis event can be canceled by returning False.\nFunction receives two arguments:\nSender (Fit.Controls.TreeView) and Node (Fit.Controls.TreeViewNode).\nUse Sender.ContextMenu() to obtain a reference to the context menu.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.TreeViewTypeDefs.CancelableNodeEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "OnSelect", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when node is being selected or deselected.\nSelection can be canceled by returning False.\nFunction receives two arguments:\nSender (Fit.Controls.TreeView) and Node (Fit.Controls.TreeViewNode).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.TreeViewTypeDefs.CancelableNodeEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "OnSelectAll", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when Select All is used for a given node.\nThis event can be canceled by returning False.\nFunction receives two arguments:\nSender (Fit.Controls.TreeView) and EventArgs object.\nEventArgs object contains the following properties:\n- Node: Fit.Controls.TreeViewNode instance - Null if Select All was triggered for root nodes (all nodes)\n- Selected: Boolean value indicating new selection state", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.TreeViewTypeDefs.CancelableSelectionEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "OnSelectAllComplete", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when Select All operation has completed.\nFunction receives two arguments:\nSender (Fit.Controls.TreeView) and EventArgs object.\nEventArgs object contains the following properties:\n- Node: Fit.Controls.TreeViewNode instance - Null if Select All was triggered for root nodes (all nodes)\n- Selected: Boolean value indicating new selection state", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.TreeViewTypeDefs.SelectionCompleteEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "OnSelected", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when node is selected or deselected.\nSelection can not be canceled. Function receives two arguments:\nSender (Fit.Controls.TreeView) and Node (Fit.Controls.TreeViewNode).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.TreeViewTypeDefs.NodeEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "OnToggle", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when node is being expanded or collapsed.\nToggle can be canceled by returning False.\nFunction receives two arguments:\nSender (Fit.Controls.TreeView) and Node (Fit.Controls.TreeViewNode).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.TreeViewTypeDefs.CancelableNodeEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "OnToggled", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when node is expanded or collapsed.\nToggle can not be canceled. Function receives two arguments:\nSender (Fit.Controls.TreeView) and Node (Fit.Controls.TreeViewNode).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.TreeViewTypeDefs.NodeEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "RemoveAllChildren", "Returns" : "", "Access" : "public", "Description" : "Remove all nodes contained in TreeView - this does not result in OnSelect and OnSelected being fired for selected nodes", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dispose", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Set True to dispose nodes" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "RemoveChild", "Returns" : "", "Access" : "public", "Description" : "Remove node from TreeView - this does not result in OnSelect and OnSelected being fired for selected nodes", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "node", "Type" : "Fit.Controls.TreeViewNode", "Default" : "", "Nullable" : false, "Description" : "Node to remove" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "Selectable", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether user can change selection state of nodes.\nThis affects all contained nodes. To configure nodes\nindividually, use Selectable(..) function on node instances.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables node selection, False disables it" }, { "Name" : "multi", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "If defined, True enables node multi selection, False disables it" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "SelectAll", "Returns" : "", "Access" : "public", "Description" : "Select all nodes", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "selected", "Type" : "boolean", "Default" : "", "Nullable" : false, "Description" : "Value indicating whether to select or deselect nodes" }, { "Name" : "selectAllNode", "Type" : "Fit.Controls.TreeViewNode", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, children under given node is selected/deselected recursively.\nIf not specified, all nodes contained in TreeView will be selected/deselected." }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "Selected", "Returns" : "Fit.Controls.TreeViewNode[]", "Access" : "public", "Description" : "Get/set selected nodes", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "Fit.Controls.TreeViewNode[]", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, provided nodes are selected" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "SetActiveNode", "Returns" : "", "Access" : "public", "Description" : "Set active (highlighted or focused) node", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "node", "Type" : "Fit.Controls.TreeViewNode", "Default" : "", "Nullable" : false, "Description" : "Node to set active in TreeView" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "TreeView", "Returns" : "", "Access" : "public", "Description" : "Create instance of TreeView control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.TreeView", "Name" : "WordWrap", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether Word Wrapping is enabled", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables Word Wrapping, False disables it" }] }, { "Container" : "Fit.Controls.WSContextMenu", "Name" : "JsonpCallback", "Returns" : "string", "Access" : "public", "Description" : "Get/set name of JSONP callback argument. Assigning a value will enable JSONP communication.\nOften this argument is simply \"callback\". Passing Null disables JSONP communication again.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, enables JSONP and updates JSONP callback argument" }] }, { "Container" : "Fit.Controls.WSContextMenu", "Name" : "OnPopulated", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when ContextMenu has been populated with items.\nFunction receives two arguments:\nSender (Fit.Controls.WSContextMenu) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSContextMenu instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Children: JSON items received from WebService", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSContextMenuTypeDefs.DataEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSContextMenu", "Name" : "OnRequest", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when data is being requested.\nRequest can be canceled by returning False.\nFunction receives two arguments:\nSender (Fit.Controls.WSContextMenu) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSContextMenu instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSContextMenuTypeDefs.RequestEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSContextMenu", "Name" : "OnResponse", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when data is received,\nallowing for data transformation to occure before\nContextMenu is populated. Function receives two arguments:\nSender (Fit.Controls.WSContextMenu) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSContextMenu instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Children: JSON items received from WebService", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSContextMenuTypeDefs.DataEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSContextMenu", "Name" : "Url", "Returns" : "string", "Access" : "public", "Description" : "Get/set URL to WebService responsible for providing data to ContextMenu.\nWebService must deliver all data at once in the following JSON format:\n[\n     { Title: \"Test 1\", Value: \"1001\", Selectable: true, Selected: true, Children: [] },\n     { Title: \"Test 2\", Value: \"1002\", Selectable: false, Selected: false, Children: [] }\n]\nOnly Value is required. Children is a collection of items with the same format as described above.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "wsUrl", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, updates WebService URL (e.g. http://server/ws/data.asxm/GetItems)" }] }, { "Container" : "Fit.Controls.WSContextMenu", "Name" : "WSContextMenu", "Returns" : "", "Access" : "public", "Description" : "Create instance of WSContextMenu control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "controlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "ActionMenuHtmlAllowed", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether HTML is allowed (shown) in selected items in action menu", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables support for HTML, False disables it" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "ActionMenuSortingLocale", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set locale used to sort action menu alphabetically - returns null (default) if not enabled.\nLocalized sorting is not supported on legacy browsers, which will fall back to sorting based on\neach character's position in the computer's character table.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, sorting is updated to use provided locale - null disables sorting" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "AutoUpdateSelected", "Returns" : "", "Access" : "public", "Description" : "Automatically update title of selected items based on data from WebService.\nContrary to UpdateSelected(), AutoUpdateSelected() automatically loads all\ndata from the associated WebService before updating the selected items, but\nonly if one or more items are selected.\nThe callback function is invoked when selected items have been updated.\nThe following arguments are passed to function:\n- Sender (WSDropDown)\n- An array of updated items, each with a Title (string), Value (string), and Exists (boolean) property.\nNotice that items that no longer exists in picker's data, will NOT automatically be removed.\nTo obtain all items with the most current state (both updated and unmodified selections), use;\ndropdown.AutoUpdateSelected(function(sender, updated) { console.log(\"All selected\", dropdown.GetSelections()); });\nFor additiona details see UpdateSelected().", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSDropDownTypeDefs.AutoUpdateSelectedCallback", "Default" : "undefined", "Nullable" : false, "Description" : "Optional callback function invoked when selected items have been updated" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "ClearData", "Returns" : "", "Access" : "public", "Description" : "Call this function to make control reload data when needed,\nensuring that the user will see the most recent values available.\nOperation may be postponed if data is currently loading from WebService.\nUse callback to pick up execution once data has been cleared.\nSender (Fit.Controls.WSDropDown) is passed to callback as an argument.\nTo make sure data reloads immediate, please use ReloadData(..) instead.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSDropDownTypeDefs.DataCallback", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, callback is invoked when data is cleared" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "GetListView", "Returns" : "Fit.Controls.WSListView", "Access" : "public", "Description" : "Get WSListView control used to display data in a flat list view", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "GetTreeView", "Returns" : "Fit.Controls.WSTreeView", "Access" : "public", "Description" : "Get WSTreeView control used to display data in a hierarchical tree view", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "JsonpCallback", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set name of JSONP callback argument. Assigning a value will enable JSONP communication.\nOften this argument is simply \"callback\". Passing Null disables JSONP communication again.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, enables JSONP and updates JSONP callback argument" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "ListViewEnabled", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether searchable ListView is enabled or not.\nThe value provided also determines the value for InputEnabled and vice versa.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables ListView and search capability (default), False disables it" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "OnAbort", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired if data request is canceled.\nFunction receives two arguments:\nSender (Fit.Controls.WSDropDown) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSDropDown instance\n- Picker: Picker causing WebService data request (WSTreeView or WSListView instance)\n- Node: Fit.Controls.TreeViewNode instance if requesting TreeView children, Null if requesting root nodes\n- Search: Search value if entered by user\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Data: JSON data received from WebService (Null in this particular case)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSDropDownTypeDefs.RequestAbortedEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "OnRequest", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when data is being requested.\nRequest can be canceled by returning False.\nFunction receives two arguments:\nSender (Fit.Controls.WSDropDown) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSDropDown instance\n- Picker: Picker causing WebService data request (WSTreeView or WSListView instance)\n- Node: Fit.Controls.TreeViewNode instance if requesting TreeView children, Null if requesting root nodes\n- Search: Search value if entered by user\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSDropDownTypeDefs.CancelableRequestEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "OnResponse", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when data is received,\nallowing for data transformation to occure before\npicker control is populated. Function receives two arguments:\nSender (Fit.Controls.WSDropDown) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSDropDown instance\n- Picker: Picker causing WebService data request (WSTreeView or WSListView instance)\n- Node: Fit.Controls.TreeViewNode instance if requesting TreeView children, Null if requesting root nodes\n- Search: Search value if entered by user\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Data: JSON data received from WebService", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSDropDownTypeDefs.ResponseEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "ReloadData", "Returns" : "", "Access" : "public", "Description" : "Call this function to make control reload data immediately,\nensuring that the user will see the most recent values available.\nUse callback to pick up execution once data has been loaded.\nSender (Fit.Controls.WSDropDown) is passed to callback as an argument.\nTo have data reload when needed (lazy loading), please use ClearData(..) instead.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSDropDownTypeDefs.DataCallback", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, callback is invoked when data has been loaded" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "ResetActionMenu", "Returns" : "", "Access" : "public", "Description" : "Reset action menu so it automatically determines whether to show up or not\nwhen DropDown control is opened/re-opened, based on rules outlined in the\ndescription for UseActionMenu(..).\nThis is useful if calling ClearData(..) and one wants to make sure the TreeView\ndata is immediately made visible once ready, rather than showing the action menu\nif it was previously shown.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "TreeViewEnabled", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether TreeView control is enabled or not", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables TreeView (default), False disables it" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "UpdateActionMenu", "Returns" : "", "Access" : "public", "Description" : "Update action menu to make it reflect availablity of data in TreeView", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "Url", "Returns" : "string", "Access" : "public", "Description" : "Get/set URL to WebService responsible for providing data to drop down.\nWebService must deliver data in the following JSON format:\n[\n     { Title: \"Test 1\", Value: \"1001\", Selectable: true, Selected: true, Children: [] },\n     { Title: \"Test 2\", Value: \"1002\", Selectable: false, Selected: false, Children: [] }\n]\nOnly Value is required. Children is a collection of nodes with the same format as described above.\nHasChildren:boolean may be set to indicate that children are available server side and that WebService\nshould be called to load these children when the given node is expanded.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "wsUrl", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, updates WebService URL (e.g. http://server/ws/data.asxm/GetData)" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "UseActionMenu", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set value indicating whether control uses the built-in action menu to ease addition and removal of items.\nIf this property is not explicitly set, it will automatically be changed by the control depending on data and other settings.\nThe action menu will be enabled if TreeViewEnabled is set to False, as it would otherwise not show anything unless the user\nenters a search value. If TreeViewEnabled is True but no data is provided to the TreeView control upon request, the action menu\nis also enabled.\nIf the control does not have any selections, InputEnabled (or its alias ListViewEnabled) is True, and TreeViewEnabled is False,\nno picker will be displayed since the action menu would only display the \"Search for options\" item - but it should already\nbe obvious to the user that searching is required due to the placeholder displaying \"Search..\" by default.\nLikewise, if TreeViewEnabled is True and InputEnabled (or its alias ListViewEnabled) is False, and no selections are made,\nthe action menu would only display \"Show available options\". In this case the TreeView will be displayed instead,\neven if UseActionMenu has explicitely been set to True.\nThe behaviour described is in place to make sure the action menu is only displayed when it makes sense, since it introduces\nand extra step (click) required by the user to access data.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True enables the action menu, False disables it" }] }, { "Container" : "Fit.Controls.WSDropDown", "Name" : "WSDropDown", "Returns" : "", "Access" : "public", "Description" : "Create instance of WSDropDown control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.WSListView", "Name" : "JsonpCallback", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set name of JSONP callback argument. Assigning a value will enable JSONP communication.\nOften this argument is simply \"callback\". Passing Null disables JSONP communication again.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, enables JSONP and updates JSONP callback argument" }] }, { "Container" : "Fit.Controls.WSListView", "Name" : "OnAbort", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired if data request is canceled.\nFunction receives two arguments:\nSender (Fit.Controls.WSListView) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSListView instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Items: JSON items received from WebService (Null in this particular case)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSListViewTypeDefs.AbortEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSListView", "Name" : "OnPopulated", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when ListView has been populated with items.\nFunction receives two arguments:\nSender (Fit.Controls.WSListView) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSListView instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Items: JSON items received from WebService", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSListViewTypeDefs.DataEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSListView", "Name" : "OnRequest", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when data is being requested.\nRequest can be canceled by returning False.\nFunction receives two arguments:\nSender (Fit.Controls.WSListView) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSListView instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSListViewTypeDefs.CancelableRequestEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSListView", "Name" : "OnResponse", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when data is received,\nallowing for data transformation to occure before\nListView is populated. Function receives two arguments:\nSender (Fit.Controls.WSListView) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSListView instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Items: JSON items received from WebService", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSListViewTypeDefs.DataEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSListView", "Name" : "Reload", "Returns" : "", "Access" : "public", "Description" : "Load/reload data from WebService", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSListViewTypeDefs.ReloadCallback", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, callback function is invoked when data has been loaded\nand populated - takes Sender (Fit.Controls.WSListView) as an argument." }] }, { "Container" : "Fit.Controls.WSListView", "Name" : "Url", "Returns" : "string", "Access" : "public", "Description" : "Get/set URL to WebService responsible for providing data to control.\nWebService must deliver data in the following JSON format:\n[\n     { Title: \"Test 1\", Value: \"1001\", Selectable: true, Children: [] },\n     { Title: \"Test 2\", Value: \"1002\", Selectable: false, Children: [] }\n]\nOnly Value is required. Children is a collection of items with the same format as described above.\nBe aware that items are treated as a flat list, even when hierarchically structured using the Children property.\nItems with Selectable set to False will simply be ignored (not shown) while children will still be added.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "wsUrl", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, updates WebService URL (e.g. http://server/ws/data.asxm/GetItems)" }] }, { "Container" : "Fit.Controls.WSListView", "Name" : "WSListView", "Returns" : "", "Access" : "public", "Description" : "Create instance of WSListView control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "EnsureData", "Returns" : "", "Access" : "public", "Description" : "Ensure all data from WebService.\nContrary to Reload(..), this function does not clear selected\nvalues, or remove nodes already loaded - it merely loads data\nnot already loaded.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "callback", "Type" : "Fit.Controls.WSTreeViewTypeDefs.ReloadCallback", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, callback function is invoked when all nodes have been loaded\nand populated - takes Sender (Fit.Controls.WSTreeView) as an argument." }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "JsonpCallback", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set name of JSONP callback argument. Assigning a value will enable JSONP communication.\nOften this argument is simply \"callback\". Passing Null disables JSONP communication again.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, enables JSONP and updates JSONP callback argument" }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "OnAbort", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired if data request is canceled.\nFunction receives two arguments:\nSender (Fit.Controls.WSTreeView) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSTreeView instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Node: Fit.Controls.TreeViewNode instance to be populated\n- Children: JSON nodes received from WebService (Null in this particular case)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSTreeViewTypeDefs.AbortEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "OnPopulated", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when TreeView has been populated with nodes.\nNode is not populated and event is not fired though if node is disposed\nor detached from TreeView while data is loading from WebService.\nFunction receives two arguments:\nSender (Fit.Controls.WSTreeView) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSTreeView instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Node: Fit.Controls.TreeViewNode instance now populated with children\n- Children: JSON nodes received from WebService", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSTreeViewTypeDefs.DataEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "OnRequest", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when data is being requested.\nRequest can be canceled by returning False.\nFunction receives two arguments:\nSender (Fit.Controls.WSTreeView) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSTreeView instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Node: Fit.Controls.TreeViewNode instance", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSTreeViewTypeDefs.CancelableRequestEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "OnResponse", "Returns" : "", "Access" : "public", "Description" : "Add event handler fired when data is received,\nallowing for data transformation to occure before\nTreeView is populated. Function receives two arguments:\nSender (Fit.Controls.WSTreeView) and EventArgs object.\nEventArgs object contains the following properties:\n- Sender: Fit.Controls.WSTreeView instance\n- Request: Fit.Http.JsonpRequest or Fit.Http.JsonRequest instance\n- Node: Fit.Controls.TreeViewNode instance to be populated\n- Children: JSON nodes received from WebService", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.Controls.WSTreeViewTypeDefs.DataEventHandler", "Default" : "", "Nullable" : false, "Description" : "Event handler function" }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "Reload", "Returns" : "", "Access" : "public", "Description" : "Reload data from WebService", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "keepState", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, True will preserve selections, expanded state, and focus state, False will not (default)" }, { "Name" : "cb", "Type" : "Fit.Controls.WSTreeViewTypeDefs.ReloadCallback", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, callback function is invoked when root nodes have been loaded\nand populated - takes Sender (Fit.Controls.WSTreeView) as an argument." }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "SelectAllMode", "Returns" : "Fit.Controls.WSTreeViewSelectAllMode", "Access" : "public", "Description" : "Get/set flag indicating whether WebService returns the complete hierarchy when\nSelect All is triggered (Instantly), or loads data for each level individually\nwhen TreeView automatically expands all nodes (Progressively - chain loading).", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "Fit.Controls.WSTreeViewSelectAllMode", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, behaviour is set to specified mode" }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "Selected", "Returns" : "Fit.Controls.TreeViewNode[]", "Access" : "public", "Description" : "Fit.Controls.TreeView.Selected override:\nGet/set selected nodes.\nNotice for getter: Nodes not loaded yet (preselections) are NOT associated with TreeView.\nThey are there to indicate a selection that has not yet occurred since the data has not yet been loaded.\nChanging properties of these nodes (e.g. node.Expanded(boolean) or node.Selected(boolean)) will not have any effect on the TreeView.\nSuch nodes can be identified using GetTreeView(): if (node.GetTreeView() === null) console.log(\"This is a preselection node\");\nThe following functions can be used to get node information: node.Title() and node.Value().", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "Fit.Controls.TreeViewNode[]", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, provided nodes are selected" }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "SetNodeSelection", "Returns" : "", "Access" : "public", "Description" : "Allows for a node's selection state to be set even if node has not been loaded yet", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Node value" }, { "Name" : "selected", "Type" : "boolean", "Default" : "", "Nullable" : false, "Description" : "Node selection state" }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "Url", "Returns" : "string", "Access" : "public", "Description" : "Get/set URL to WebService responsible for providing data to TreeView.\nWebService must deliver data in the following JSON format:\n[\n     { Title: \"Test 1\", Value: \"1001\", Selectable: true, Selected: true, Children: [] },\n     { Title: \"Test 2\", Value: \"1002\", Selectable: false, Selected: false, Children: [] }\n]\nOnly Value is required. Children is a collection of nodes with the same format as described above.\nHasChildren:boolean may be set to indicate that children are available server side and that WebService\nshould be called to load these children when the given node is expanded.\nAdditionally Expanded:boolean can be set to initially display node as expanded.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "wsUrl", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, updates WebService URL (e.g. http://server/ws/data.asxm/GetNodes)" }] }, { "Container" : "Fit.Controls.WSTreeView", "Name" : "WSTreeView", "Returns" : "", "Access" : "public", "Description" : "Create instance of WSTreeView control", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "ctlId", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "Unique control ID that can be used to access control using Fit.Controls.Find(..)" }] }, { "Container" : "Fit.Cookies", "Name" : "Cookies", "Returns" : "", "Access" : "public", "Description" : "Create instance of cookie container isolated to either current path (default)\nor a custom path, and optionally an alternative part of the domain (by default\ncookies are available only on the current domain, while defining a domain makes\ncookies available to that particular domain and subdomains).", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Cookies", "Name" : "Domain", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set portion of domain to which cookies are isolated", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes isolation to specified domain portion, including subdomains - pass\nNull to unset it to make cookies available to current domain only (excluding subdomains)." }] }, { "Container" : "Fit.Cookies", "Name" : "Get", "Returns" : "string | null", "Access" : "public", "Description" : "Returns cookie value if found, otherwise Null", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "name", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Unique cookie name" }] }, { "Container" : "Fit.Cookies", "Name" : "Path", "Returns" : "string", "Access" : "public", "Description" : "Get/set path to which cookies are isolated", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes isolation to specified path" }] }, { "Container" : "Fit.Cookies", "Name" : "Prefix", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set prefix added to all cookies - useful for grouping related cookies and to avoid naming conflicts.\nNotice that Set/Get/Remove functions automatically apply the prefix to cookie names, so the use of a prefix\nis completely transparent.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes cookie prefix to specified value - pass Null to unset it" }] }, { "Container" : "Fit.Cookies", "Name" : "Remove", "Returns" : "", "Access" : "public", "Description" : "Remove cookie", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "name", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Unique cookie name" }] }, { "Container" : "Fit.Cookies", "Name" : "SameSite", "Returns" : "string | null", "Access" : "public", "Description" : "Get/set SameSite policy", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "\"None\" | \"Lax\" | \"Strict\" | null", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes SameSite policy - pass Null to unset it" }] }, { "Container" : "Fit.Cookies", "Name" : "Secure", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set Secure flag", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes Secure flag" }] }, { "Container" : "Fit.Cookies", "Name" : "Set", "Returns" : "", "Access" : "public", "Description" : "Create or update cookie", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "name", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Unique cookie name" }, { "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Cookie value (cannot contain semicolon!)" }, { "Name" : "seconds", "Type" : "integer", "Default" : "undefined", "Nullable" : false, "Description" : "Optional expiration time in seconds. Creating a cookie with\nno expiration time will cause it to expire when session ends." }] }, { "Container" : "Fit.CoreTypeDefs.DebounceFunction", "Name" : "Cancel", "Returns" : "", "Access" : "public", "Description" : "Cancel debounced function if scheduled for execution", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.CoreTypeDefs.DebounceFunction", "Name" : "Flush", "Returns" : "", "Access" : "public", "Description" : "Force execution of debounced function if scheduled for execution", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "BringToFront", "Returns" : "", "Access" : "public", "Description" : "Bring draggable to front", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "BringToFrontOnActivation", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether to bring draggable to front when activated", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, a value of True enables functionality, False disables it (default)" }] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "Dispose", "Returns" : "", "Access" : "public", "Description" : "Free resources and disable dragging support for DOM element", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "Draggable", "Returns" : "", "Access" : "public", "Description" : "Constructor - create instance of Draggable class", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "domElm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element to turn into draggable object" }, { "Name" : "domTriggerElm", "Type" : "DOMElement", "Default" : "undefined", "Nullable" : false, "Description" : "Element that triggers dragging (optional)" }] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "GetDomElement", "Returns" : "DOMElement", "Access" : "public", "Description" : "Get draggable DOM element", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "OnDragging", "Returns" : "", "Access" : "public", "Description" : "Add event handler which constantly gets fired when dragging takes place", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.DragDrop.DraggableTypeDefs.DragEventHandler", "Default" : "", "Nullable" : false, "Description" : "Callback (event handler) function - draggable DOM element is passed to function" }] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "OnDragStart", "Returns" : "", "Access" : "public", "Description" : "Add event handler which gets fired when dragging starts", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.DragDrop.DraggableTypeDefs.DragEventHandler", "Default" : "", "Nullable" : false, "Description" : "Callback (event handler) function - draggable DOM element is passed to function" }] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "OnDragStop", "Returns" : "", "Access" : "public", "Description" : "Add event handler which gets fired when dragging stops", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.DragDrop.DraggableTypeDefs.DragStopEventHandler", "Default" : "", "Nullable" : false, "Description" : "Callback (event handler) function - instance of Draggable is passed to function" }] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "Reset", "Returns" : "", "Access" : "public", "Description" : "Reset draggable to initial position", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.DragDrop.Draggable", "Name" : "ReturnFocus", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether focus is returned/restored after drag operation", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "A value of True causes draggable to return focus to previously\nfocused element when drag operation is completed - defaults to False" }] }, { "Container" : "Fit.DragDrop.DropZone", "Name" : "Dispose", "Returns" : "", "Access" : "public", "Description" : "Free resources and disable DropZone support for DOM element", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.DragDrop.DropZone", "Name" : "DropZone", "Returns" : "", "Access" : "public", "Description" : "Constructor - create instance of DropZone class", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "domElm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "Element to turn into dropzone object" }] }, { "Container" : "Fit.DragDrop.DropZone", "Name" : "GetDomElement", "Returns" : "DOMElement", "Access" : "public", "Description" : "Get dropzone DOM element", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.DragDrop.DropZone", "Name" : "OnDrop", "Returns" : "", "Access" : "public", "Description" : "Add event handler which gets fired when draggable is dropped on dropzone", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.DragDrop.DropZoneTypeDefs.DropEventHandler", "Default" : "", "Nullable" : false, "Description" : "Callback (event handler) function - instance of DropZone and Draggable is passed to function (in that order)" }] }, { "Container" : "Fit.DragDrop.DropZone", "Name" : "OnEnter", "Returns" : "", "Access" : "public", "Description" : "Add event handler which gets fired when draggable enters dropzone, ready to be dropped", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.DragDrop.DropZoneTypeDefs.EnterEventHandler", "Default" : "", "Nullable" : false, "Description" : "Callback (event handler) function - instance of DropZone is passed to function" }] }, { "Container" : "Fit.DragDrop.DropZone", "Name" : "OnLeave", "Returns" : "", "Access" : "public", "Description" : "Add event handler which gets fired when draggable leaves dropzone", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "cb", "Type" : "Fit.DragDrop.DropZoneTypeDefs.LeaveEventHandler", "Default" : "", "Nullable" : false, "Description" : "Callback (event handler) function - instance of DropZone is passed to function" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"keydown\" | \"keyup\" | \"keypress\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackKeyboard", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"click\" | \"contextmenu\" | \"dblclick\" | \"mousedown\" | \"mouseenter\" | \"mouseleave\" | \"mousemove\" | \"mouseout\" | \"mouseover\" | \"mouseup\" | \"mousewheel\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackMouse", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"popstate\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackPopState", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"hashchange\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackHashChange", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"focus\" | \"focusin\" | \"focusout\" | \"blur\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackFocus", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"beforeunload\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackBeforeUnload", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"cut\" | \"copy\" | \"paste\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackClipboard", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"storage\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackStorage", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers handler for specified event on given DOMElement and returns Event ID", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element on to which event handler is registered" }, { "Name" : "event", "Type" : "\"#rooted\"", "Default" : "", "Nullable" : false, "Description" : "Event name" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackRooted", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers handler for specified event on given DOMElement and returns Event ID", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element on to which event handler is registered" }, { "Name" : "event", "Type" : "\"#mutation\"", "Default" : "", "Nullable" : false, "Description" : "Event name" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.MutationObserverCallback", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackGeneric", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"keydown\" | \"keyup\" | \"keypress\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "options", "Type" : "{ Id?: string, Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set additional options - not guaranteed to be cross browser compatible!" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackKeyboard", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"click\" | \"contextmenu\" | \"dblclick\" | \"mousedown\" | \"mouseenter\" | \"mouseleave\" | \"mousemove\" | \"mouseout\" | \"mouseover\" | \"mouseup\" | \"mousewheel\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "options", "Type" : "{ Id?: string, Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set additional options - not guaranteed to be cross browser compatible!" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackMouse", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"popstate\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "options", "Type" : "{ Id?: string, Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set additional options - not guaranteed to be cross browser compatible!" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackPopState", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"hashchange\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "options", "Type" : "{ Id?: string, Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set additional options - not guaranteed to be cross browser compatible!" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackHashChange", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"focus\" | \"focusin\" | \"focusout\" | \"blur\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "options", "Type" : "{ Id?: string, Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set additional options - not guaranteed to be cross browser compatible!" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackFocus", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"beforeunload\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "options", "Type" : "{ Id?: string, Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set additional options - not guaranteed to be cross browser compatible!" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackBeforeUnload", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"cut\" | \"copy\" | \"paste\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "options", "Type" : "{ Id?: string, Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set additional options - not guaranteed to be cross browser compatible!" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackClipboard", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "\"storage\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "options", "Type" : "{ Id?: string, Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set additional options - not guaranteed to be cross browser compatible!" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackStorage", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers handler for specified event on given DOMElement and returns Event ID", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element on to which event handler is registered" }, { "Name" : "event", "Type" : "\"#rooted\"", "Default" : "", "Nullable" : false, "Description" : "Event name" }, { "Name" : "options", "Type" : "{ Id?: string }", "Default" : "", "Nullable" : false, "Description" : "This argument is ignored for the specialized #rooted event." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackRooted", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers handler for specified event on given DOMElement and returns Event ID", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element on to which event handler is registered" }, { "Name" : "event", "Type" : "\"#mutation\"", "Default" : "", "Nullable" : false, "Description" : "Event name" }, { "Name" : "options", "Type" : "{ Id?: String, Deep?: boolean }", "Default" : "", "Nullable" : false, "Description" : "This argument is ignored for the specialized #rooted event." }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackRooted", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "Add", "Returns" : "", "Access" : "public", "Description" : "Registers event handler for specified event on given EventTarget", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "element", "Type" : "EventTarget", "Default" : "", "Nullable" : false, "Description" : "EventTarget (e.g. Window or DOMElement) on to which event handler is registered" }, { "Name" : "event", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Event name without 'on' prefix (e.g. 'load', 'mouseover', 'click' etc.)" }, { "Name" : "options", "Type" : "{ Id?: string, Capture?: boolean, Once?: boolean, Passive?: boolean }", "Default" : "", "Nullable" : false, "Description" : "Set additional options - not guaranteed to be cross browser compatible!" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackGeneric", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.EventManager", "Name" : "EventManager", "Returns" : "", "Access" : "public", "Description" : "Create instance of EventManager", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.EventManager", "Name" : "Move", "Returns" : "", "Access" : "public", "Description" : "Move event handler by event ID to another DOMElement", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "id", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Event ID identifying handler to move" }, { "Name" : "newElm", "Type" : "DOMElement", "Default" : "", "Nullable" : false, "Description" : "DOM element to which event handler is moved" }] }, { "Container" : "Fit.EventManager", "Name" : "Move", "Returns" : "", "Access" : "public", "Description" : "Invoke event handler by event ID", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "id", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Event ID identifying handler to invoke" }, { "Name" : "args", "Type" : "any[]", "Default" : "undefined", "Nullable" : false, "Description" : "Event handler arguments" }, { "Name" : "thisArg", "Type" : "any", "Default" : "undefined", "Nullable" : false, "Description" : "The value 'this' resolves to within event handler" }] }, { "Container" : "Fit.EventManager", "Name" : "Remove", "Returns" : "", "Access" : "public", "Description" : "Removes event handler by event ID", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "id", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Event ID identifying handler to remove" }] }, { "Container" : "Fit.EventManager", "Name" : "RemoveAll", "Returns" : "", "Access" : "public", "Description" : "Remove all event handlers registered", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "Abort", "Returns" : "", "Access" : "public", "Description" : "Abort request", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "Callback", "Returns" : "string", "Access" : "public", "Description" : "Get/set name of URL parameter receiving the name of the JSONP callback function", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes the name of the URL parameter to specified value" }] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "GetParameter", "Returns" : "string | null", "Access" : "public", "Description" : "Get URL parameter value - returns Null if parameter is not defined", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "key", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "URL parameter key" }] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "GetParameters", "Returns" : "string[]", "Access" : "public", "Description" : "Get all URL parameter keys", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "GetResponse", "Returns" : "object", "Access" : "public", "Description" : "Get response returned from server", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "JsonpRequest", "Returns" : "", "Access" : "public", "Description" : "Constructor - creates instance of JsonpRequest class", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "uri", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "URL to request" }, { "Name" : "jsonpCallbackName", "Type" : "string", "Default" : "callback", "Nullable" : false, "Description" : "Name of URL parameter receiving name of JSONP callback function" }] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "OnRequest", "Returns" : "", "Access" : "public", "Description" : "Add function to invoke when request is initiated.\nRequest can be canceled by returning False.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "func", "Type" : "Fit.Http.JsonpRequestTypeDefs.EventHandler", "Default" : "", "Nullable" : false, "Description" : "JavaScript function invoked when request is initiated.\nFit.Http.JsonpRequest instance is passed to function." }] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "OnSuccess", "Returns" : "", "Access" : "public", "Description" : "Add function to invoke when request is successful", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "func", "Type" : "Fit.Http.JsonpRequestTypeDefs.EventHandler", "Default" : "", "Nullable" : false, "Description" : "JavaScript function invoked when request finished successfully.\nFit.Http.JsonpRequest instance is passed to function." }] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "OnTimeout", "Returns" : "", "Access" : "public", "Description" : "Add function to invoke when request is unsuccessful due to timeout", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "func", "Type" : "Fit.Http.JsonpRequestTypeDefs.EventHandler", "Default" : "", "Nullable" : false, "Description" : "JavaScript function invoked when request timed out.\nFit.Http.JsonpRequest instance is passed to function." }] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "SetParameter", "Returns" : "", "Access" : "public", "Description" : "Set URL parameter", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "key", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "URL parameter key" }, { "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "URL parameter value" }, { "Name" : "uriEncode", "Type" : "boolean", "Default" : "true", "Nullable" : false, "Description" : "Set False to prevent value from being URI encoded to preserve special characters" }] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "Start", "Returns" : "", "Access" : "public", "Description" : "Invoke asynchroneus request", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "Timeout", "Returns" : "integer", "Access" : "public", "Description" : "Get/set request timeout in milliseconds.\nOnTimeout is fired if response is not received\nwithin specified amount of time. Defaults to 30000 ms.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes timeout to specified value" }] }, { "Container" : "Fit.Http.JsonpRequest", "Name" : "Url", "Returns" : "string", "Access" : "public", "Description" : "Get/set request URL", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes request URL to specified value" }] }, { "Container" : "Fit.Http.JsonRequest", "Name" : "GetResponseJson", "Returns" : "object | null", "Access" : "public", "Description" : "Returns result from request as JSON object, Null if no response was returned.\nReturn value will only be as expected if GetCurrentState() returns a value of 4\n(request done) and GetHttpStatus() returns a value of 2xx (request successful).\nNotice: .NET usually wraps data in a .d property. Data is automatically extracted\nfrom this property, hence contained data is returned as the root object.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.JsonRequest", "Name" : "JsonRequest", "Returns" : "", "Access" : "public", "Description" : "Constructor - creates instance of JSON Request class.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "url", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "URL to request, e.g.\nhttp://server/_layouts/15/Company/MyWebService.asmx/MyMethod" }] }, { "Container" : "Fit.Http.Request", "Name" : "Abort", "Returns" : "", "Access" : "public", "Description" : "Abort asynchroneus request", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "AddFormData", "Returns" : "", "Access" : "public", "Description" : "Add form data - this will change the request method from GET to POST\nand cause the following header to be added to the request, unless already\ndefined: Content-type: application/x-www-form-urlencoded", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "key", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Data key" }, { "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Data value" }, { "Name" : "uriEncode", "Type" : "boolean", "Default" : "true", "Nullable" : false, "Description" : "Set False to prevent value from being URI encoded to preserve special characters" }] }, { "Container" : "Fit.Http.Request", "Name" : "AddHeader", "Returns" : "", "Access" : "public", "Description" : "Add header to request", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "key", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Header key" }, { "Name" : "value", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Header value" }] }, { "Container" : "Fit.Http.Request", "Name" : "Async", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether request is made asynchronously or synchronously", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, enforces an async or sync request based on the boolean value provided" }] }, { "Container" : "Fit.Http.Request", "Name" : "ClearFormData", "Returns" : "", "Access" : "public", "Description" : "Remove all form values from form data collection", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "ClearHeaders", "Returns" : "", "Access" : "public", "Description" : "Remove all request headers", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "GetCurrentState", "Returns" : "integer", "Access" : "public", "Description" : "Get current request state.\n0 = Unsent\n1 = Opened\n2 = Headers received\n3 = Loading\n4 = Done (response is ready for processing)", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "GetData", "Returns" : "object", "Access" : "public", "Description" : "Get data set to be posted", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "GetFormData", "Returns" : "string | null", "Access" : "public", "Description" : "Get form value added to form data collection - returns Null if not found", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "key", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Data key" }] }, { "Container" : "Fit.Http.Request", "Name" : "GetHeader", "Returns" : "string | null", "Access" : "public", "Description" : "Get request header - returns Null if not found", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "key", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Header name" }] }, { "Container" : "Fit.Http.Request", "Name" : "GetHeaders", "Returns" : "string[]", "Access" : "public", "Description" : "Get all request header names", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "GetHttpStatus", "Returns" : "integer", "Access" : "public", "Description" : "Returns HTTP status. Common return values are:\n200 = OK (successful request)\n304 = Forbidden (access denied)\n404 = Not found\n408 = Request time out\n500 = Internal server error\n503 = Service unavailable", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "GetResponse", "Returns" : "object", "Access" : "public", "Description" : "Returns result from request. Use this to obtain e.g. binary data on supported browsers.\nFor requests without custom RequestProperties set the return value will be the response text.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "GetResponseHeader", "Returns" : "string | null", "Access" : "public", "Description" : "Get response header (e.g. text/html) - returns Null if not found", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "key", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Header key (e.g. Content-Type)" }] }, { "Container" : "Fit.Http.Request", "Name" : "GetResponseHeaders", "Returns" : "{ Key: string, Value: string }[]", "Access" : "public", "Description" : "Get response headers - returned array contain objects with Key (string) and Value (string) properties", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "GetResponseJson", "Returns" : "object | null", "Access" : "public", "Description" : "Returns result from request as JSON object, Null if no response was returned.\nReturn value will only be as expected if GetCurrentState() returns a value of 4\n(request done) and GetHttpStatus() returns a value of 2xx (request successful).", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "GetResponseText", "Returns" : "string", "Access" : "public", "Description" : "Returns text result from request.\nReturn value will only be as expected if GetCurrentState() returns a value of 4\n(request done) and GetHttpStatus() returns a value of 2xx (request successful).", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "GetResponseXml", "Returns" : "Document", "Access" : "public", "Description" : "Returns result from request as XML or HTML document.\nReturn value will only be as expected if GetCurrentState() returns a value of 4\n(request done) and GetHttpStatus() returns a value of 2xx (request successful).", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "Method", "Returns" : "\"GET\" | \"POST\" | \"HEAD\" | \"PUT\" | \"DELETE\" | \"OPTIONS\"", "Access" : "public", "Description" : "Get/set request method (e.g. GET, POST, HEAD, PUT, DELETE, OPTIONS)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "\"GET\" | \"POST\" | \"HEAD\" | \"PUT\" | \"DELETE\" | \"OPTIONS\"", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes HTTP request method to specified value" }] }, { "Container" : "Fit.Http.Request", "Name" : "OnAbort", "Returns" : "", "Access" : "public", "Description" : "Add function to invoke when request is canceled", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "func", "Type" : "Fit.Http.RequestTypeDefs.EventHandler", "Default" : "", "Nullable" : false, "Description" : "JavaScript function invoked when request is canceled.\nFit.Http.Request instance is passed to function." }] }, { "Container" : "Fit.Http.Request", "Name" : "OnFailure", "Returns" : "", "Access" : "public", "Description" : "Add function to invoke when request is unsuccessful", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "func", "Type" : "Fit.Http.RequestTypeDefs.EventHandler", "Default" : "", "Nullable" : false, "Description" : "JavaScript function invoked when request finished, but not successfully.\nFit.Http.Request instance is passed to function." }] }, { "Container" : "Fit.Http.Request", "Name" : "OnRequest", "Returns" : "", "Access" : "public", "Description" : "Add function to invoke when request is initiated.\nRequest can be canceled by returning False.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "func", "Type" : "Fit.Http.RequestTypeDefs.EventHandler", "Default" : "", "Nullable" : false, "Description" : "JavaScript function invoked when request is initiated.\nFit.Http.Request instance is passed to function." }] }, { "Container" : "Fit.Http.Request", "Name" : "OnStateChange", "Returns" : "", "Access" : "public", "Description" : "Add function to invoke when request state is changed.\nUse GetCurrentState() to read the state at the given time.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "func", "Type" : "Fit.Http.RequestTypeDefs.EventHandler", "Default" : "", "Nullable" : false, "Description" : "JavaScript function invoked when state changes.\nFit.Http.Request instance is passed to function." }] }, { "Container" : "Fit.Http.Request", "Name" : "OnSuccess", "Returns" : "", "Access" : "public", "Description" : "Add function to invoke when request is successful", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "func", "Type" : "Fit.Http.RequestTypeDefs.EventHandler", "Default" : "", "Nullable" : false, "Description" : "JavaScript function invoked when request finished successfully.\nFit.Http.Request instance is passed to function." }] }, { "Container" : "Fit.Http.Request", "Name" : "RemoveFormData", "Returns" : "", "Access" : "public", "Description" : "Remove form value from form data collection", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "key", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Data key" }] }, { "Container" : "Fit.Http.Request", "Name" : "RemoveHeader", "Returns" : "", "Access" : "public", "Description" : "Remove request header", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "key", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Header name" }] }, { "Container" : "Fit.Http.Request", "Name" : "Request", "Returns" : "", "Access" : "public", "Description" : "Constructor - creates instance of Request class", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "uri", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "URL to request" }] }, { "Container" : "Fit.Http.Request", "Name" : "RequestProperties", "Returns" : "object", "Access" : "public", "Description" : "Set/get custom XHR request properties.\nExample of property object: { withCredentials: true, responseType: 'blob' }.\nHow different browsers and versions support and handle custom properties differ:\nhttps://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest\nFull cross browser support is therefore not guaranteed.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "propertyObject", "Type" : "object", "Default" : "undefined", "Nullable" : false, "Description" : "If specified, properties will be applied to XHR request when Start() is invoked" }] }, { "Container" : "Fit.Http.Request", "Name" : "SetData", "Returns" : "", "Access" : "public", "Description" : "Set data to post - this will change the request method from GET to POST", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "dataObj", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Data to send" }] }, { "Container" : "Fit.Http.Request", "Name" : "Start", "Returns" : "", "Access" : "public", "Description" : "Invoke request. An asynchroneus request is performed if an\nOnStateChange, OnSuccess, or OnFailure event handler has been set.\nIf no event handlers have been set, a synchronous request will be performed,\ncausing the client to wait (and freeze) until data is received.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Http.Request", "Name" : "Url", "Returns" : "string", "Access" : "public", "Description" : "Get/set request URL", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "string", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, changes request URL to specified value" }] }, { "Container" : "Fit.Template", "Name" : "AddEventHandler", "Returns" : "integer", "Access" : "public", "Description" : "Add event handler to element within template given by element ID - event handler ID is returned", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "elmId", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Element ID" }, { "Name" : "event", "Type" : "\"keydown\" | \"keyup\" | \"keypress\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackKeyboard", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Template", "Name" : "AddEventHandler", "Returns" : "integer", "Access" : "public", "Description" : "Add event handler to element within template given by element ID - event handler ID is returned", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "elmId", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Element ID" }, { "Name" : "event", "Type" : "\"click\" | \"contextmenu\" | \"dblclick\" | \"mousedown\" | \"mouseenter\" | \"mouseleave\" | \"mousemove\" | \"mouseout\" | \"mouseover\" | \"mouseup\" | \"mousewheel\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackMouse", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Template", "Name" : "AddEventHandler", "Returns" : "integer", "Access" : "public", "Description" : "Add event handler to element within template given by element ID - event handler ID is returned", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "elmId", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Element ID" }, { "Name" : "event", "Type" : "\"popstate\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackPopState", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Template", "Name" : "AddEventHandler", "Returns" : "integer", "Access" : "public", "Description" : "Add event handler to element within template given by element ID - event handler ID is returned", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "elmId", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Element ID" }, { "Name" : "event", "Type" : "\"hashchange\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackHashChange", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Template", "Name" : "AddEventHandler", "Returns" : "integer", "Access" : "public", "Description" : "Add event handler to element within template given by element ID - event handler ID is returned", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "elmId", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Element ID" }, { "Name" : "event", "Type" : "\"focus\" | \"focusin\" | \"focusout\" | \"blur\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackFocus", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Template", "Name" : "AddEventHandler", "Returns" : "integer", "Access" : "public", "Description" : "Add event handler to element within template given by element ID - event handler ID is returned", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "elmId", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Element ID" }, { "Name" : "event", "Type" : "\"beforeunload\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackBeforeUnload", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Template", "Name" : "AddEventHandler", "Returns" : "integer", "Access" : "public", "Description" : "Add event handler to element within template given by element ID - event handler ID is returned", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "elmId", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Element ID" }, { "Name" : "event", "Type" : "\"cut\" | \"copy\" | \"paste\"", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackClipboard", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Template", "Name" : "AddEventHandler", "Returns" : "integer", "Access" : "public", "Description" : "Add event handler to element within template given by element ID - event handler ID is returned", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "elmId", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Element ID" }, { "Name" : "event", "Type" : "\"#rooted\"", "Default" : "", "Nullable" : false, "Description" : "Event name" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackRooted", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Template", "Name" : "AddEventHandler", "Returns" : "integer", "Access" : "public", "Description" : "Add event handler to element within template given by element ID - event handler ID is returned", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "elmId", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Element ID" }, { "Name" : "event", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "Event name without the 'on' prefix" }, { "Name" : "eventFunction", "Type" : "Fit.EventsTypeDefs.EventHandlerCallbackGeneric", "Default" : "", "Nullable" : false, "Description" : "JavaScript function to register" }] }, { "Container" : "Fit.Template", "Name" : "AllowUnsafeContent", "Returns" : "boolean", "Access" : "public", "Description" : "Get/set flag indicating whether unsafe string values are handled or not.\nIf AllowUnsafeContent is True, arbitrary code can be added to the template\nand will be intepreted by the browser. If AllowUnsafeContent is False,\npotentially unsafe code will be encoded and displayed as is without interpretation.", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "val", "Type" : "boolean", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, handling of string encoding is changed to reflect value" }] }, { "Container" : "Fit.Template", "Name" : "Dispose", "Returns" : "", "Access" : "public", "Description" : "Dispose template to free up memory", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Template", "Name" : "GetHtml", "Returns" : "string", "Access" : "public", "Description" : "Get HTML from template including any changes made", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.TemplateList", "Name" : "AddItem", "Returns" : "object", "Access" : "public", "Description" : "Create list item represented by associative object\narray containing either strings or DOMElements.\nExample:\nvar item = templateInstance.Content.MyList.AddItem();\nitem[\"Name\"] = \"James Thompson\";\nitem[\"Email\"] = \"james@server.com\";\nIt is also possible to assign data using properties:\nitem.ProfilePicture = document.createElement(\"img\");\nitem.ProfilePicture.src = \"james.png\";", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.TemplateList", "Name" : "Clear", "Returns" : "", "Access" : "public", "Description" : "Clear list", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.TemplateList", "Name" : "GetItems", "Returns" : "object[]", "Access" : "public", "Description" : "Get all list items added using AddItem()", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.TemplateList", "Name" : "RemoveItem", "Returns" : "", "Access" : "public", "Description" : "Remove list item (associative object array)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "item", "Type" : "object", "Default" : "", "Nullable" : false, "Description" : "Item to remove" }] }, { "Container" : "Fit.Template", "Name" : "LoadHtml", "Returns" : "", "Access" : "public", "Description" : "Load HTML string into template", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "htmlSource", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "HTML string" }] }, { "Container" : "Fit.Template", "Name" : "LoadUrl", "Returns" : "", "Access" : "public", "Description" : "Load HTML from URL asynchronously", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "url", "Type" : "string", "Default" : "", "Nullable" : false, "Description" : "URL to HTML template" }, { "Name" : "cb", "Type" : "Fit.TemplateTypeDefs.LoadUrlCallback", "Default" : "", "Nullable" : false, "Description" : "Callback function invoked once HTML template has\nbeen loaded. Template instance and raw HTML data\nis passed to function. At this point placeholders\nand lists are accessible from the Content propery." }] }, { "Container" : "Fit.Template", "Name" : "RemoveEventHandler", "Returns" : "", "Access" : "public", "Description" : "Remove event handler by event ID returned by AddEventHandler(..)", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "eventId", "Type" : "integer", "Default" : "", "Nullable" : false, "Description" : "Event ID" }] }, { "Container" : "Fit.Template", "Name" : "Render", "Returns" : "", "Access" : "public", "Description" : "Render template, either inline or to element specified", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "toElement", "Type" : "DOMElement", "Default" : "undefined", "Nullable" : false, "Description" : "If defined, template is rendered to this element" }] }, { "Container" : "Fit.Template", "Name" : "Reset", "Returns" : "", "Access" : "public", "Description" : "Resets template - all data and event handlers are removed. Change is not pushed to DOM automatically.", "Static" : false, "Virtual" : false, "Parameters" : [] }, { "Container" : "Fit.Template", "Name" : "Template", "Returns" : "", "Access" : "public", "Description" : "Constructor - creates instance of Template class", "Static" : false, "Virtual" : false, "Parameters" : [{ "Name" : "refreshable", "Type" : "boolean", "Default" : "false", "Nullable" : false, "Description" : "Flag indicating whether template can be updated after being rendered\nto DOM. A value of True results in template being wrapped in a div container\ncontrolled by the templating system." }, { "Name" : "autoDispose", "Type" : "boolean", "Default" : "true", "Nullable" : false, "Description" : "Flag indicating whether Fit.UI controls should be automatically disposed\nwhen removed from view. Controls are disposed once changes are pushed to\nDOM using the Update() function." }] }, { "Container" : "Fit.Template", "Name" : "Update", "Returns" : "", "Access" : "public", "Description" : "Push changes to DOM to make them visible through the user interface", "Static" : false, "Virtual" : false, "Parameters" : [] }];
189
189
 
190
190
  window.onload = initialize;
191
191