Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

Commit 2120ceb

Browse files
committed
added option to set dialogSize from gridEditor manifest
1 parent cb9e56a commit 2120ceb

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docs/developers-guide.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ With the **Doc Type Grid Editor** then, we bridge that gap, allowing you to reus
3030

3131
Before you get started, there are a number of things you will need:
3232

33-
1. .NET 4.5+
34-
2. Umbraco 7.6.0+
33+
1. .NET 4.7.2+
34+
2. Umbraco 8.0.2+
3535
3. The **Doc Type Grid Editor** package installed
3636

3737
---
@@ -40,6 +40,8 @@ Before you get started, there are a number of things you will need:
4040

4141
The **Doc Type Grid Editor** is configured via the grid.editors.config.js config file located in the `~/Config` folder. A default configuration should be installed along with the package, but for details on the configuration options, please see below.
4242

43+
You can also add your editors using a package.manifest file in a folder in the `~/App_Plugins` folder.
44+
4345
#### Example
4446

4547
```javascript
@@ -55,6 +57,7 @@ The **Doc Type Grid Editor** is configured via the grid.editors.config.js config
5557
"allowedDocTypes": [...],
5658
"nameTemplate": "",
5759
"enablePreview": true,
60+
"largeDialog": true,
5861
"viewPath": "/Views/Partials/Grid/Editors/DocTypeGridEditor/",
5962
"previewViewPath": "/Views/Partials/Grid/Editors/DocTypeGridEditor/Previews/",
6063
"previewCssFilePath": "",
@@ -84,6 +87,7 @@ The **Doc Type Grid Editor** supports 3 config options, all of which are optiona
8487
|-----------------|----------|-------------|
8588
| AllowedDocTypes | String[] | An array of doc type aliases of which should be allowed to be selected in the grid editor. Strings can be REGEX patterns to allow matching groups of doc types in a single entry. e.g. "Widget$" will match all doc types with an alias ending in "Widget". However if a single doc type is matched, (aka **Single Doc Type Mode**), then dropdown selection stage (in the DTGE panel) will be skipped. |
8689
| EnablePreview | Boolean | Enables rendering a preview of the grid cell in the grid editor. |
90+
| LargeDialog | Boolean | Makes the editing dialog larger. Especially useful for grid editors with complex property editors. |
8791
| ViewPath | String | Set's an alternative view path for where the **Doc Type Grid Editor** should look for views when rendering. Defaults to `~/Views/Partials/` |
8892

8993
---

src/Our.Umbraco.DocTypeGridEditor/Web/UI/App_Plugins/DocTypeGridEditor/Js/doctypegrideditor.controllers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
overlayOptions.editorName = $scope.control.editor.name;
6262
overlayOptions.allowedDocTypes = $scope.control.editor.config.allowedDocTypes || [];
6363
overlayOptions.nameTemplate = $scope.control.editor.config.nameTemplate;
64+
overlayOptions.size = $scope.control.editor.config.largeDialog ? null : "small";
6465

6566
overlayOptions.dialogData = {
6667
docTypeAlias: $scope.control.value.dtgeContentTypeAlias,

0 commit comments

Comments
 (0)