Class: String

.fields. String


new String(name, type, schema, value, $endpoint, service, $states, relationName)

Apy String Field

Parameters:
Name Type Description
name string

Field name

type string

Field type

schema Object

Field schema

value Object

Field value

$endpoint string

Field endpoint

service Object

Reference to Service instance

$states Object

Field inner state holder instance

relationName string

(optional) Field relation name

Extends

Methods


<static> hasUpdated()

Return true if original value has changed from current one. Ensure current value is a string (not null)

Returns:

Is the String field updated ?

Type
boolean

<static> wordCount()

Return the count of char(s) contained into the sentence

Returns:

Count of chars in the sentence

Type
Number