cov-kendo-form-components

7.3.0 • Public • Published

cov-kendo-form-components

COV Kendo From Component library. Helps COV developers to use Kendo components in a consistent way.

NPM JavaScript Style Guide

Install

npm install --save cov-kendo-form-components

Usage

import React, { Component } from 'react'

import { FormInput, FormCheckbox } from 'cov-kendo-form-components'

function Form(props) {
  return (
    <Form
      initialValues={props.initialValues}
      render={(formRenderProps) => (
        <FormElement className='row' horizontal={horizontal}>
          <fieldset className={'k-form-fieldset col-xl-4 col-md-8 col-sm-12'}>
            <legend className={'k-form-legend'}>{props.title}</legend>
            <COVKendoFormErrorSummary formRenderProps={formRenderProps} />

            <Field
              id={'id'}
              name={'id'}
              label={'ID'}
              component={FormInput}
              className='form-control small'
              disabled
            />
            <Field
              id={'displayName'}
              name={'displayName'}
              label={'Display Name'}
              component={FormInput}
              validator={requiredFieldValidator('Display Name')}
              className='form-control large'
              hint={'e.g. this is a hint'}
            />
          </fieldset>
        </FormElement>
      )}
    />
  )
}

export default ApplicationForm

License

MIT © covnpmjs

Readme

Keywords

none

Package Sidebar

Install

npm i cov-kendo-form-components

Weekly Downloads

3

Version

7.3.0

License

MIT

Unpacked Size

70.9 kB

Total Files

4

Last publish

Collaborators

  • covnpmjs