Numeric

Numeric field is a input wrapper form field that can be used with in FormSchema.


Usage

import { ItsyForm } from '@itsy-ui/form';

const formSchema = {
  "id": "sample-form",
  "displayName": "Sample form",
  "typeId": "form",
  "propertyDefinitions": {
    "phone": {
      "id": "phone",
      "displayName": "Phone number",
      "placeholderText": "Enter phone number",
      "ui:widget": "integer",
      "required": true
    }
  }
}

const schema = {
  typeId: "sample_form",
  formSchema: formSchema
};

<ItsyForm className="form" schema={schema} />


API

name type default description
className String '' additional class name of root node.
type String Input type for the form field.
displayName String Field display name that renders in the form.
required Boolean Specifies if the form field is required or not.
placeholder String Placeholder text that shows as an overlay in the input field control. This is applicable for text related inputs.



Compatibility

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Electron
Electron
Edge last 2 versions last 2 versions last 2 versions last 2 versions