From cd51f9314341f33489a86997ed648880f825da63 Mon Sep 17 00:00:00 2001 From: Thijs Louisse Date: Sat, 1 May 2021 18:20:29 +0200 Subject: [PATCH] chore: add tutorial Input extesnion --- .changeset/tough-lizards-fly.md | 5 ++ docs/guides/how-to/creating-a-custom-field.md | 74 ------------------- docs/guides/how-to/extend-a-native-input.md | 66 +++++++++++++++++ 3 files changed, 71 insertions(+), 74 deletions(-) create mode 100644 .changeset/tough-lizards-fly.md delete mode 100644 docs/guides/how-to/creating-a-custom-field.md create mode 100644 docs/guides/how-to/extend-a-native-input.md diff --git a/.changeset/tough-lizards-fly.md b/.changeset/tough-lizards-fly.md new file mode 100644 index 000000000..67bd2aa91 --- /dev/null +++ b/.changeset/tough-lizards-fly.md @@ -0,0 +1,5 @@ +--- +'@lion/input-date': patch +--- + +configure in constructor, so property effects use preconfigured value diff --git a/docs/guides/how-to/creating-a-custom-field.md b/docs/guides/how-to/creating-a-custom-field.md deleted file mode 100644 index 9649205e3..000000000 --- a/docs/guides/how-to/creating-a-custom-field.md +++ /dev/null @@ -1,74 +0,0 @@ -# How To >> Creating a custom field ||20 - -```js script -import { html, render } from '@lion/core'; -import { Validator } from '@lion/form-core'; - -import '@lion/input/define'; -import '../../docs/systems/form/assets/h-output.js'; -``` - -Custom fields can be created in just a few steps. All you need is an interaction element (like for instance a slider, a listbox or a combobox) and connect it to the [input components](../../components/inputs/input/overview.md). - -## Prerequisite: an interaction element - -An interaction element provides the means for the end user to enter a certain value, just like native elements provide in this (think of ``, `