Automation

pre select

floorplans.select(
node element );

Selects an element. The floorplan view type must be checkbox or radio.

Parameters

element
(node) The element to select.

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.select( elmnt );

</script>
filed under: