Search...
enable( )
Enables the element and sets its enabled
property to true
.
Description
Authorization
Request
This endpoint does not take any parameters
Response Object
Fulfilled - When the element's enabled
property has been set to true
.
Returns an empty object.
Status/Error Codes
Related Content:
Was this helpful?
Enable an element
Copy Code
1$w("#myElement").enable();
Enable an element and log a message when done
Copy Code
1$w("#myElement").enable()2 .then( () => {3 console.log("Element now enabled");4 } );
Toggle an element's enabled state
Copy Code
1if( $w("#myElement").enabled ) {2 $w("#myElement").disable();3}4else {5 $w("#myElement").enable();6}