Automation

pre highlight

floorplans.highlight(
node element );

Highlights an element.

Parameters

element
(node) The element to highlight.

Source

floorplans/public/js/controls.js

More Information

This code should be implemented in JavaScript. For extra guidance, please see WPBeginner’s tutorial on adding custom javascript.

Example

<script type="text/javascript">

	var elmnt = document.querySelector( '.wp-block-floorplans-element[data-id="3"]' );

	floorplans.highlight( elmnt );

</script>
filed under: