Skip to content

Commit

Permalink
Merge pull request #19 from CloudCannon/structure-object-config
Browse files Browse the repository at this point in the history
Add structure object config options
  • Loading branch information
rphillips-cc authored Nov 21, 2024
2 parents 6eb50b9 + 3ae26c1 commit a070c44
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/configuration.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,10 @@ export interface ObjectInputOptions extends BaseInputOptions<EmptyTypeObject>, P
* Controls whether or not labels on mutable object entries are formatted.
*/
allow_label_formatting?: boolean;
/**
* Controls how object previews are rendered.
*/
view?: 'card' | 'gallery' | 'gallery-left';
}

export interface ObjectInput extends BaseInput<ObjectInputOptions> {
Expand Down Expand Up @@ -1403,6 +1407,14 @@ export interface StructureValue extends Previewable, PickerPreviewable, Schemali
* Allows you to group the inputs inside this object together without changing the data structure.
*/
groups?: ObjectInputGroup[];
/**
* Controls which order input groups and ungrouped inputs appear in.
*/
place_groups_below?: boolean;
/**
* Show nested objects as tabs. Requires all top-level keys to be objects.
*/
tabbed?: boolean;
/**
* The actual value used when items are added after selection.
*/
Expand Down

0 comments on commit a070c44

Please sign in to comment.