Class TwDirectionProvider
- Namespace
- TwBlazor.Components
- Assembly
- TwBlazor.dll
Sets the direction, left to right or right to left, of everything inside it. It writes the dir
attribute the styles react to and tells the components inside which way their arrow keys should move.
public class TwDirectionProvider : TwBlazorComponentBase, IComponent, IHandleEvent, IHandleAfterRender, ITwComponent
- Inheritance
-
TwDirectionProvider
- Implements
- Inherited Members
Remarks
Wrap the whole application in one to have it follow the current language, or wrap part of a page to give
that part a different direction from the rest. An application that already sets dir on its
html element from the same culture does not need one.
Constructors
TwDirectionProvider()
public TwDirectionProvider()
Properties
ChildContent
Gets or sets the content the direction applies to.
[Parameter]
public RenderFragment? ChildContent { get; set; }
Property Value
Direction
Gets or sets the direction of the content. Leave unset to follow an enclosing provider, and failing that the current language.
[Parameter]
public TextDirection? Direction { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builderRenderTreeBuilder