generated from eea/volto-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
139 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export AccordionLayoutSchema from '@eeacms/volto-accordion-block/components/manage/Blocks/Accordion/LayoutSchema'; | ||
export AccordionBlockEdit from '@eeacms/volto-accordion-block/components/manage/Blocks/Accordion/Edit'; | ||
export AccordionBlockView from '@eeacms/volto-accordion-block/components/manage/Blocks/Accordion/View'; | ||
export PanelsWidget from '@eeacms/volto-accordion-block/components/manage/Widgets/PanelsWidget'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
const Schema = { | ||
title: 'Accordion block settings', | ||
fieldsets: [ | ||
{ | ||
id: 'default', | ||
title: 'Default', | ||
fields: [ | ||
'placeholder', | ||
'instructions', | ||
'allowedBlocks', | ||
'required', | ||
'fixed', | ||
'disableNewBlocks', | ||
'readOnly', | ||
'readOnlyTitles', | ||
'readOnlySettings', | ||
], | ||
}, | ||
], | ||
properties: { | ||
allowedBlocks: { | ||
title: 'Allowed blocks', | ||
description: 'Allow only the following blocks types', | ||
type: 'array', | ||
items: { | ||
choices: [], | ||
}, | ||
}, | ||
placeholder: { | ||
title: 'Helper text', | ||
description: | ||
'A short hint that describes the expected value within this block', | ||
type: 'string', | ||
}, | ||
instructions: { | ||
title: 'Instructions', | ||
description: 'Detailed expected value within this block', | ||
type: 'string', | ||
widget: 'richtext', | ||
}, | ||
required: { | ||
title: 'Required', | ||
description: "Don't allow deletion of this block", | ||
type: 'boolean', | ||
}, | ||
fixed: { | ||
title: 'Fixed position', | ||
description: 'Disable drag & drop on this block', | ||
type: 'boolean', | ||
}, | ||
disableNewBlocks: { | ||
title: 'Disable new blocks', | ||
description: 'Disable creation of new blocks after this block', | ||
type: 'boolean', | ||
}, | ||
readOnly: { | ||
title: 'Read-only', | ||
description: 'Disable editing on this block', | ||
type: 'boolean', | ||
}, | ||
readOnlyTitles: { | ||
title: 'Read-only titles', | ||
description: 'Disable editing on accordion titles', | ||
type: 'boolean', | ||
}, | ||
readOnlySettings: { | ||
title: 'Read-only settings', | ||
description: 'Disable editing on accordion block settings', | ||
type: 'boolean', | ||
}, | ||
}, | ||
required: [], | ||
}; | ||
|
||
export default Schema; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters