Liking cljdoc? Tell your friends :D

css.CSSPrimitiveValue

The CSSPrimitiveValue interface derives from the css.CSSValue and represents the current computed value of a CSS property.

The CSSPrimitiveValue interface derives from the `css.CSSValue`
and represents the current computed value of a CSS property.
raw docstring

get-counter-valuecljs

(get-counter-value this)

Method.

The getCounterValue() method of the css.CSSPrimitiveValue interface used to get the counter value. If this CSS value doesn't contain counter value, a dom.DOMException is raised. Modification to corresponding style property can be achieved using the web.Counter

var counterValue = cssPrimitiveValue.getCounterValue();

See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/getCounterValue

Method.

The getCounterValue() method of the `css.CSSPrimitiveValue` interface
used to get the counter value. If this CSS value doesn't contain
counter value, a `dom.DOMException` is raised. Modification to
corresponding style property can be achieved using the `web.Counter`

`var counterValue = cssPrimitiveValue.getCounterValue();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/getCounterValue`
sourceraw docstring

get-float-valuecljs

(get-float-value this unit)

Method.

The getFloatValue() method of the css.CSSPrimitiveValue interface used to get a float value in a specified unit. If this CSS value contain a float value or can't be converted into the specified a 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 `css.CSSPrimitiveValue` interface
used to get a float value in a specified unit. If this CSS value
contain a float value or can't be converted into the specified
a `dom.DOMException` is raised.

`var floatValue = cssPrimitiveValue.getFloatValue(unit);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/getFloatValue`
sourceraw docstring

get-rect-valuecljs

(get-rect-value this)

Method.

The getRectValue() method of the css.CSSPrimitiveValue interface used to get a rect value. If this CSS value doesn't contain a value, a dom.DOMException is raised. Modification to the corresponding property can be achieved using the web.Rect interface.

var rectValue = cssPrimitiveValue.getRectValue();

See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/getRectValue

Method.

The getRectValue() method of the `css.CSSPrimitiveValue` interface
used to get a rect value. If this CSS value doesn't contain a
value, a `dom.DOMException` is raised. Modification to the corresponding
property can be achieved using the `web.Rect` interface.

`var rectValue = cssPrimitiveValue.getRectValue();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/getRectValue`
sourceraw docstring

get-rgb-color-valuecljs

(get-rgb-color-value this)

Method.

The getRGBColorValue() method of the css.CSSPrimitiveValue is used to get an RGB color value. If this CSS value doesn't a RGB color value, a dom.DOMException is raised. Modification the corresponding style property can be achieved using the web.RGBColor

var rgbColorValue = cssPrimitiveValue.getRGBColorValue();

See also: https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/getRGBColorValue

Method.

The getRGBColorValue() method of the `css.CSSPrimitiveValue`
is used to get an RGB color value. If this CSS value doesn't
a RGB color value, a `dom.DOMException` is raised. Modification
the corresponding style property can be achieved using the `web.RGBColor`

`var rgbColorValue = cssPrimitiveValue.getRGBColorValue();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/getRGBColorValue`
sourceraw docstring

get-string-valuecljs

(get-string-value this)

Method.

The getStringValue() method of the css.CSSPrimitiveValue interface used to get a string value. If this CSS value doesn't contain string value, a 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 `css.CSSPrimitiveValue` interface
used to get a string value. If this CSS value doesn't contain
string value, a `dom.DOMException` is raised.

`var stringValue = cssPrimitiveValue.getStringValue();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/getStringValue`
sourceraw docstring

primitive-typecljs

(primitive-type this)

Property.

The primitiveType read-only property of the 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.

The primitiveType read-only property of the `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`
sourceraw docstring

set-float-valuecljs

(set-float-value this unit-type float-value)

Method.

The setFloatValue() method of the css.CSSPrimitiveValue interface used to set a float value. If the property attached to this value accept the specified unit or the float value, the value will unchanged and a 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 `css.CSSPrimitiveValue` interface
used to set a float value. If the property attached to this value
accept the specified unit or the float value, the value will
unchanged and a `dom.DOMException` will be raised.

`cssPrimitiveValue.setFloatValue(unitType, floatValue);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/setFloatValue`
sourceraw docstring

set-string-valuecljs

(set-string-value this string-type string-value)

Method.

The setStringValue() method of the css.CSSPrimitiveValue interface 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 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 `css.CSSPrimitiveValue` interface
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 `dom.DOMException` will be raised.

`cssPrimitiveValue.setStringValue(stringType, stringValue);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSPrimitiveValue/setStringValue`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close