@@ -4,6 +4,13 @@ import PropTypes from "prop-types";
importFormfrom"../Form";
importFieldWrapperfrom"./FieldWrapper";
/**
* Class that handle fields logic
*
* @abstract
* @class Field
* @extends {PureComponent}
*/
classFieldextendsPureComponent{
// Attribute that will be used to replace null value
...
...
@@ -12,8 +19,7 @@ class Field extends PureComponent {
/**
*Creates an instance of Field.
* @param {object} props
* @param {any} customDefaultValue use this parameter when a defaultNullValue needs to be set dynamically, otherwise, use class attribute defaultNullValue
* @param {*} [customStateAttrs={}] add custom state attributes on creation
* @param {object} [customStateAttrs={}] add custom state attributes on creation
* @memberof Field
*/
constructor(props,customStateAttrs={}){
...
...
@@ -23,7 +29,6 @@ class Field extends PureComponent {