Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace TS.Externwebb.Models.Properties
- {
- public class EServiceTypeDropDown : ISelectionFactory
- {
- public IEnumerable<ISelectItem> GetSelections(ExtendedMetadata metadata)
- {
- var eservicetypedropdown = new List<SelectItem>
- {
- new SelectItem() {Value = "open", Text = "Öppen"},
- new SelectItem() {Value = "info", Text = "Info"},
- new SelectItem() {Value = "warning", Text = "Varning"},
- new SelectItem() {Value = "danger", Text = "Stängd"}
- };
- return eservicetypedropdown;
- }
- }
- [EditorDescriptorRegistration(TargetType = typeof(string), UIHint = "EServiceTypeDropDown")]
- public class EServiceTypeDropDownEditorDescriptor : EditorDescriptor
- {
- public override void ModifyMetadata(ExtendedMetadata metadata, IEnumerable<Attribute> attributes)
- {
- SelectionFactoryType = typeof(EServiceTypeDropDown);
- ClientEditingClass = "epi-cms/contentediting/editors/SelectionEditor";
- base.ModifyMetadata(metadata, attributes);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement