GithubHelp home page GithubHelp logo

htmlelements / smart-blazor Goto Github PK

View Code? Open in Web Editor NEW
62.0 6.0 11.0 54.63 MB

Blazor UI Components & Examples

Home Page: https://www.htmlelements.com/blazor/

HTML 94.36% C# 2.59% CSS 1.01% JavaScript 2.04%
blazor microsoft-blazor asp-net-core dotnet blazor-webassembly blazor-application blazor-server blazor-client aspnetcore blazor-component

smart-blazor's People

Contributors

bmarkov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

smart-blazor's Issues

Accordion item resize

Hello.

Is it possible to set up accordion item auto resize? Not there are no options to do this - for example, I want to get "First item" wided fully on the screen. But now it just on half of the screen and no way to resize it.

Strange issue on Tree elements when data is loaded as a DataSource

Hey there,

Perhaps it's my lack of understanding of how to access the data elements of a treeview, but it appears I have an occasional hiccup when trying to access the "id" property of a Tree item when a given element is selected.

I can provide source code for this, but in essence, imagine the following code:

   <Tree @ref="_treeMenu"
                          OnChange="TriggerLoadFileContents"
                          DataSource="@TreeItems">
@code {
     private List<Dictionary<string, object>> TreeItems { get; set; } = new();

    protected override async Task OnInitializedAsync()
    {
        await base.OnInitializedAsync();
       //each item in the tree has an id, label, sort Dictionary entry
        TreeItems = ProjectContentTreeFactory.GenerateTreeDataFromProject(CurrentProject);
    }
  
   private async Task TriggerLoadFileContents(Event arg)
    {
        if (arg["Detail"] is TreeChangeEventDetail eventData)
        {
            var itemId = eventData.Item.id.ToString();

            if (!string.IsNullOrEmpty(itemId))
            {
                var currentItem= MyDataSource.FindItemById(itemId);
                if (currentItem!= null)
                {
                    TriggerLoadFileContents(currentItem);
                }
            }
        }

        await Task.CompletedTask;
    }
}

The issue is that in 9 out of 10 tree elements, when I fetch it back as a TreeChangeEventDetail item and inspect the eventData.Item.id property, it IS the Id property I set on the TreeItems. Only 1 in 10 do I see what appears to be a nonsensically-generated key which looks something like this each time: "Smart0HMNK6T2AMEFEItemP0_1_1LItemLabelWithNoSpaces"

Am I missing something? It appears that in 9 of 10 cases, the Id dictionary entry I pass is being returned back inside the TreeChangeEventDetail, but in the 10th case, the Id field appears to contain a random string starting in the word 'Smart' and ending in the label I provided (just sans spaces).

Perhaps there is some other way I should be accessing the TreeChangeEventDetail data. I'm unsure.

Any help would be most appreciated.

Cheers

GanttChart is non functional!

The complete component is in the current state non functional - which could be at least pointed out!

  • No documentation on how to use the component - you need to figure all out by yourself, like you can get the GanttChart isntance with the OnReady EventCallback
  • You can not add task manual
  • You can not use the events of the GanttChart object (which would have a propper eventhandler in comparison to the EventCallbacks of the component)
  • JavaScript errors on a whole bunch of GanttChart object functions (f.e. .GetState())
  • ...

Have you a working example with more then showing 10 tasks or are you really selling a non functional library for a huge amount of money?

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.