.. _dojox/data/CssRuleStore: dojox.data.CssRuleStore ======================= :Status: Contributed, Draft :Version: 1.0 :Available: since V1.2 .. contents:: :depth: 3 CssRuleStore is a read interface to the CSS rules loaded in the current page. Rules can be selected based on several different filterable attributes outlined below. Which CSS rules are indexed can be determined by a context provided to the store at the time of creation. This store is useful for reading the CSS rules that are loaded and in effect on the page. =========== API Support =========== * dojo.data.api.Read ====================== Constructor Parameters ====================== The constructor for CssRuleStore allows for one optional parameter. +----------+-------------------------------------------------------------------------------------------------+-------------+ |**Name** |**Description** |**Type** | +----------+-------------------------------------------------------------------------------------------------+-------------+ |context |An array of strings, each being a pattern to match on the paths of loaded stylesheets, indicating|Array | | |which rules to index. | | +----------+-------------------------------------------------------------------------------------------------+-------------+ =============== Item Attributes =============== +--------------------+-------------------------------------------------------------------------------------------------------+ |selector |The selector text (for example, '.class') | +--------------------+-------------------------------------------------------------------------------------------------------+ |classes |An array of strings representing the classes present in this selector (for example, if the selector is | | |'.class1, .class2', the result would be ['class1', 'class2']) | +--------------------+-------------------------------------------------------------------------------------------------------+ |rule |The DOM Rule object as provided by the browser | +--------------------+-------------------------------------------------------------------------------------------------------+ |style |The DOM CSSStyleDeclaration object as provided by the browser | +--------------------+-------------------------------------------------------------------------------------------------------+ |cssText |The cssText string from the Rule object, provided by the browser | +--------------------+-------------------------------------------------------------------------------------------------------+ |styleSheet |The DOM Stylesheet object this rule came from | +--------------------+-------------------------------------------------------------------------------------------------------+ |parentStyleSheet |The parent stylesheet to the sheet this rule came from. May be null (if the rule came from a