diff --git a/docs/_getting_started/quick_start.md b/docs/_getting_started/quick_start.md index 88deb73..00bbf50 100644 --- a/docs/_getting_started/quick_start.md +++ b/docs/_getting_started/quick_start.md @@ -36,6 +36,79 @@ enhanced_login_form_example: |

+generic_sample_css: | + button:disabled { + opacity: .5; + } + +phone_list_form_example: | +
+
+
+ + + +
+
+

+ + +

+
+ +phone_list_form_example_notes: | + 👉 Limited to a **maximum of 6** numbers. + + 👉 Notice trigger butons **get propperly disabled** when limits reached. + + 👉 They are also excluded from keyboard navigation for better navigation with `tab` / `shift`+`tab`. + + 👉 Even thought they can be triggered from keyboard through configured (`Ctrl`-`+` and `Ctrl-`-`) hot keys. + + 👉 ...Notice what happen when you hit the `ctrl` key while editing... + + 👉 Also note that, when you click the `💾 Submit` button **only non empty items get exported**. + + 👉 ...You can prevent this behaviour by setting the *exportEmpteis* property to *true*. + + 👉 Change items order by just dragging and dropping them. + +advanced_sample_css: | + button:disabled { + opacity: .5; + } + label, button { + user-select: none; + } + + button[data-hotkey] { + position: relative; + overflow-x: display; + } + button[data-hotkey]::before { + content: attr(data-hotkey); + + display: inline-block; + position: absolute; + top: 2px; + left: 2px; + z-index: 10; + pointer-events: none; + + background-color: #ffd; + outline: 1px solid lightyellow; + padding: 2px 8px; + border-radius: 4px; + font-weight: bold; + font-family: sans-serif; + font-size: .8em; + white-space: nowrap; + + transform: scale(1.4) translate(.1em, .1em); + + } + + login_export_example_js: | const myForm = new SmarkForm(document.getElementById("myForm$$")); myForm.on("AfterAction_export", ({data})=>{ @@ -224,7 +297,7 @@ Let's mark all fields, buttons and labels... with it: %} -Now, if you go to the *Preview* tag and fill some data in, you can then hit de +Now, if you go to the *Preview* tab and fill some data in, you can then hit de `❌ Clear` button and see that, **it already works!!** 🎉 Also notice that the *for* attribute of all `