Class CodeProviderAddInWithEditors
- Namespace
- Dynamicweb.Examples.Extensibility
- Assembly
- Dynamicweb.Ecommerce.Examples.dll
The example of an abstract addin with attrbutes and parameter editors
[AddInActive(true)]
[AddInName("Abstract code provider add-in")]
[AddInLabel("Abstract code provider add-in")]
[AddInDescription("Just an example of using attributes and parameter editors.")]
[AddInDeprecated(false)]
[AddInAuthor("James Bond")]
[AddInGroup("Examples")]
[AddInTarget("Examples")]
[AddInOrder(0)]
[AddInUseParameterOrdering(true)]
[AddInUseParameterGrouping(true)]
[AddInUseParameters(false)]
public class CodeProviderAddInWithEditors : CodeProviderBase, ICodeProvider, IDropDownOptions
- Inheritance
-
CodeProviderAddInWithEditors
- 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
[AddInParameter("Color")]
[AddInParameterEditor(typeof(ColorParameterEditor), "")]
public string ColorEditor { get; set; }
Property Value
DateEditor
[AddInParameter("Date")]
[AddInParameterEditor(typeof(DateTimeParameterEditor), "hideName=true;")]
[AddInParameterGroup("Source")]
public DateTime DateEditor { get; set; }
Property Value
DecimalEditor
[AddInParameter("Decimal")]
[AddInParameterEditor(typeof(FloatingPointNumberParameterEditor), "minValue=0;maxValue=10;allowNegativeValues=false;localizeValues=true;inputClass=std;disabled=false")]
public decimal DecimalEditor { 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
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
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
ProductAndGroup
[AddInParameter("Product and group selector")]
[AddInParameterEditor(typeof(ProductsAndGroupsEditor), "FormID=MainForm")]
[AddInParameterGroup("Source")]
public static string ProductAndGroup { get; set; }
Property Value
ProductId
[AddInParameter("Product")]
[AddInParameterEditor(typeof(ProductSelectorParameterEditor), "FormID=forms[0]")]
[AddInParameterGroup("Source")]
public string ProductId { 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
[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
YesNoEditor
[AddInParameter("YesNo")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
public bool YesNoEditor { get; set; }
Property Value
Methods
BuildDisplayValue()
public override string BuildDisplayValue()
Returns
GetOptions(string)
Implementation of IDropDownOptions interface
public Hashtable GetOptions(string dropdownName)
Parameters
dropdownName
string