How to use the @axa-fr/react-toolkit-core.InputManager.getFirstId function in @axa-fr/react-toolkit-core

To help you get started, we’ve selected a few @axa-fr/react-toolkit-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github AxaGuilDEv / react-toolkit / packages / Form / Input / checkbox / src / CheckboxInput.js View on Github external
children,
    placeholder,
    isVisible,
    className,
    onChange,
    readOnly,
    disabled,
    forceDisplayMessage,
    ...otherProps
  } = props;
  let rowModifier = classModifier;
  if (mode === CheckBoxModes.classic) {
    rowModifier += ' label-top';
  }
  const newOptions = InputManager.getOptionsWithId(options);
  const firstId = InputManager.getFirstId(newOptions);
  return (
github AxaGuilDEv / react-toolkit / packages / Form / Input / radio / src / RadioInput.js View on Github external
value,
    onChange,
    readOnly,
    disabled,
    children,
    ...otherProps
  } = props;
  if (!isVisible) {
    return null;
  }
  let rowModifier = classModifier;
  if (mode === RadioModes.classic) {
    rowModifier += ' label-top';
  }
  const newOptions = InputManager.getOptionsWithId(options);
  const firstId = InputManager.getFirstId(newOptions);
  return (