A namespace for the BCD-UI detailView widget.
Methods
-
staticbcdui.widget.detailView.attachDetailView(args)
widget/detailView/detailViewPackage.js, line 84 -
Name Type Description argsName Type Description targetHtmlElementString | Element to attach listener to targetRendererString | bcdui.core.Renderer optional the target renderer, targetHtmlElement has precedence consumeEventBoolean optional, default is: FALSE, consumes the event or allow propagation childElementSelectorString filter (jQuery) compatible for filtering on nested children, default is "tbody tr" eventString event to attach on , default is 'dblclick' filterFunctionfunction a filter function to check on target element if to pass, default is a filter function expecting targetElement to have 'bcdrowident' attribute this function shall return TRUE of FALSE, an argument is provided to the function containing following properties: Name Type Description eventContext.eventthe event eventContext.targetElementthe target element where event has occurred renderViewContainerFunctionfunction a function which renders the view container, the default implementation is Name Type Description renderDialogContainer(),please refer to docs for more infos, arguments passed to this function: factoryArgsObject the initial factory args which were provided attachDetailView() function, may be null eventContext.eventObject the event object which triggered this function, may be null eventContext.targetElementElement the target element which event occurred, may be null referenceElementElement is eventContext.targetElement targetHtmlElementElement element to attach view container on renderViewContainerFunctionParamsFactoryfunction factory for additional params which are mixed-in to the argument of renderViewContainerFunction() available through extra.* property; this function gets same arguments as 'renderViewContainerFunction' containerViewRenderedCbfunction a function which is called by renderViewContainerFunction() once container is contructed Returns:
args, additionally contains .unbind() function which stops this handler working; when called that function, you have to attachDetailView() again -
staticbcdui.widget.detailView.renderDialogContainer(args)
widget/detailView/detailViewPackage.js, line 208 -
renders a details view container for given element, this implementation renders jQuery.dialog, you can override any attributes via extra.dialog object parameter
Name Type Description argsName Type Description targetHtmlElementthe target element this container is attached to referenceElementElement the the element this detail container is constructed for containerViewRenderedCb.the function which is called once target container is constructed and argument with following properties is provided: containerViewRenderedCb.targetHtmlElementElement the element to render content into, this may be reused so ensure executing .empty() before adding content containerViewRenderedCb.referenceElementElement see above --- specific parameters, which are available in this function, but is not API contract, i.e. in case you provide your custom renderViewContainer function --- extra.dialog{Object} - extra parameters to jQuery Dialog UI plugin, which are mixed-in at construction time; you overwrite the defaults! extra.dialog.disableCloseControl - special param to remove the [close] control from standard ui-dialog bar, so close() can be issued via API/Event only Returns:
jQuery object ( container element )