Skip to content

Commit 63827a9

Browse files
committed
camelCase prop "readOnly".
1 parent 05af00e commit 63827a9

4 files changed

Lines changed: 24 additions & 24 deletions

File tree

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,22 @@ In a web browser, go to the url [http://localhost:2000/api/v1/evolutility/todo](
6868
Configuration options are set in the file [config.js](https://github.com/evoluteur/evolutility-server-node/blob/master/config.js).
6969

7070

71-
| Option | Description |
72-
|--------------|-----------------------------------------|
73-
| apiPath | Path for REST API (i.e.: "/api/v1/evolutility/").|
74-
| apiPort | Port for REST API (i.e.: 2000). |
71+
| Option | Description |
72+
|---------------|-----------------------------------------|
73+
| apiPath | Path for REST API (i.e.: "/api/v1/evolutility/"). |
74+
| apiPort | Port for REST API (i.e.: 2000). |
7575
| connectionString | DB connection string (i.e.: "postgres://evol:love@localhost:5432/evol"). |
76-
| schema | DB schema name (i.e.: "evolutility").|
77-
| pageSize | Number of rows per page in pagination (default = 50).|
78-
| lovSize | Maximum number of values allowed for form dropdowns (default = 100). |
79-
| csvSize | Maximum number of rows in CSV export (default = 1000).|
80-
| csvHeader | CSV list of labels for CSV export| | uploadPath | path for pictures and documents uploads (i.e.: "../evolutility-ui-react/public/pix/").|
81-
| consoleLog | Log SQL statements to console.|
82-
| wComments | Allow for user comments. |
83-
| wRating | Allow for user ratings. |
84-
| wTimestamp | Timestamp columns u_date and c_date w/ date of record creation and last update. |
76+
| schema | DB schema name (i.e.: "evolutility").|
77+
| pageSize | Number of rows per page in pagination (default = 50).|
78+
| lovSize | Maximum number of values allowed for form dropdowns (default = 100). |
79+
| csvSize | Maximum number of rows in CSV export (default = 1000).|
80+
| csvHeader | CSV list of labels for CSV export| | uploadPath | path for pictures and documents uploads (i.e.: "../evolutility-ui-react/public/pix/").|
81+
| consoleLog | Log SQL statements to console.|
82+
| wComments | Allow for user comments (not implemented yet). |
83+
| wRating | Allow for user ratings (not implemented yet). |
84+
| wTimestamp | Timestamp columns u_date and c_date w/ date of record creation and last update. |
8585
| schemaQueries | Enables endpoints to query for lists of tables and columns in the database schema. |
86-
| GraphQL | Set GraphQL = true to unable GraphQL (Work In Progress) |
86+
| GraphQL | Set GraphQL = true to unable GraphQL (Work In Progress) |
8787

8888
<a name="Models"></a>
8989
## Models
@@ -110,16 +110,16 @@ Models contain the name of the driving table and the list of fields/columns pres
110110
|--------------|---------------------------------------|
111111
| id | Unique key for the field (can be the same as column but doesn't have to be). |
112112
| column | Database column name for the field. |
113-
| lovTable | Table to join to for field value (only for fields of type "lov"). |
114-
| lovColumn | Column name (in the lovTable) for field value (only for fields of type "lov"). |
113+
| lovTable | Table to join to for field value (only for fields of type "lov"). |
114+
| lovColumn | Column name (in the lovTable) for field value (only for fields of type "lov"). |
115115
| lovIcon | Set to True to include icon with LOV items (only for fields of type "lov"). |
116116
| object | Model id for the object to link to (only for fields of type "lov"). |
117117
| type | Field type is not a database column type but more a UI field type. Possible field types: <ul><li>boolean</li><li>date</li><li>datetime</li><li>decimal</li><li>document</li><li>email</li><li>image</li><li>integer</li><li>lov (list of values)</li><li>money</li><li>text</li><li>textmultiline</li><li>time</li><li>url</li></ul> |
118118
| required | Determines if the field is required for saving. |
119-
| readonly | Prevents field modification. |
120-
| inMany | Determines if the field is present (by default) in lists of records. |
121-
| max, min | Maximum/Minimum value allowed (only applies to numeric fields). |
122-
| maxLength, minLength | Maximum/Minimum length allowed (only applies to text fields). |
119+
| readOnly | Display field as readOnly (not editable). |
120+
| inMany | Determines if the field is present (by default) in lists of records. |
121+
| max, min | Maximum/Minimum value allowed (only applies to numeric fields). |
122+
| maxLength, minLength | Maximum/Minimum length allowed (only applies to text fields).|
123123
| unique | Values must be unique (not implemented yet). |
124124
| noCharts | Forbids charts on the field. |
125125
| deleteTrigger | Deleting records in the lovTable will trigger a cascade delete (this property is only used while creating the database). |
@@ -133,7 +133,7 @@ Multiple Master-Details can be specified with collections.
133133
| Property | Meaning |
134134
|--------------|---------------------------------------|
135135
| id | Unique key for the collection. |
136-
| table | DB Table to query. |
136+
| table | DB Table to query (master table, other tables will be included in the query for "lov" fields). |
137137
| column | Column in the detail table to match against id of object. |
138138
| object | Model id for the object to display (optional). |
139139
| order | "asc"/"desc" for sorting by the first field in fields. |

models/data/designer/field-data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ module.exports = [
13031303
"label": "Read only",
13041304
"type": 3,
13051305
"column": "readonly",
1306-
"fid": "readonly",
1306+
"fid": "readOnly",
13071307
"object": 11,
13081308
"inMany": false,
13091309
"position": 128,

models/designer/field.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ module.exports = {
206206
"column": "required"
207207
},
208208
{
209-
"id": "readonly",
209+
"id": "readOnly",
210210
"type": "boolean",
211211
"label": "Read only",
212212
"defaultValue": false,

models/designer/object.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ module.exports = {
7979
"id": "icon",
8080
"type": "image",
8181
"label": "Icon",
82-
"readonly": true,
82+
"readOnly": true,
8383
"maxLength": "50",
8484
"inMany": true,
8585
"column": "icon"

0 commit comments

Comments
 (0)