-
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 support for hiding the property editor label and description
- Loading branch information
Showing
4 changed files
with
60 additions
and
3 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/Limbo.Umbraco.YouTube/PropertyEditors/YouTubeConfiguration.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.YouTube.PropertyEditors { | ||
|
||
public class YouTubeConfiguration { | ||
|
||
[ConfigurationField("hideLabel", "Hide label", "boolean", Description = "Select whether the label and description of properties using this data type should be hidden.<br /><br />Hiding the label and description can be useful in some cases - eg. to give the video picker a bit more horizontal space.")] | ||
[JsonProperty("hideLabel")] | ||
public bool HideLabel { get; set; } | ||
|
||
} | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
src/Limbo.Umbraco.YouTube/PropertyEditors/YouTubeConfigurationEditor.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.YouTube.PropertyEditors { | ||
|
||
public class YouTubeConfigurationEditor : ConfigurationEditor<YouTubeConfiguration> { | ||
|
||
public YouTubeConfigurationEditor(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