Skip to content

Lucisano/blazor-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License

Blazor Components Open Source Repository

I encourage anybody to contribute and use this code here.

This repository comprises simply of custom controls and components that I have created for use in my own work.

da

Features

Date Time Picker

  • Ability to manually enter date
  • Ability to select date from drop down
  • Ability to hook into DateChanged event/action
  • Ability to specify DateTimeFormat as parameter (default set as "dd/MM/yyyy")

Example Implementation

@using BlazorComponents.Components

<!-- Vanilla Implementation -->
<DateTimePicker />

<!-- Date Time format "if ya nasty" Implementation -->
<DateTimePicker DateTimeStringFormat="MM/dd/yy" />

<!-- Will stop the Tile window closing after selecting a date -->
<DateTimePicker CloseDateTileWindow="false"/>

Example Event Handling

HTML/Razor

@page "/"
@inherits TestPageBase
@using BlazorComponents.Components

<DateTimePicker DateChanged=@HandleDateChanged/>

C#

public class TestPageBase : ComponentBase
{
    public void HandleDateChanged(DateTime date)
    {
        //do stuff;
    }
}

About

Some custom controls/components created for Blazor apps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published