+
+ {
+ ` `
+ }
+
+
+
+
+ {`const elementRf = useRef(null);
+const [result, setResult] = useState('');
+const eventReturn = (event) => {
+ setResult(event.detail.value)
+}
+
+useEffect(() => {
+ const elementRef = elementRf.current;
+ elementRef.addEventListener('bdsChange', (event) => {
+ eventReturn(event);
+ });
+ return () => {
+ elementRef.removeEventListener('bdsChange', (event) => {
+ eventReturn(event);
+ });
+ };
+}, [elementRf]);`}
+
+
+
+
+
+ {
+ ` `
+ }
+
+
+
+
+ {`const elementRf = useRef(null);
+const [result, setResult] = useState('');
+const eventReturn = (event) => {
+ setResult("Input Focus")
+}
+
+useEffect(() => {
+ const elementRef = elementRf.current;
+ elementRef.addEventListener('bdsFocus', (event) => {
+ eventReturn(event);
+ });
+ return () => {
+ elementRef.removeEventListener('bdsFocus', (event) => {
+ eventReturn(event);
+ });
+ };
+}, [elementRf]);`}
+
+
+
+
+
+ {
+ ` `
+ }
+
+
+
+
+ {`const elementRf = useRef(null);
+const [result, setResult] = useState('');
+const eventReturn = (event) => {
+ setResult(event.target.value)
+}
+
+useEffect(() => {
+ const elementRef = elementRf.current;
+ elementRef.addEventListener('bdsInput', (event) => {
+ eventReturn(event);
+ });
+ return () => {
+ elementRef.removeEventListener('bdsInput', (event) => {
+ eventReturn(event);
+ });
+ };
+}, [elementRf]);`}
+
+
+
+
+
+ {
+ ` `
+ }
+
+
+
+
+ {`const elementRf = useRef(null);
+const [result, setResult] = useState('');
+const eventReturn = (event) => {
+ setResult("Input Key Down Backspace")
+}
+
+useEffect(() => {
+ const elementRef = elementRf.current;
+ elementRef.addEventListener('bdsKeyDownBackspace', (event) => {
+ eventReturn(event);
+ });
+ return () => {
+ elementRef.removeEventListener('bdsKeyDownBackspace', (event) => {
+ eventReturn(event);
+ });
+ };
+}, [elementRf]);`}
+
+
+
+
+
+ {
+ ` `
+ }
+
+
+
+
+ {`const elementRf = useRef(null);
+const [result, setResult] = useState('');
+const eventReturn = (event) => {
+ setResult("Input onBlur")
+}
+
+useEffect(() => {
+ const elementRef = elementRf.current;
+ elementRef.addEventListener('bdsOnBlur', (event) => {
+ eventReturn(event);
+ });
+ return () => {
+ elementRef.removeEventListener('bdsOnBlur', (event) => {
+ eventReturn(event);
+ });
+ };
+}, [elementRf]);`}
+
+
+
+
+
+ {
+ ` `
+ }
+
+
+
+
+ {`const elementRf = useRef(null);
+const [result, setResult] = useState('');
+const eventReturn = (event) => {
+ setResult(event.detail)
+}
+
+useEffect(() => {
+ const elementRef = elementRf.current;
+ elementRef.addEventListener('bdsPatterValidation', (event) => {
+ eventReturn(event);
+ });
+ return () => {
+ elementRef.removeEventListener('bdsPatterValidation', (event) => {
+ eventReturn(event);
+ });
+ };
+}, [elementRf]);`}
+
+
+
+
+
+ {
+ ` `
+ }
+
+
+
+
+ {`const elementRf = useRef(null);
+const [result, setResult] = useState('');
+const eventReturn = (event) => {
+ setResult(event.detail.value)
+}
+
+useEffect(() => {
+ const elementRef = elementRf.current;
+ elementRef.addEventListener('bdsSubmit', (event) => {
+ eventReturn(event);
+ });
+ return () => {
+ elementRef.removeEventListener('bdsSubmit', (event) => {
+ eventReturn(event);
+ });
+ };
+}, [elementRf]);`}
+
+
+
+
+
+ {
+ ' inputClear("inputClear")}>Clear '
+ }
+
+
+
+
+ {`const inputClear = async (id) => {
+ const input = document.getElementById(id);
+ await input.clear();
+};`}
+
+
+
+
+ {` `}
+
+
+
+
+ {
+ ' inputGetInputElement("inputGetInputElement")}>GetInputElement '
+ }
+
+
+
+
+ {`const inputGetInputElement = async (id) => {
+ const input = document.getElementById(id);
+ const inputElement = await input.getInputElement()
+ input.value = inputElement;
+};`}
+
+
+
+
+ {` `}
+
+
+
+
+ {
+ ' inputIsValid("inputIsValid")}>IsValid '
+ }
+
+
+
+
+ {`const inputIsValid = async (id) => {
+ const input = document.getElementById(id);
+ const validResult = await input.isValid()
+ setResult(validResult)
+};`}
+
+
+
+
+ {` `}
+
+
+
+
+ {
+ ' inputRemoveFocus("inputRemoveFocus")}>RemoveFocus '
+ }
+
+
+
+
+ {`const inputRemoveFocus = async (id) => {
+ const input = document.getElementById(id);
+ await input.removeFocus();
+};`}
+
+
+
+
+ {` `}
+
+
+
+
+ {
+ ' inputSetFocus("inputSetFocus")}>SetFocus '
+ }
+
+
+
+
+ {`const inputSetFocus = async (id) => {
+ const input = document.getElementById(id);
+ await input.setFocus();
+};`}
+
+
+
+
+ {` `}
+
+
+
+
+ {`
+
+
+
+
+
+`}
+
+
+
+
+ {`
+
+
+
+
+
+`}
+
+
+
+
+ {` `}
+
+
+
+
+ {`
+
+
+
+
+
+
+ `}
+
+
+
+
+ {`
+
+
+
+
+
+
+`}
+
+
+