ShadowRootInit Class
https://dom.spec.whatwg.org/#dictdef-shadowrootinit
public sealed class ShadowRootInitConstructors
| Name | Description |
|---|---|
| ShadowRootInit() |
ShadowRootInit()
ShadowRoot.cs- Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public ShadowRootInit()No documentation is available.
Properties
| Name | Description |
|---|---|
| Clonable | Gets or sets a value indicating whether the shadow root is copied when its host is cloned. |
| CustomElementRegistry | Gets or sets the custom element registry of the shadow root. |
| DelegatesFocus | Gets or sets a value indicating whether the shadow root delegates focus to its first focusable element. |
| Mode | Gets or sets the encapsulation mode of the shadow root. |
| Serializable | Gets or sets a value indicating whether the shadow root is included when its host is serialized. |
| SlotAssignment | Gets or sets how slottables are assigned to the slots of the shadow root. |
Clonable
ShadowRoot.csGets or sets a value indicating whether the shadow root is copied when its host is cloned.
public bool Clonable { get; init; }CustomElementRegistry
ShadowRoot.csGets or sets the custom element registry of the shadow root.
public CustomElementRegistry? CustomElementRegistry { get; init; }DelegatesFocus
ShadowRoot.csGets or sets a value indicating whether the shadow root delegates focus to its first focusable element.
public bool DelegatesFocus { get; init; }Mode
ShadowRoot.csGets or sets the encapsulation mode of the shadow root.
public required ShadowRootMode Mode { get; init; }Serializable
ShadowRoot.csGets or sets a value indicating whether the shadow root is included when its host is serialized.
public bool Serializable { get; init; }SlotAssignment
ShadowRoot.csGets or sets how slottables are assigned to the slots of the shadow root.
public SlotAssignmentMode SlotAssignment { get; init; }