ImmutableDataType
Direct Subclass:
Indirect Subclass:
Static Member Summary
| Static Public Members | ||
| public static |
typeName: * |
|
Method Summary
| Public Methods | ||
| public |
getField(ref: *, renderOptions: *) |
|
| public |
getFieldAndValue(value: *, ref: *, renderOptions: *) |
|
| public |
getNextField(field: *, refs: *, renderOptions: *): * |
|
| public |
getNextFieldAndValue(field: *, value: *, refs: *, renderOptions: *): * |
|
| public |
getValue(value: *, ref: *, renderOptions: *): * |
|
| public |
hasValue(value: *, checkDefault: *): * |
|
| public |
setNextValue(field: *, oldValue: *, newValue: *, refs: *, renderOptions: *): * |
|
| public |
setValue(value: *, ref: *, newValue: *) |
|
Inherited Summary
| From class Type | ||
| public static |
typeName: * The type name. |
|
| public static |
Parses a JS or Immutable.js object into a type. |
|
| public static |
parseOneOrMany(parseField: func): oneOrManyParser Creates a one or many parser with the passed in field parser. |
|
| public static |
parseOptions(field: Immutable.Map, parseField: function): Immutable.Map Override this function if you want the type to reference other types. |
|
| From class DataType | ||
| public static |
typeName: * The data type name. |
|
| public static |
parse(field: *, parseField: *): * |
|
| public |
name: * |
|
| public |
options: * |
|
| public |
|
|
| public |
filter(filterValue: *, rowValue: *): * |
|
| public |
getDefaultValue(defaultValue: undefined): * |
|
| public |
getDisplay(value: *): string Returns the value parsed for human consumption. |
|
| public |
getField(ref: *): * |
|
| public |
getFieldAndValue(value: *, ref: *): {"field": *, "value": *} |
|
| public |
getName(): * |
|
| public |
getOptions(): * |
|
| public |
getValidationLinks(): * |
|
| public |
getValidator(): * |
|
| public |
getValue(value: *, defaultValue: *): * Returns a parsed value. |
|
| public |
Checks if the passed in value is "not empty". |
|
| public |
isExcluded(): * |
|
| public |
isGenerated(): * |
|
| public |
isRequired(): * |
|
| public |
isUnique(): * |
|
| public |
validate(value: *, callback: *): * Validates that the given value follows the rules of the data type. |
|
Static Public Members
public static typeName: * source
The data type name. This must be overridden.
Override:
DataType#typeNamePublic Methods
public getField(ref: *, renderOptions: *) source
Override:
DataType#getFieldParams:
| Name | Type | Attribute | Description |
| ref | * | ||
| renderOptions | * |
public getFieldAndValue(value: *, ref: *, renderOptions: *) source
Override:
DataType#getFieldAndValueParams:
| Name | Type | Attribute | Description |
| value | * | ||
| ref | * | ||
| renderOptions | * |
public getNextField(field: *, refs: *, renderOptions: *): * source
Params:
| Name | Type | Attribute | Description |
| field | * | ||
| refs | * | ||
| renderOptions | * |
Return:
| * |
public getNextFieldAndValue(field: *, value: *, refs: *, renderOptions: *): * source
Params:
| Name | Type | Attribute | Description |
| field | * | ||
| value | * | ||
| refs | * | ||
| renderOptions | * |
Return:
| * |
public getValue(value: *, ref: *, renderOptions: *): * source
Returns a parsed value. A value of undefined implies that the value is
missing and should be filled in by a default value, first supplied in the
options, and if not, the one supplied by the type.
Override:
DataType#getValueParams:
| Name | Type | Attribute | Description |
| value | * | ||
| ref | * | ||
| renderOptions | * |
Return:
| * |
public hasValue(value: *, checkDefault: *): * source
Checks if the passed in value is "not empty".
Override:
DataType#hasValueParams:
| Name | Type | Attribute | Description |
| value | * | ||
| checkDefault | * |
Return:
| * |
public setNextValue(field: *, oldValue: *, newValue: *, refs: *, renderOptions: *): * source
Params:
| Name | Type | Attribute | Description |
| field | * | ||
| oldValue | * | ||
| newValue | * | ||
| refs | * | ||
| renderOptions | * |
Return:
| * |
public setValue(value: *, ref: *, newValue: *) source
Params:
| Name | Type | Attribute | Description |
| value | * | ||
| ref | * | ||
| newValue | * |