cov-kendo-form-components

7.2.1 • 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

62

Version

7.2.1

License

MIT

Unpacked Size

65.6 kB

Total Files

4

Last publish

Collaborators

  • covnpmjs