Echo.Sync.Border
| Class Field Summary | |
|---|---|
| Internal | _PARSER_PXRegular expression to validate/parse a CSS border expression, e. |
| Internal | _PARSERRegular expression to validate/parse a pixel-based CSS border expression, e. |
| Internal | _TEST_EXTENT_PXRegular expression to test whether an extent string is a properly formatted integer pixel value. |
| Class Method Summary | |
|---|---|
| Public | compose()Creates a border property from a size, style, and color. |
| Public | isMultisided()Determines if a border is multisided. |
| Public | parse()Parses a border into size, style, and color components. |
| Public | render()Renders a border to a DOM element. |
| Public | renderClear()Renders a border to a DOM element, clearing an existing border if the border value is null. |
| Public | getPixelSize()Determines the size of a particular side of the border in pixels. |
size
(#Extent)
- the border sizethe
(String)
- border stylethe
(#Color)
- border colorborder
(#Border)
- the border to analyzeborder
(#Border)
- the border to parseborder
(#Border)
- the border to renderthe
(Element)
- target DOM elementstyleAttribute
(String)
- the CSS style attribute name (defaults to "border" if omitted)border
(#Border)
- the border to renderthe
(Element)
- target DOM elementstyleAttribute
(String)
- the CSS style attribute name (defaults to "border" if omitted)border
(#Border)
- the bordersideName
(String)
- , the border side name, "left", "right", "bottom", or "top" (defaults to "top" if omitted)