...
Panel | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fluid.accumulate(list, fn, arg)Scan through a list of objects, "accumulating" a value over them (may be a straightforward "sum" or some other chained computation). The results will be added to the initial value passed in by "arg" and returned.
Return: arg fluid.allocateSimpleId(element)Allocate an id to the supplied element if it has none already, by a simple scheme resulting in ids "fluid-id-nnnn" where nnnn is an increasing integer.
Return: String (representing the id)
fluid.byId(id, dokkument)Returns a DOM element quickly, given an id.
Return: Element or null if none exists See also: fluid.jById fluid.clear(target)Clears an object or array of its contents. For objects, each property is deleted.
fluid.COMPONENT_OPTIONSA special "marker object" which is recognized as one of the arguments to fluid.initSubComponents. This object is recognized by reference equality - where it is found, it is replaced in the actual argument position supplied to the specific subcomponent instance, with the particular options block for that instance attached to the overall "that" object. Constant: {} See also: fluid.initSubComponents fluid.container(containerSpec)Fetches a single container element and returns it as a jQuery.
Return: jQuery (a single-element jQuery of container) fluid.copy(tocopy)Performs a deep copy (clone) of its argument
Return: Object (the copy) fluid.createDomBinder(container, selectors)Creates a new DOM Binder instance, used to locate elements in the DOM by name.
Return: Object See: Markup Configuration and Selectors
fluid.defaults()Retrieves and stores a component's default settings centrally.
Return: Object (If the object is passed in the argument, this is added to the store and then returned. If not, the current object in the store is returned) See: Markup Configuration and Selectors, Fluid Component API fluid.dumpEl(element)Dumps a DOM element into a readily recognizable form for debugging - produces a "semi-selector" summarizing its tag name, class and id, whichever are set.
Return: String representing the DOM element fluid.emptySubcomponent(options)Construct a dummy or "placeholder" subcomponent, that optionally provides empty implementations for a set of methods.
Return: Object (the empty sub-component) fluid.event.getEventFirer(unicast, preventable)Constructs an "event firer" object which can be used to register and unregister listeners, to which "events" can be fired. These events consist of an arbitrary function signature.
Returns: Object (see below)
fluid.expectFilledSelector(result, message)Expect that an output from the DOM binder has resulted in a non-empty set of results. If none are found this function will fail with a diagnostic message, with the supplied message prepended.
fluid.fail(message)Causes an error message to be logged to the console and a real runtime error to be thrown.
fluid.find(list, fn, deflt)Scan through a list of objects, terminating on and returning the first member which matches a predicate function.
Return: Object (the first object in the list that matches the predicate function, or deflt if nothing does) fluid.findAncestor(element, test)Finds the nearest ancestor of the element that passes the test.
fluid.findKeyInObjectDeprecated See: fluid.keyForValue fluid.formatMessage(messageString, args)Expand a message string with respect to a set of arguments, following a basic subset of the Java Message Format rules. http://java.sun.com/j2se/1.4.2/docs/api/java/text/MessageFormat.html The message string is expected to contain replacement specifications such as {0}, {1}, {2}, etc.
Return: String (the formatted String) fluid.getId(element)Returns the id attribute from a jQuery or pure DOM element
Return: String representing the id fluid.initDomBinder(that)Creates a new DOM Binder instance for the specified component and mixes it in.
See: Markup Configuration and Selectors {anchor: fluid.initSubcomponent fluid.initSubcomponent(that, className, args)This function provides a generic way of instantiating and configuring any "sub-components" that may be a part of, or used by, a parent component. For example, this function is used by the Inline Edit component to instantiate the Undo decorator, a sub-component that provides Undo functionality to components that support it.
Return Component (a single component) See: Subcomponents, fluid.initSubcomponents
fluid.initSubcomponentsInitialize all the "sub-components" which are configured to be attached to the supplied top-level component, which share a particular "class name".
Return: Array of sub-components See also: fluid.COMPONENT_OPTIONS, fluid.initSubcomponent
fluid.initView(componentName, container, userOptions)The central initialization method called as the first act of every Fluid component. This function automatically merges user options with defaults, attaches a DOM Binder to the instance, and configures events.
Return: Component fluid.instantiateFirers(that, options)Sets up a component's declared events. Events are specified in the options object by name. There are three different types of events tat can be specified.
fluid.invokeGlobalFunction(functionPath, args, environment)Allows you to call a function from an EL expression "functionPath", with the arguments "args", scoped to an "environment". Return: The function represented by "functionPath" with the "args" applied See: fluid.initSubcomponents fluid.isPrimitive(value)Determines if the passed value is of a primitive type
Return: Boolean (true if value is a primitive)
fluid.jById(id, dokkument)Returns a jQuery object given the id of a DOM node. In the case this not found, will return an empty list.
Return: Object (a jQuery Object for the id) or an empty list of the id doesn't exist See also: fluid.byId
fluid.keyForValue(obj, value)Searches through the supplied object for the first value which matches the one supplied.
Return: String representing the key for the passed value, or null if no key is found See also: fluid.findKeyInObject
fluid.log(str)Log a message to a suitable environmental console. If the standard "console" stream is available, the message will be sent there - otherwise either the YAHOO logger or the Opera "postError" stream will be used. Logging must first be enabled with a call for the fluid.setLogging(true) function.
See also: fluid.setLogging
fluid.mergeComponentOptions(that, componentName, userOptions)Merges the component's declared defaults, as obtained from fluid.defaults(), with the user's specified overrides
See also: fluid.defaults fluid.merge(policy, target)Merge a collection of options structures onto a target, following an optional policy. This function is typically called automatically, as a result of an invocation of fluid.initView.
Return: Object, the modified target See: Options Merging for Fluid Components fluid.mergeListeners(events, listeners)Attaches the user's listeners to a set of events.
fluid.messageLocator(messageBase)Converts a data structure consisting of a mapping of keys to message strings, into a "messageLocator" function which maps an array of message codes, to be tried in sequence until a key is found, and an array of substitution arguments into a substituted message string.
Return: String (formatted) or an error message indicating that message string for the key wasn't found fluid.model.composePath(prefix, suffix)Assembles a path by concatenating two String values, representing portions of the path, with a "." separating them.
Return: String representing the composed path fluid.model.copyModel(target, source)Copy a source "model" onto a target
fluid.model.getBeanValueEvaluates an EL expression by fetching a dot-seperated separated list of members recursively from a provided root.
Return: Function fluid.model.parseEL(EL)Parse an EL expression separated by periods (.) into its component segments.
Return: Array of Strings fluid.model.setBeanValue(root, EL, newValue)fluid.removeEvaluates an EL expression by fetching a dot-sepearated list of members recursively from a provided root, and sets the value of the evaluated field.
fluid.remove_if(list, fn)Can traverse through a list of objects, removing those which match a predicate. Similar to jQuery.grep, only acts on the list in-place by removal, rather than by creating a new list by inclusion.
Return: Object (the modified list. *note that the original list is returned and it, itself is modified)
fluid.setLogging(enabled)See also: fluid.log fluid.stringTemplatefluid.transform
fluid.unwrapSee also: fluid.wrap fluid.VALUEfluid.version
fluid.wrapSee also: fluid.unwrap fluid.initComponents(that, className, args) |
...