Table of Contents

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

bool

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

bool

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

bool

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

bool

Methods

GetViewModelValue(object)

Gets the value as an instance of ButtonViewModel

public override object? GetViewModelValue(object value)

Parameters

value object

Returns

object
To top