Skip to content

Commit

Permalink
Add boolean field type
Browse files Browse the repository at this point in the history
  • Loading branch information
JeltevanBoheemen committed Oct 1, 2024
1 parent 3ae11d2 commit bdf4ce6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export class CorpusDefinitionService implements OnDestroy {
},
};
switch (dtype) {
case 'boolean':
case 'float':
case 'integer': {
field.options = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ export class FieldFormComponent {
{ label: 'number (integer)', value: 'integer' },
{ label: 'number (decimal)', value: 'float' },
{ label: 'date', value: 'date' },
{
label: 'boolean',
value: 'boolean',
tooltip: 'True/false field. Can be used to filter.',
},
];

languageOptions = ISO639Languages;
Expand Down

0 comments on commit bdf4ce6

Please sign in to comment.