Skip to content
This repository was archived by the owner on Dec 17, 2021. It is now read-only.

Files

Latest commit

 

History

History
14 lines (9 loc) · 783 Bytes

writesync.md

File metadata and controls

14 lines (9 loc) · 783 Bytes

CSS/writeSync()

This function sets one or more style properties on the given element. It is the programmatic alternative to ElementCSSInlineStyle.style. It also has special support for vendor-prefixed properties.

The suffix Sync differentiates this method from its Async counterpart - writeAsync(). Unlike the Async counterpart, writeSync() is a normal function that runs in the same flow with that of the calling code.

Import

import writeSync from '@web-native-js/play-ui/src/css/writeSync.js';

Syntax

See cssAsync() - Set/Unset Inline Styles