Members
-
activeIf
-
Predefined strategies to determine if we are currently active
-
modifiedIf
-
Predefined strategies to check for data updates
-
onModified
-
Predefined strategies to react on detected fresh data
-
options
-
the default options
-
rendered
-
is fired on the element containing far grid everytime the FAR renderer has finished rendering
Methods
-
_create()
widgetNg/universalFilter/universalFilterPackage.js, line 85 -
The UI is renderered via a renderer, which is attached to changes on the targetModelXPath
-
_createExpressionNode(args)
widgetNg/universalFilter/universalFilterPackage.js, line 453 -
create an expression node, usually f:Expression but not necessarily, as it supports multi-values, as such depending on 'op' and number of values it also may return a predicate like f:Or for 'in' operator
Name Type Description argsobject arguments Name Type Description bRefstring opstring valueArray.<string> -
_createLabel(controlId)
widgetNg/bcduiWidget.js, line 133 -
creates a label element for given controlId appends the element as a child into a current layout flow when this function is called
Name Type Description controlIdto bind the label with, must not be empty -
_getTargetNode(nodeId){element}
widgetNg/universalFilter/universalFilterPackage.js, line 541 -
Name Type Description nodeIdstring to identify the node within target scope Returns:
Type Description element from target identified by given nodeid, may return NULL no such node was found -
local/session storage polyfills
-
createMultiValueInput()
widgetNg/universalFilter/universalFilterPackage.js, line 367 -
creates a multi-input widget within targetElement, currently does not rebuild from status
-
manifestValue()
widgetNg/singleSelect/singleSelectPackage.js, line 226 -
forces widget to write its current content to targetModelXPath
-
messagesEditor(args)
widget/messages/messagesEditor.js, line 11 -
Name Type Description argsObject The parameter map contains the following properties: Name Type Description targetHtmltargetHtmlRef A reference to the HTML DOM Element where to put the output hotArgsObject optional optionally grid hotArgs overwrites -
messagesViewer(args)
widget/messages/messagesViewer.js, line 15 -
Name Type Description argsObject The parameter map contains the following properties: Name Type Description urlstring | bcdui.core.RequestDocumentDataProvider optional optionally overwrite wrs servlet for getting data bindingSetIdString optional optionally overwrite bindingSetId dataStorageString optional optionally use 'localStorage' or 'sessionStorage' to use browser cache instead of SubjectPreferences cookie modeString optional optionally use 'icon' together with args.targetHtml to render a clickable icon, defaults to displaying new messages in a popup immediatly targetHtmlString optional optionally use this together with args.mode='icon', is not used otherwise popupOnNewString optional optionally use this together with args.mode='icon' to show new messages immediatly
Type Definitions
-
AddStatusListenerParamobject
-
Properties:
Name Type Description listenerfunction | bcdui.core.StatusListener A function or StatusListener object representing the listener action. statusbcdui.core.Status The status it should listen to. If it is missing the listener is executed on all status transitions, otherwise it is executed when the status is set to the specified status. -
BcdScrollToParamOptionsobject
-
Properties:
Name Type Argument Default Description snapTostring <optional>
beginning snapTo can have following values: 'beginning': put the scrollTo-target on the top of container. -
chainDef()
util/typedefs.js, line 100 -
Defines the transformation steps of a transformation chain, like bcdui.core.ModelWrapper or bcdui.core.Renderer.
Can be: url | function | Array<(url|function)> | bcdui.core.DataProvider
You can provide- A single DataProvider, holding a chain definition following XML Schema 'chain-1.0.0.xsd'. Or
- A single string holding the url of an xslt document (*.xslt) or a js template literate file (*.jstlit). Or
- A javascript transformator function, representing a transformation. Such a function gets two parameters, data, like a DOM or JSON, whatever DataProvider.getData() returns and a parameter object, which maps parameter names to the actual parameters. It can return a new data object or modify the one, which was its input. It it does not return anything, its (modified) input doc is used as return default. Or
- An array of such strings and functions in the order they are to be executed. In this case, the output of the n-th transformation becomes the input of n+1.
Example
These are all valid values for a chainDef:
"myStylesheet.xslt" // An url pointing to an *.xslt or a *.jstlit file ["myTrans.jstlit", jsTrans] // An array of transformators, can be urls (js template literate or xslt) and js functions new bcdui.core.StaticModel(...) // A DataProvider subclass, providing an xml chain definition according to chain-1.0.0.xsd function jsTrans(doc, params) { // A js function, expecting a data object (DOM or JSON) var n = doc.getElementById('someId'); n.setAttribute('someAttr', params.newValue); } -
DomAttributeObject
-
DomAttribute
-
DomDocumentObject
-
DomDocument
-
DomElementObject
-
DomElement
-
DomNodeSetObject
-
A DomNodeSet
-
enumObject
-
Enumeration
-
ExecuteParamobject
-
Properties:
Name Type Argument Description fnfunction <optional>
A function called once when the object becomes ready again. Called immediately if we are already ready && shouldRefresh==false partialHtmlTargetsString <optional>
Space separated list of html element ids. If given, only these elements within targetHmtlElement of the render are touched in the DOM tree, plus the chain gets the parameter bcdPartialHtmlTargets set to this value. Valid for this one call only, cleared after. shouldRefreshboolean <optional>
"false" if this method should do nothing when the object is already in the ready status. Default is "true"false". -
HtmlElementObject
-
HtmlElement
-
i18nTokenstring
-
A string value which is either taken as-is or an i18n key-marker as proposed by
We use xE0FF prefix to separate an i18n token from a plain string. This marker is available via bcdui.i18n.TAG For i18n keys, see messages.xml or binding set bcd_i18nExample
caption = "data" // Treats value 'data' literal caption = "\uE0FFdata" // Treats value 'data' as an i18n-key -
integerNumber
-
Integer
-
modelXPathstring
-
Provide an XPath, which can be used to use nodes from, can point to an attribute or a full subtree. Start the XPath with $someModelId, make sure that you create this bcdui.core.DataProvider with an explicit id. Default for this is $guiStatus, which is always auto-registered.
Note: You can also build quite complex XPaths and refer to further registered models via '$myModelId' in predicates, see second example.Example
$guiStatus/guiStatus:Status/guiStatus:MyNode // A string with a simple XPath $modelId/f:Filter/f:Filters[$guiStatus/guiStatus:Status/guiStatus:MyNodes/@attr] // A string with a more complex XPath, using multiple models -
OnceReadyParamobject
-
Properties:
Name Type Argument Default Description onSuccessfunction callback function which is called when bcdui.core.AbstractExecutable is or gets ready onFailurefunction <optional>
callback function which is called when bcdui.core.AbstractExecutable gets into failed status executeIfNotReadyboolean <optional>
false do execute bcdui.core.AbstractExecutable if it's not ready -
OnChangeParamobject
-
Adds a data listener to the DataProvider which can be triggered when the data (XML document) is changed. The listener offers two options: It can either be fired on any change or on a change in a specific XPath result. Note that no uniqueness check is done before adding the listener so it is possible to add the same listener twice or more times. / /**
Properties:
Name Type Argument Default Description callbackfunction function to be called after changes trackingXPathstring <optional>
xPath to monitor for changes onlyOnceboolean <optional>
false fire on each change or only once (higher priority than listenerObject's onlyOnce) idstring <optional>
listener id (only needed for removeDataListener usability) -
OnReadyParamobject
-
Properties:
Name Type Argument Default Description onSuccessfunction callback function which is called when bcdui.core.AbstractExecutable is or gets ready onFailurefunction <optional>
callback function which is called when bcdui.core.AbstractExecutable gets into failed status onlyOnceboolean <optional>
false call callback only once or on each ready state onlyFutureboolean <optional>
false only future ready states will trigger the callback. Per default the callback is called immediately (but async), if the AbstractExecutable is already in ready state executeIfNotReadyboolean <optional>
false do execute bcdui.core.AbstractExecutable if it's not ready -
PostWrsParamobject
-
Properties:
Name Type Argument Description args.wrsDocDomDocument | Array.<DomDocument> | bcdui.core.DataProvider | Array.<bcdui.core.DataProvider> Document(s) / DataProvider onSuccessfunction <optional>
Callback on success, is called after successful POST or if POST was not issued due to to changes in the document onFailurefunction <optional>
Callback on failure, is called if error occurs onWrsValidationFailurefunction <optional>
Callback on serverside validate failure, if omitted the onFailure is used in case of validation failures uristring <optional>
An URI (i.e. SomeDoc) which is appended as pathInfo to WrsServlet -
RemoveDataListenerParamobject
-
Properties:
Name Type Argument Description idstring <optional>
listener id callbackstring <optional>
listener function -
RemoveStatusListenerParamobject
-
Properties:
Name Type Description listenerfunction | bcdui.core.StatusListener A function or StatusListener object representing the listener action. statusbcdui.core.Status The status this listener is listening to. If it is missing it is assumed that the listener belongs to the global scope. -
SimpleModelParamobject
-
Properties:
Name Type Argument Default Description urlstring | bcdui.core.RequestDocumentDataProvider A string with the URL or a RequestDocumentDataProvider providing the request. See RequestDocumentDataProvider for an example. uristring <optional>
uri extension as a suffix to .url to tag requests, must not start with '/'. This parameter is ineffective if .url is provided. idstring <optional>
Globally unique id for used in declarative contexts isAutoRefreshboolean <optional>
false If true, each change of args.urlProvider triggers a reload of the model mimeTypestring <optional>
auto Mimetype of the expected data. If "auto" or none is given it is derived from the url saveOptionsSimpleModelParamSaveOptions <optional>
An argument map for save options SimpleModelParamSaveOptions -
SimpleModelParamSaveOptionsobject
-
Properties:
Name Type Argument Default Description saveChainchainDef <optional>
The definition of the transformation chain saveParametersObject <optional>
An object, where each property holds a DataProvider, used as a transformation parameters. reloadboolean <optional>
false Useful especially for models of type SimpleModel for refreshing from server after save onSuccessfunction <optional>
Callback after saving (and optionally reloading) was successfully finished onFailurefunction <optional>
Callback on failure, is called if error occurs onWrsValidationFailurefunction <optional>
Callback on serverside validate failure, if omitted the onFailure is used in case of validation failures urlProviderbcdui.core.DataProvider <optional>
dataProvider holding the request url (by default taken from the args.url). -
StaticModelParamObject
-
Properties:
Name Type Argument Description idstring <optional>
Globally unique id for use in declarative contexts, ignored if args.data is not set datastring | Object | DomDocument An XML string, which is parsed, a DOM document or a parameter map -
SymLinkObject
-
Symlink
-
SyncTranslateFormatMessageParamobject
-
Translates and formats if needed the given message id. The function should be used only if bcduiI18Model ready. If the catalog is not initialized up to this moment (the catalog initialization is asychronous) then NULL is returned in production and an error is thrown in debug mode. /**
Properties:
Name Type Argument Description msgidstring <optional>
the message id -
targetHtmlRefstring HtmlElement jQuery
-
Any reference to an existing HTML element: Can be a DOM element, a jQuery object, a css selector or a plain id of an element. The referenced element *must* be attached to html document unless the reference itself is a DOM element.
If jQuery returns a list with multiple matches, the first member is used. These are all valid examples:Example
document.getElementById("myId").firstChild // Any plain DOM element jQuery('#myElementId') • jQuery('ul li:first') // A jQuery list, first one is used 'ul li:first' // A css selector, first match is used 'myElementId' // Treated as an element id if its just letters (id without #) -
writableModelXPathstring
-
Provide an XPath, which can be used to append nodes to. In most cases the path will be created if it does not exist, reusing as much as possible. See bcdui.core.createElementWithPrototype Start the XPath with $dataProviderId, make sure that you create this bcdui.core.DataProvider with an explicit id. Default for this is $guiStatus, which is always auto-registered. Be aware that the model's data changes, if it is a ModelWrapper, the next execute() would of course overwrite the change.
You can also build complex XPaths and refer to further models via '$dataProviderId' in predicates.Example
/guiStatus:Status/guiStatus:MyNode // Default is $guiStatus $modelId/f:Filter/f:Filters[$guiStatus/guiStatus:Status/guiStatus:MyNodes/@attr] // A string with a more complex XPath, using multiple models -
xPathstring
-
Provide an XPath, which can be used to use nodes from, can point to an attribute or a full subtree.
Note: must not contain model references.Example
/guiStatus:Status/guiStatus:MyNode // A string with a simple XPath