Code Monkey home page Code Monkey logo

Comments (6)

vnbaaij avatar vnbaaij commented on July 25, 2024 1

I inferred from marking this issue as "completed" that you are not interested in my contribution.

We absolutely are always interested in contributions!

But it was not clear to me that you want to do that from the first post. I closed it because it is on our ToDo list and no further action was needed on this for now. I'll reopen and label it as 'community contribution'. Looking forward to it!

You can use the implementation in the examples folder in this repo. This folder contains code for the current demo site. Please let us know if you have questions still.

from fluentui-blazor.

mobinseven avatar mobinseven commented on July 25, 2024 1

Of course. I have managed to reach a minimal configuration to correctly setup RTL mode at startup.

@* MainLayout.razor *@

@using Microsoft.FluentUI.AspNetCore.Components.DesignTokens
@inject Direction DirectionToken
@inherits LayoutComponentBase
...
@Body
...
<FluentDesignTheme Direction="@Direction" />
@code {
    LocalizationDirection Direction { get; set; }
    protected override async Task OnAfterRenderAsync(bool f)
    {
        await base.OnAfterRenderAsync(f);
        if(!f)
            return;
        await DirectionToken.WithDefault("rtl");
        Direction = LocalizationDirection.RightToLeft;
        StateHasChanged();
    }
}

Compontents like FluentTreeView have issues when just direction is switched (check FluentTreeView on demo site when "Right to Left" setting is on.)

Is it ok to add this snippet to docs?

from fluentui-blazor.

vnbaaij avatar vnbaaij commented on July 25, 2024 1

Yes, please. Let's add a RTL section in the https://www.fluentui-blazor.net/CodeSetup page

from fluentui-blazor.

vnbaaij avatar vnbaaij commented on July 25, 2024

That is a very old demo site you are looking at. Hence, why we say on the first line:

The site at this URL is no longer being updated. Visit https://www.fluentui-blazor.net/ for an up-to-date version.

We should indeed update the docs on that but too much to do in too little time...until that time, you can use the source of the demo site here in the repo (in the examples folder) as an example implementation.

from fluentui-blazor.

mobinseven avatar mobinseven commented on July 25, 2024

That is a very old demo site you are looking at.

I knew it was a very old demo site. I had to refer to it because the main documentation has no mention of this mode (I should have said "an old demo site".)

I have no problem with contributing to this part of documentation, but I could not find the correct way to configure it.

I inferred from marking this issue as "completed" that you are not interested in my contribution.

from fluentui-blazor.

vnbaaij avatar vnbaaij commented on July 25, 2024

@mobinseven are you still planning to contribute this?

If not, that is totally ok too, but then I'll close the issue to keep expectations straight.

from fluentui-blazor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.