-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added data type option to hide the property editor label and description
- Loading branch information
Showing
4 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/Limbo.Umbraco.Vimeo/PropertyEditors/VimeoConfiguration.cs
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,16 @@ | ||
using Newtonsoft.Json; | ||
using Umbraco.Cms.Core.PropertyEditors; | ||
|
||
#pragma warning disable CS1591 | ||
|
||
namespace Limbo.Umbraco.Vimeo.PropertyEditors { | ||
|
||
public class VimeoConfiguration { | ||
|
||
[ConfigurationField("hideLabel", "Hide label", "boolean")] | ||
[JsonProperty("hideLabel")] | ||
public bool HideLabel { get; set; } | ||
|
||
} | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
src/Limbo.Umbraco.Vimeo/PropertyEditors/VimeoConfigurationEditor.cs
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,15 @@ | ||
using Umbraco.Cms.Core.IO; | ||
using Umbraco.Cms.Core.PropertyEditors; | ||
using Umbraco.Cms.Core.Services; | ||
|
||
#pragma warning disable CS1591 | ||
|
||
namespace Limbo.Umbraco.Vimeo.PropertyEditors { | ||
|
||
public class VimeoConfigurationEditor : ConfigurationEditor<VimeoConfiguration> { | ||
|
||
public VimeoConfigurationEditor(IIOHelper ioHelper, IEditorConfigurationParser editorConfigurationParser) : base(ioHelper, editorConfigurationParser) { } | ||
|
||
} | ||
|
||
} |
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