Package com.oorian.css
Interface CountersIntf<T extends CountersIntf<T>>
- All Known Implementing Classes:
ClassRule,CssRule,CssStyle,ElementRule,IdRule,KeyFrameRule,TagRule
public interface CountersIntf<T extends CountersIntf<T>>
CSS property setters for CSS counter properties.
This interface provides methods for setting properties related to CSS counters, which are used to automatically number elements. Counters can be incremented, reset, and displayed using generated content.
Usage:
element.setCounterReset("section");
element.setCounterIncrement("section");
- Since:
- 2016
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionsetCounterIncrement(String attrValue) Sets the counter-increment property to increment CSS counters.setCounterReset(String keyFrameName) Sets the counter-reset property to reset CSS counters to a value.
-
Method Details
-
setCounterIncrement
Sets the counter-increment property to increment CSS counters.- Parameters:
attrValue- the counter name and optional increment value (e.g., "section", "section 2")- Returns:
- this for method chaining
-
setCounterReset
Sets the counter-reset property to reset CSS counters to a value.- Parameters:
keyFrameName- the counter name and optional reset value (e.g., "section", "section 0")- Returns:
- this for method chaining
-