@cocreate/config
Version:
A convenient chain handler allows user to chain multiple CoCreate components together. When one action is complete next one will start. The sequence goes untill all config completed. Grounded on Vanilla javascript, easily configured using HTML5 attributes
57 lines (52 loc) • 1.57 kB
HTML
<html lang="en">
<head>
<title>config | 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"
config="timeout(12000), action(#id-two)">
click
</button>
</form>
<form>
<button
type="button"
config="timeout(1000), timeout(2000), timeout(5000)">
click
</button>
</form>
<form>
<input render-key="render.company" value="Paper Company" />
<button
id="id-two"
type="button"
config="timeout(1000), action(#id-three)"
hidden>
click
</button>
</form>
<form>
<input render-key="render.name" value="Micheal Scott" />
<button
id="id-three"
type="button"
config="timeout(4000), renderKey"
hidden>
click
</button>
</form>
<!--<script src="../dist/CoCreate-config.js" ></script>-->
<script src="https://CoCreate.app/dist/CoCreate.js"></script>
</body>
</html>