Skip to content

Commit

Permalink
Deploy website - based on 22d8066
Browse files Browse the repository at this point in the history
  • Loading branch information
juliendelort committed Oct 16, 2023
1 parent aebe87e commit 19bfb95
Show file tree
Hide file tree
Showing 19 changed files with 34 additions and 34 deletions.
4 changes: 2 additions & 2 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
<script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","G-MGY64L82QY",{})</script><title data-react-helmet="true">Page Not Found | informel</title><meta data-react-helmet="true" property="og:title" content="Page Not Found | informel"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:image" content="https://informel.site/img/logo.png"><meta data-react-helmet="true" name="twitter:image" content="https://informel.site/img/logo.png"><meta data-react-helmet="true" property="og:url" content="https://informel.site/404.html"><meta data-react-helmet="true" name="docusaurus_locale" content="en"><meta data-react-helmet="true" name="docusaurus_tag" content="default"><meta data-react-helmet="true" name="keywords" content="informel, forms, form, ajax, html, web component, submit, input, formdata, library, form management"><meta data-react-helmet="true" name="description" content="informel is Web Component that wraps native HTML forms. Features: validation errors,
Native &amp; custom validation rules.validity state, dirty check, auto submission via AJAX call"><link data-react-helmet="true" rel="icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://informel.site/404.html"><link data-react-helmet="true" rel="alternate" href="https://informel.site/404.html" hreflang="en"><link data-react-helmet="true" rel="alternate" href="https://informel.site/404.html" hreflang="x-default"><link rel="stylesheet" href="/assets/css/styles.d732c75c.css">
<link rel="preload" href="/assets/js/runtime~main.b5c3ff19.js" as="script">
<link rel="preload" href="/assets/js/main.f030afa3.js" as="script">
<link rel="preload" href="/assets/js/main.632d9600.js" as="script">
</head>
<body>
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"dark")}()</script><div id="__docusaurus">
<div role="region"><a href="#" class="skipToContent_ZgBM">Skip to main content</a></div><nav class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Navigation bar toggle" class="navbar__toggle clean-btn" type="button" tabindex="0"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/"><div class="navbar__logo"><img src="/img/logo.svg" alt="informel Logo" class="themedImage_W2Cr themedImage--light_TfLj"><img src="/img/logo.svg" alt="informel Logo" class="themedImage_W2Cr themedImage--dark_oUvU"></div><b class="navbar__title">informel</b></a></div><div class="navbar__items navbar__items--right"><a href="https://github.com/juliendelort/informel" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>GitHub<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_I5OW"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><div class="toggle_Pssr toggle_TdHA toggleChecked_cnQY toggleDisabled_jDku"><div class="toggleTrack_SSoT" role="button" tabindex="-1"><div class="toggleTrackCheck_XobZ"><span class="toggleIcon_eZtF">🌜</span></div><div class="toggleTrackX_YkSC"><span class="toggleIcon_eZtF">🌞</span></div><div class="toggleTrackThumb_uRm4"></div></div><input type="checkbox" checked="" class="toggleScreenReader_JnkT" aria-label="Switch between dark and light mode"></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper"><main class="container margin-vert--xl"><div class="row"><div class="col col--6 col--offset-3"><h1 class="hero__title">Page Not Found</h1><p>We could not find what you were looking for.</p><p>Please contact the owner of the site that linked you to the original URL and let them know their link is broken.</p></div></div></main></div><footer class="footer footer--dark"><div class="container container-fluid"><div class="row footer__links"><div class="col footer__col"><div class="footer__title">Docs</div><ul class="footer__items"><li class="footer__item"><a class="footer__link-item" href="/">Getting Started</a></li><li class="footer__item"><a class="footer__link-item" href="/api">API</a></li></ul></div><div class="col footer__col"><div class="footer__title">More</div><ul class="footer__items"><li class="footer__item"><img src="img/github-mark.svg" width="18" align="center">&nbsp;&nbsp;<a style="display:inline-block;" class="footer__link-item" href="https://github.com/juliendelort/informel">Github</a></li><li class="footer__item"><img src="img/Twitter-logo.svg" width="18" align="center">&nbsp;&nbsp;<a style="display:inline-block;" class="footer__link-item" href="https://twitter.com/intent/follow?screen_name=informel_js">Twitter</a></li></ul></div></div><div class="footer__bottom text--center"><div class="footer__copyright">Copyright © 2023 informel, Inc. Built with Docusaurus.</div></div></div></footer></div>
<script src="/assets/js/runtime~main.b5c3ff19.js"></script>
<script src="/assets/js/main.f030afa3.js"></script>
<script src="/assets/js/main.632d9600.js"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions api/index.html

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions assets/js/main.632d9600.js

Large diffs are not rendered by default.

File renamed without changes.
2 changes: 0 additions & 2 deletions assets/js/main.f030afa3.js

This file was deleted.

4 changes: 2 additions & 2 deletions custom-elements/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MGY64L82QY"></script>
<script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","G-MGY64L82QY",{})</script><title data-react-helmet="true">Custom form controls | informel</title><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:image" content="https://informel.site/img/logo.png"><meta data-react-helmet="true" name="twitter:image" content="https://informel.site/img/logo.png"><meta data-react-helmet="true" property="og:url" content="https://informel.site/custom-elements"><meta data-react-helmet="true" name="docusaurus_locale" content="en"><meta data-react-helmet="true" name="docusaurus_version" content="current"><meta data-react-helmet="true" name="docusaurus_tag" content="docs-default-current"><meta data-react-helmet="true" name="keywords" content="informel, forms, form, ajax, html, web component, submit, input, formdata, library, form management"><meta data-react-helmet="true" property="og:title" content="Custom form controls | informel"><meta data-react-helmet="true" name="description" content="Sometimes we need use non-standard controls in our forms. Web Components, for example, don&#x27;t work well with forms."><meta data-react-helmet="true" property="og:description" content="Sometimes we need use non-standard controls in our forms. Web Components, for example, don&#x27;t work well with forms."><link data-react-helmet="true" rel="icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://informel.site/custom-elements"><link data-react-helmet="true" rel="alternate" href="https://informel.site/custom-elements" hreflang="en"><link data-react-helmet="true" rel="alternate" href="https://informel.site/custom-elements" hreflang="x-default"><link rel="stylesheet" href="/assets/css/styles.d732c75c.css">
<link rel="preload" href="/assets/js/runtime~main.b5c3ff19.js" as="script">
<link rel="preload" href="/assets/js/main.f030afa3.js" as="script">
<link rel="preload" href="/assets/js/main.632d9600.js" as="script">
</head>
<body>
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"dark")}()</script><div id="__docusaurus">
<div role="region"><a href="#" class="skipToContent_ZgBM">Skip to main content</a></div><nav class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Navigation bar toggle" class="navbar__toggle clean-btn" type="button" tabindex="0"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/"><div class="navbar__logo"><img src="/img/logo.svg" alt="informel Logo" class="themedImage_W2Cr themedImage--light_TfLj"><img src="/img/logo.svg" alt="informel Logo" class="themedImage_W2Cr themedImage--dark_oUvU"></div><b class="navbar__title">informel</b></a></div><div class="navbar__items navbar__items--right"><a href="https://github.com/juliendelort/informel" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>GitHub<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_I5OW"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><div class="toggle_Pssr toggle_TdHA toggleChecked_cnQY toggleDisabled_jDku"><div class="toggleTrack_SSoT" role="button" tabindex="-1"><div class="toggleTrackCheck_XobZ"><span class="toggleIcon_eZtF">🌜</span></div><div class="toggleTrackX_YkSC"><span class="toggleIcon_eZtF">🌞</span></div><div class="toggleTrackThumb_uRm4"></div></div><input type="checkbox" checked="" class="toggleScreenReader_JnkT" aria-label="Switch between dark and light mode"></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper docs-wrapper docs-doc-page"><div class="docPage_P2Lg"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_RiI4" type="button"></button><aside class="theme-doc-sidebar-container docSidebarContainer_rKC_"><div class="sidebar_CW9Y"><nav class="menu thin-scrollbar menu_SkdO"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/">Getting Started</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/validation-rules">Validation rules &amp; error messages</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/showing-errors">Showing validation errors</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/getting-form-values">Getting form values</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/listening-for-changes">Listening for changes</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/submitting">Submitting</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/dirty-check">Dirty Check</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/resetting">Resetting the form &amp; setting values</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/nested_fields">Nested fields</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" href="/custom-elements">Custom form controls</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/react">Usage in React</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/remix">Usage in Remix</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/api">API</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/examples">Examples</a></li></ul></nav></div></aside><main class="docMainContainer_TCnq"><div class="container padding-top--md padding-bottom--lg"><div class="row"><div class="col docItemCol_DM6M"><div class="docItemContainer_vinB"><article><div class="theme-doc-markdown markdown"><h1>Custom form controls</h1><p>Sometimes we need use non-standard controls in our forms. Web Components, for example, don&#x27;t work well with forms.
Here is how to proceed:</p><ul><li>When your custom control&#x27;s value changes, call <code>informEl.setValues()</code> to update the value.</li><li>Wrap your custom control in a <code>&lt;inform-field&gt;</code> element and <strong>set the <code>name</code> attribute on the <code>&lt;inform-field&gt;</code> element itself</strong>.</li><li>Validate using <code>informEl.validationHandler</code>, the value set with <code>informEl.setValues()</code> above will be passed as input, and the <code>&lt;inform-field&gt;</code> element added in the previous
step will display the error.</li></ul><p>Here is an example:</p><iframe width="100%" height="600" src="//jsfiddle.net/juliendelort/e236cmtg/33/embedded/result,html/" allowfullscreen="allowfullscreen" frameborder="0"></iframe><p>The &quot;lastName&quot; field consists of 2 buttons, one setting a valid value, the other one an invalid value.</p></div></article><nav class="pagination-nav docusaurus-mt-lg" aria-label="Docs pages navigation"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/nested_fields"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">Nested fields</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/react"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Usage in React</div></a></div></nav></div></div></div></div></main></div></div><footer class="footer footer--dark"><div class="container container-fluid"><div class="row footer__links"><div class="col footer__col"><div class="footer__title">Docs</div><ul class="footer__items"><li class="footer__item"><a class="footer__link-item" href="/">Getting Started</a></li><li class="footer__item"><a class="footer__link-item" href="/api">API</a></li></ul></div><div class="col footer__col"><div class="footer__title">More</div><ul class="footer__items"><li class="footer__item"><img src="img/github-mark.svg" width="18" align="center">&nbsp;&nbsp;<a style="display:inline-block;" class="footer__link-item" href="https://github.com/juliendelort/informel">Github</a></li><li class="footer__item"><img src="img/Twitter-logo.svg" width="18" align="center">&nbsp;&nbsp;<a style="display:inline-block;" class="footer__link-item" href="https://twitter.com/intent/follow?screen_name=informel_js">Twitter</a></li></ul></div></div><div class="footer__bottom text--center"><div class="footer__copyright">Copyright © 2023 informel, Inc. Built with Docusaurus.</div></div></div></footer></div>
<script src="/assets/js/runtime~main.b5c3ff19.js"></script>
<script src="/assets/js/main.f030afa3.js"></script>
<script src="/assets/js/main.632d9600.js"></script>
</body>
</html>
Loading

0 comments on commit 19bfb95

Please sign in to comment.