...
Div |
---|
|
Panel |
---|
borderColor | #ccc |
---|
bgColor | #fff |
---|
borderStyle | solid |
---|
title | On This Page | borderStyle
---|
| | solid |
|
Excerpt |
---|
Components or functions in general may have different requirements depending on the context in which they are operating. For example, a subcomponent might operate differently when running on a production server versus when testing locally off the file system, and differently still when operating in the context of automated tests. In a more fine-grained way, a component may behave differently when operating in a browser with different capabilities, or on behalf of a user who has expressed particular needs or preferences. |
...
If an array of context names is provided, they are conceptually ANDed. The IoC system will attempt to find registered demands that most closely match the context
parameter. So, for example:
Code Block |
---|
| javascript |
---|
| javascript |
---|
bgColor | white |
---|
borderStyle | nonejavascript |
---|
|
fluid.demands("subcomp", "comp2", demandspec1);
fluid.demands("subcomp", ["comp2", "testEnv"], demandspec2);
|
...