Référence FOM > Content > Format Controls > fContexts interface
fContexts interface
A set of context tests, equivalent to an LD Context Control Stream (.cx)
This object inherits from fControl.
includes attribute
An ordered list of other context sets to process alongside this one.
includes
Access
read-only
Returns
fContextInclude[]
matches attribute
An ordered list of context matches. This array is automatically sorted according to the priority of child elements.
matches
Access
read-only
Returns
fContextMatch[]
addInclude method
Adds a new context to the test array.
addInclude include
Parameters
fContextInclude include
The set of contexts to add to the include array. If this value is null or undefined, a new fContextInclude object will be created.
Returns
fContextInclude. The new fContextInclude object.
addMatch method
Adds a new context match to the matches array.
addMatch match
Parameters
fContextMatch match
The context to add to the matches array. If this value is null or undefined, a new fContextMatch object will be created.
Returns
fContextMatch. The new fContextMatch object.
clearIncludes method
Removes all the specified contexts from the include array.
clearIncludes
Parameters
None
Returns
void. None.
clearMatches method
Removes all the specified contexts from the matches array.
clearMatches
Parameters
None
Returns
void. None.
removeInclude method
Removes the specified set of contexts from the include array.
removeInclude include
Parameters
fContextInclude include
The context include to remove.
Returns
void. None.
removeMatch method
Removes the specified context from the matches array.
removeMatch match
Parameters
fContextMatch match
The context match to remove.
Returns
void. None.
Est-ce que cela a été utile ?