Class AddInWithEditors
- Namespace
- Dynamicweb.Examples.Extensibility
- Assembly
- Dynamicweb.Examples.dll
The example of an abstract addin with attrbutes and parameter editors
[AddInActive(true)]
[AddInName("Abstract add-in")]
[AddInLabel("Abstract add-in")]
[AddInDescription("Just an example of using attributes and parameter editors.")]
[AddInImage("image.png")]
[AddInIcon(KnownIcon.ObjectGroup)]
[AddInDeprecated(false)]
[AddInAuthor("James Bond")]
[AddInGroup("Examples")]
[AddInTarget("Examples")]
[AddInOrder(0)]
[AddInUseParameterOrdering(true)]
[AddInUseParameterGrouping(true)]
[AddInUseParameters(false)]
public class AddInWithEditors : ConfigurableAddIn, IDropDownOptions
- Inheritance
-
AddInWithEditors
- Implements
- Inherited Members
Properties
CheckListEditor
[AddInParameter("CheckList")]
[AddInParameterGroup("Parameters with options")]
[AddInParameterEditor(typeof(CheckListParameterEditor), "infoText=A little description for parameter")]
public string CheckListEditor { get; set; }
Property Value
ColorEditor
[AddInLabel("Color")]
[AddInParameter("ColorParameterEditor")]
[AddInParameterEditor(typeof(ColorParameterEditor), "")]
public string ColorEditor { get; set; }
Property Value
DateEditor
[AddInLabel("Date")]
[AddInParameter("DateEditor")]
[AddInParameterEditor(typeof(DateTimeParameterEditor), "hideName=true;AllowNeverExpire=true;AllowEmpty=true;show=date")]
[AddInParameterGroup("Source")]
public DateTime DateEditor { get; set; }
Property Value
DecimalEditor
[AddInLabel("Decimal")]
[AddInParameter("DecimalEditor")]
[AddInParameterEditor(typeof(FloatingPointNumberParameterEditor), "minValue=0;maxValue=10;allowNegativeValues=false;localizeValues=true;inputClass=std;disabled=false")]
public decimal DecimalEditor { get; set; }
Property Value
DefaultFontName
[AddInParameter("DefaultFontName")]
[AddInParameterEditor(typeof(HiddenParameterEditor), "")]
public string DefaultFontName { get; set; }
Property Value
DefaultFontWeight
[AddInParameter("DefaultFontWeight")]
[AddInParameterEditor(typeof(HiddenParameterEditor), "")]
public string DefaultFontWeight { get; set; }
Property Value
DropDownEditor
[AddInParameter("DropDownEditor")]
[AddInParameterGroup("Parameters with options")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "none=false;SortBy=Value;")]
public string DropDownEditor { get; set; }
Property Value
FileEditor
[AddInParameter("FileEditor")]
[AddInParameterEditor(typeof(FileManagerEditor), "usefilesfolder=true;allowBrowse=true;extensions=js;file=System/config/clean.js;showfullpath=true;Icon=fa fa-exclamation-triangle;Tooltip=Select a js file;")]
public string FileEditor { get; set; }
Property Value
FolderCustomEditor
[AddInParameter("FolderCustom")]
[AddInParameterEditor(typeof(FolderSelectEditor), "htmlClass=NewUIinput;")]
public string FolderCustomEditor { get; set; }
Property Value
FolderFilesEditor
[AddInParameter("FolderFiles")]
[AddInParameterEditor(typeof(FolderSelectEditor), "htmlClass=NewUIinput;usefilesfolder=true")]
public string FolderFilesEditor { get; set; }
Property Value
FolderImagesEditor
[AddInParameter("FolderImages")]
[AddInParameterEditor(typeof(FolderSelectEditor), "htmlClass=NewUIinput;useimagesfolder=true")]
public string FolderImagesEditor { get; set; }
Property Value
FontEditor
[AddInParameter("Default font")]
[AddInParameterEditor(typeof(GoogleFontParameterEditor), "")]
public GoogleFont FontEditor { get; set; }
Property Value
GroupedDropDownEditor
[AddInParameter("GroupedDropDown")]
[AddInParameterGroup("Parameters with options")]
[AddInParameterEditor(typeof(GroupedDropDownParameterEditor), "SortBy=Group,Key;none=false;")]
public string GroupedDropDownEditor { get; set; }
Property Value
IntegerEditor
[AddInParameter("IntegerEditor")]
[AddInParameterEditor(typeof(IntegerNumberParameterEditor), "inputClass=std editor-parameter;allowNegativeValues=false")]
public int IntegerEditor { get; set; }
Property Value
ItemType
[AddInParameter("Item type")]
[AddInParameterEditor(typeof(ItemListParameterEditor), "inputClass=std; StructureType=All; AllowEditParameterOptions=False")]
public string ItemType { get; set; }
Property Value
LabelEditor
[AddInParameter("Example of static link")]
[AddInParameterEditor(typeof(LabelParameterEditor), "")]
public string LabelEditor { get; set; }
Property Value
MoreLessEditor
[AddInParameter("MoreLessEditor")]
[AddInParameterEditor(typeof(MoreLessParameterEditor), "")]
public string MoreLessEditor { get; set; }
Property Value
MultipleValuesEditor
[AddInParameter("MultipleValuesEditor")]
[AddInParameterEditor(typeof(MultipleValuesEditor), "")]
public string MultipleValuesEditor { get; set; }
Property Value
NumberEditorCurrency
[AddInParameter("NumberEditorCurrency")]
[AddInParameterEditor(typeof(NumberParameterEditor), "inputClass=std editor-parameter;allowNegativeValues=false;numberType=Currency")]
public int NumberEditorCurrency { get; set; }
Property Value
NumberEditorDecimal
[AddInParameter("NumberEditorDecimal")]
[AddInParameterEditor(typeof(NumberParameterEditor), "inputClass=std editor-parameter;allowNegativeValues=false;numberType=Decimal")]
public int NumberEditorDecimal { get; set; }
Property Value
NumberEditorInteger
[AddInParameter("NumberEditorInteger")]
[AddInParameterEditor(typeof(NumberParameterEditor), "inputClass=std editor-parameter;allowNegativeValues=false")]
public int NumberEditorInteger { get; set; }
Property Value
ParagraphId
[AddInParameter("Show on paragraph")]
[AddInParameterEditor(typeof(ParagraphSelectEditor), "htmlClass=std")]
public string ParagraphId { get; set; }
Property Value
PeriodEditor
[AddInParameter("Period editor")]
[AddInParameterEditor(typeof(PeriodParameterEditor), "")]
public string PeriodEditor { get; set; }
Property Value
RadioEditor
[AddInParameter("RadioButtons")]
[AddInParameterGroup("Parameters with options")]
[AddInParameterEditor(typeof(RadioParameterEditor), "")]
public string RadioEditor { get; set; }
Property Value
Template
[AddInParameter("Template")]
[AddInParameterEditor(typeof(TemplateParameterEditor), "folder=templates/MyModule/Email/;FullPath=true;NewGUI=true")]
public string Template { get; set; }
Property Value
Text
[AddInLabel("Text")]
[AddInParameter("Text")]
[AddInParameterOrder(0)]
[AddInParameterEditor(typeof(TextParameterEditor), "")]
[AddInIsEditable(true)]
public string Text { get; set; }
Property Value
UrlToPage
[AddInParameter("URL to page")]
[AddInParameterEditor(typeof(PageSelectEditor), "")]
public string UrlToPage { get; set; }
Property Value
UserEditor
[AddInParameter("User")]
[AddInParameterEditor(typeof(UserParameterEditor), "")]
public string UserEditor { get; set; }
Property Value
UserGroup
[AddInParameter("User group")]
[AddInParameterEditor(typeof(UserGroupParameterEditor), "multiple=false;")]
public string UserGroup { get; set; }
Property Value
YesNoEditor
[AddInLabel("YesNo")]
[AddInParameter("YesNo")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
public bool YesNoEditor { get; set; }
Property Value
Methods
GetOptions(string)
Implementation of IDropDownOptions interface
public Hashtable GetOptions(string dropdownName)
Parameters
dropdownName
string