The CSSPrimitiveValue interface derives from the web.css.CSSValue
and represents the current computed value of a CSS property.
The CSSPrimitiveValue interface derives from the `web.css.CSSValue` and represents the current computed value of a CSS property.
(get-counter-value this)
Method.
The getCounterValue() method of the web.css.CSSPrimitiveValue
is used to get the counter value. If this CSS value doesn't contain
counter value, a web.dom.DOMException
is raised. Modification
the corresponding style property can be achieved using the Counter
var counterValue = cssPrimitiveValue.getCounterValue();
See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/getCounterValue
Method. The getCounterValue() method of the `web.css.CSSPrimitiveValue` is used to get the counter value. If this CSS value doesn't contain counter value, a `web.dom.DOMException` is raised. Modification the corresponding style property can be achieved using the `Counter` `var counterValue = cssPrimitiveValue.getCounterValue();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/getCounterValue`
(get-float-value this unit)
Method.
The getFloatValue() method of the web.css.CSSPrimitiveValue
is used to get a float value in a specified unit. If this CSS
doesn't contain a float value or can't be converted into the
unit, a web.dom.DOMException
is raised.
var floatValue = cssPrimitiveValue.getFloatValue(unit);
See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/getFloatValue
Method. The getFloatValue() method of the `web.css.CSSPrimitiveValue` is used to get a float value in a specified unit. If this CSS doesn't contain a float value or can't be converted into the unit, a `web.dom.DOMException` is raised. `var floatValue = cssPrimitiveValue.getFloatValue(unit);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/getFloatValue`
(get-rect-value this)
Method.
The getRectValue() method of the web.css.CSSPrimitiveValue
is used to get a rect value. If this CSS value doesn't contain
rect value, a web.dom.DOMException
is raised. Modification
the corresponding style property can be achieved using the Rect
var rectValue = cssPrimitiveValue.getRectValue();
See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/getRectValue
Method. The getRectValue() method of the `web.css.CSSPrimitiveValue` is used to get a rect value. If this CSS value doesn't contain rect value, a `web.dom.DOMException` is raised. Modification the corresponding style property can be achieved using the `Rect` `var rectValue = cssPrimitiveValue.getRectValue();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/getRectValue`
(get-rgb-color-value this)
Method.
The getRGBColorValue() method of the web.css.CSSPrimitiveValue
is used to get an RGB color value. If this CSS value doesn't
a RGB color value, a web.dom.DOMException
is raised. Modification
the corresponding style property can be achieved using the RGBColor
var rgbColorValue = cssPrimitiveValue.getRGBColorValue();
See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/getRGBColorValue
Method. The getRGBColorValue() method of the `web.css.CSSPrimitiveValue` is used to get an RGB color value. If this CSS value doesn't a RGB color value, a `web.dom.DOMException` is raised. Modification the corresponding style property can be achieved using the `RGBColor` `var rgbColorValue = cssPrimitiveValue.getRGBColorValue();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/getRGBColorValue`
(get-string-value this)
Method.
The getStringValue() method of the web.css.CSSPrimitiveValue
is used to get a string value. If this CSS value doesn't contain
string value, a web.dom.DOMException
is raised.
var stringValue = cssPrimitiveValue.getStringValue();
See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/getStringValue
Method. The getStringValue() method of the `web.css.CSSPrimitiveValue` is used to get a string value. If this CSS value doesn't contain string value, a `web.dom.DOMException` is raised. `var stringValue = cssPrimitiveValue.getStringValue();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/getStringValue`
(primitive-type this)
Property.
[Read Only]
The primitiveType read-only property of the web.css.CSSPrimitiveValue
represents the type of a CSS value.
type = cssPrimitiveValue.primitiveType;
See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/primitiveType
Property. [Read Only] The primitiveType read-only property of the `web.css.CSSPrimitiveValue` represents the type of a CSS value. `type = cssPrimitiveValue.primitiveType;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/primitiveType`
(set-float-value this unit-type float-value)
Method.
The setFloatValue() method of the web.css.CSSPrimitiveValue
is used to set a float value. If the property attached to this
can't accept the specified unit or the float value, the value
be unchanged and a web.dom.DOMException
will be raised.
cssPrimitiveValue.setFloatValue(unitType, floatValue);
See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/setFloatValue
Method. The setFloatValue() method of the `web.css.CSSPrimitiveValue` is used to set a float value. If the property attached to this can't accept the specified unit or the float value, the value be unchanged and a `web.dom.DOMException` will be raised. `cssPrimitiveValue.setFloatValue(unitType, floatValue);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/setFloatValue`
(set-string-value this string-type string-value)
Method.
The setStringValue() method of the web.css.CSSPrimitiveValue
is used to set a string value. If the property attached to this
can't accept the specified unit or the string value, the value
be unchanged and a web.dom.DOMException
will be raised.
cssPrimitiveValue.setStringValue(stringType, stringValue);
See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/setStringValue
Method. The setStringValue() method of the `web.css.CSSPrimitiveValue` is used to set a string value. If the property attached to this can't accept the specified unit or the string value, the value be unchanged and a `web.dom.DOMException` will be raised. `cssPrimitiveValue.setStringValue(stringType, stringValue);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/setStringValue`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close