Class ProductEditor
- Namespace
- Dynamicweb.Ecommerce.Content.Items.Editors
- Assembly
- Dynamicweb.Ecommerce.dll
Represents a eCom product editor.
[Editor("Product")]
public class ProductEditor : EcomEditor<IEnumerable<string>>, IDropDownOptions
- Inheritance
-
ProductEditor
- Implements
- Inherited Members
Properties
ParagraphID
Gets or sets the paragraph identifier.
[AddInLabel("Show on paragraph")]
[AddInParameter("Show on paragraph")]
[AddInParameterEditor(typeof(ParagraphSelectEditor), "htmlClass=std editor-parameter")]
public string ParagraphID { get; set; }
Property Value
- string
- The paragraph identifier.
- See Also
-
EcomEditor<T>
RenderProductsFromGroups
Gets or sets the flag is the products from groups should be rendered on frontend.
[AddInLabel("Render products from groups on frontend")]
[AddInParameter("RenderProductsFromGroups")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "inputClass=std editor-parameter;")]
public bool RenderProductsFromGroups { get; set; }
Property Value
- See Also
-
EcomEditor<T>
ShowType
Gets or sets the value which defines objects types to show.
[AddInLabel("Show type")]
[AddInParameter("ShowType")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "inputClass=std editor-parameter;none=False;SortBy=Key")]
[AddInDescription("User object types to use in field")]
public string ShowType { get; set; }
Property Value
- See Also
-
EcomEditor<T>
Methods
EndEdit()
Returns the edited value.
[Obsolete("Do not use")]
public override object EndEdit()
Returns
- object
- The edited value.
- See Also
-
EcomEditor<T>
GetOptions(string)
Get options for editors with multiple values
public Hashtable GetOptions(string dropdownName)
Parameters
dropdownName
string
Returns
- See Also
-
EcomEditor<T>
GetViewModelValue(object)
Gets the value to use when rendering items in view models -
public override object GetViewModelValue(object value)
Parameters
value
object
Returns
- See Also
-
EcomEditor<T>
ParseValue(IEnumerable<string>)
Parses the value.
public static IEnumerable<object> ParseValue(IEnumerable<string> value)
Parameters
value
IEnumerable<string>- The value.
Returns
- IEnumerable<object>
- IEnumerable(Of System.Object).
- See Also
-
EcomEditor<T>
ParseValue(string)
Parses the value.
public static IEnumerable<object> ParseValue(string value)
Parameters
value
string- The value.
Returns
- IEnumerable<object>
- Parsed value as
IEnumerable(Of System.Object)
.
- See Also
-
EcomEditor<T>
RenderControl(TextWriter, IEnumerable<string>)
Renders the control.
[Obsolete("Do not use")]
protected override void RenderControl(TextWriter output, IEnumerable<string> value)
Parameters
output
TextWriter- The output.
value
IEnumerable<string>- The value.
- See Also
-
EcomEditor<T>
RenderItemListValue(string)
Render of the Item List value.
[Obsolete("Do not use")]
public override Editor.RenderedItemListResult RenderItemListValue(string value)
Parameters
value
string- Value
Returns
- Editor.RenderedItemListResult
- Rendered Value
- See Also
-
EcomEditor<T>
RenderValue(EditorRenderingContext)
Renders the value.
public override void RenderValue(EditorRenderingContext context)
Parameters
context
EditorRenderingContext- The context.
- See Also
-
EcomEditor<T>
See Also
EcomEditor<T>