Class ToggleOverlayOptions
- Namespace
- GroupeIsa.Neos.Designer.UIAbstractions
- Assembly
- GroupeIsa.Neos.Designer.UIAbstractions.dll
Represents the toggle overlay options.
[ExcludeFromCodeCoverage]
[SuppressMessage("Minor Code Smell", "S2325:Methods and properties that don't access instance data should be static", Justification = "Stubs for transpilation.")]
public class ToggleOverlayOptions
- Inheritance
-
ToggleOverlayOptions
- Inherited Members
Constructors
ToggleOverlayOptions(string)
Initializes a new instance of the ToggleOverlayOptions class.
public ToggleOverlayOptions(string overlayId)
Parameters
overlayIdstringOverlay id.
Properties
OverlayId
Gets the overlay identifier.
public string OverlayId { get; }
Property Value
State
Gets the forced state.
public object? State { get; }
Property Value
Target
Gets the target element to which the overlay will use.
public object? Target { get; }
Property Value
Methods
WithState(bool?)
Sets the forced state of the overlay. By default, the overlay will open if it is closed and close if it is opened.
public ToggleOverlayOptions WithState(bool? state)
Parameters
statebool?The state to set. True for open, false for closed, or null for default behavior.
Returns
- ToggleOverlayOptions
Options.
WithTarget(object?)
Sets the target element.
public ToggleOverlayOptions WithTarget(object? target)
Parameters
targetobjectTarget.
Returns
- ToggleOverlayOptions
Options.