GithubHelp home page GithubHelp logo

antosubhakar / blazor.components Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mwinkler/blazor.components

0.0 0.0 0.0 588 KB

UI components for ASP.NET Blazor (Tree, Selector)

License: MIT License

C# 15.14% CSS 20.28% HTML 58.94% JavaScript 0.81% Dockerfile 3.61% Batchfile 1.22%

blazor.components's Introduction

Blazor Components

Some Blazor components I'm working on:

See running example: https://blazorcomponents.z6.web.core.windows.net/

Tree

<Tree 
    Nodes="Items" 
    SelectedNode="SelectedItem" 
    ChildSelector="@(item => item.Childs)">
    <TitleTemplate>@context.Text</TitleTemplate>
</Tree>

Client Dependencies

<link rel="stylesheet" href="_content/MW.Blazor.Tree/styles.css" />

Code example
Live Demo

NuGet Status

Features / Tasks

  • Generic data support
  • Item templating
  • Styling (Bootstrap/Font Awesome)
  • Subtree loading indicator (lazy loading)
  • Disabling selection of nodes
  • Single selection
  • Multi selection (Checkboxes)
  • Event population (OnSelect, OnExpand, ...)
  • Support EventCallback<>

Change Log

  • 1.1.6
    • Update to .NET Core 3.0 (Final)
  • 1.1.4
    • Update to .NET Core 3.0-preview9
  • 1.1.3
    • Update to .NET Core 3.0-preview8
  • 1.1.2
    • Update to .NET Core 3.0-preview6
  • 1.1.1
    • Convert from razor to blazor lib
  • 1.1.0
    • Update to .NET Core 3 preview4
    • Move to namespace MW.Blazor
    • Implement EventCallback
    • Breaking Change: SelectedNodes (IList<TItem>) -> SelectedNode (TItem)

Tag Selector

<TagSelector 
    SelectableTags="@Tags" 
    SelectedTags="@Selected" 
    Filter="@((item,term) => item.Contains(term))">
    <TagTemplate>@context</TagTemplate>
</TagSelector>

Client Dependencies

<link rel="stylesheet" href="_content/MW.Blazor.TagSelector/styles.css" />
<script src="_content/MW.Blazor.TagSelector/interop.js"></script>

Code example
Live Demo

NuGet Status

Features / Tasks

  • Generic data support
  • Item templating
  • Autocomplete
  • Selection via keys (up/down/enter)
  • Styling (Bootstrap)
  • Disabling selection of items
  • Event population (OnSelect, OnRemove)
  • Support EventCallback<>

Change Log

  • 1.2.3
    • Update to .NET Core 3.0 (Final)
  • 1.2.1
    • Update to .NET Core 3.0-preview9
  • 1.2
    • Add new callback 'OnCreateTag' to catch user input and create tag on the fly (Issue #1)
  • 1.1.3
    • Update to .NET Core 3.0-preview8
  • 1.1.2
    • Update to .NET Core 3.0-preview6
  • 1.1.1
    • Convert from razor to blazor lib
    • Add EventCallback for SelectedTags
  • 1.1.0
    • Update to .NET Core 3 preview4
    • Move to namespace MW.Blazor
    • Implement EventCallback

Page Panel

<PagePanel PageIndex="@CurrentPage" Style="height:250px">
    <Page Widths="50%;100%;200%">
        <div class="d-flex justify-content-center align-items-center h-100 text-white h4" style="background:#00ff90">
            Page 1
        </div>
    </Page>
    <Page Widths="50%;30%;20%;50%">
        <div class="d-flex justify-content-center align-items-center h-100 text-white h4" style="background:#1596c7">
            Page 2
        </div>
    </Page>
    <Page Widths="70%;70%;20%;50%">
        <div class="d-flex justify-content-center align-items-center h-100 text-white h4" style="background:#b823be">
            Page 3
        </div>
    </Page>
    <Page Widths="60%;60%;60%;100%">
        <div class="d-flex justify-content-center align-items-center h-100 text-white h4" style="background:#ff6a00">
            Page 4
        </div>
    </Page>
</PagePanel>

<button onclick="@(() => CurrentPage--)"><</button>
@CurrentPage
<button onclick="@(() => CurrentPage++)">></button>


@functions { int CurrentPage { get; set; } }

Client Dependencies

<link rel="stylesheet" href="_content/MW.Blazor.PagePanel/styles.css" />

Code example
Live Demo

NuGet Status

Features / Tasks

  • Multiple pages on same page
  • Defaults for 'Widths' property
  • Property for transition time
  • Simplify 'Widths' property

Change Log

  • 1.1.6
    • Update to .NET Core 3.0 (Final)
  • 1.1.4
    • Update to .NET Core 3.0-preview9
  • 1.1.3
    • Update to .NET Core 3.0-preview8
  • 1.1.2
    • Update to .NET Core 3.0-preview6
  • 1.1.1
    • Convert from razor to blazor lib
  • 1.1.0
    • Update to .NET Core 3 preview4
    • Move to namespace MW.Blazor
    • Use CascadeValue to provide current page index

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.