UNPKG

@cocreate/actions

Version:

Chain multiple component executions to generate your desired logic, when one action is complete next one will start. The sequence goes until all actions have been completed. Vanilla javascript, easily configured using HTML5 attributes and/or JavaScript AP

58 lines (53 loc) 1.24 kB
<!DOCTYPE html> <html lang="en"> <head> <title>Actions | CoCreateJS</title> <!-- CoCreate Favicon --> <link rel="icon" type="image/png" sizes="32x32" href="../assets/favicon.ico" /> <link rel="manifest" href="/manifest.webmanifest" /> </head> <body> <form> <button type="button" id="id-one" actions="timeout(12000), action($document #id-two)"> click </button> </form> <form> <button type="button" actions="timeout(1000), timeout(2000), timeout(5000)"> click </button> </form> <form> <input render-key="render.company" value="Paper Company" /> <button id="id-two" type="button" actions="timeout(1000), action($document #id-three)" hidden> click </button> </form> <form> <input render-key="render.name" value="Micheal Scott" /> <button id="id-three" type="button" actions="timeout(4000), renderKey" hidden> click </button> </form> <!--<script src="../dist/CoCreate-actions.js" ></script>--> <!-- <script src="../../../CoCreateJS/dist/CoCreate.js"></script> --> <script src="https://CoCreate.app/dist/CoCreate.js"></script> </body> </html>