Class ButtonEditor
- Namespace
- Dynamicweb.Content.Items.Editors
- Assembly
- Dynamicweb.dll
Represents a button editor.
[Editor("Button editor")]
public sealed class ButtonEditor : LinkEditorBase
- Inheritance
-
ButtonEditor
- Inherited Members
Properties
EnableFileSelection
Gets or sets value indicating whether to enable file selection.
[AddInLabel("Enable file selection")]
[AddInParameterOrder(30)]
[AddInParameter("EnableFileSelection")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
public bool EnableFileSelection { get; set; }
Property Value
EnableProductGroupSelection
Gets or sets value indicating whether to enable product group selection.
[AddInLabel("Enable product group selection")]
[AddInParameterOrder(50)]
[AddInParameter("EnableProductGroupSelection")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
public bool EnableProductGroupSelection { get; set; }
Property Value
EnableProductSelection
Gets or sets value indicating whether to enable product selection.
[AddInLabel("Enable product selection")]
[AddInParameterOrder(40)]
[AddInParameter("EnableProductSelection")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
public bool EnableProductSelection { get; set; }
Property Value
ShowToggle
Gets or sets value indicating whether to show the field toggle
[AddInLabel("Show field toggle")]
[AddInParameterOrder(1)]
[AddInParameter("ShowToggle")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
public bool ShowToggle { get; set; }
Property Value
Methods
GetViewModelValue(object)
Gets the value as an instance of ButtonViewModel
public override object? GetViewModelValue(object value)
Parameters
value
object