Blazor_PersianDatePickerZO 1.0.8

dotnet add package Blazor_PersianDatePickerZO --version 1.0.8                
NuGet\Install-Package Blazor_PersianDatePickerZO -Version 1.0.8                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Blazor_PersianDatePickerZO" Version="1.0.8" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Blazor_PersianDatePickerZO --version 1.0.8                
#r "nuget: Blazor_PersianDatePickerZO, 1.0.8"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Blazor_PersianDatePickerZO as a Cake Addin
#addin nuget:?package=Blazor_PersianDatePickerZO&version=1.0.8

// Install Blazor_PersianDatePickerZO as a Cake Tool
#tool nuget:?package=Blazor_PersianDatePickerZO&version=1.0.8                

ZO Blazor Persian Date Picker

This Date picker is a blazor component written using C# only and no javascript. This date picker only works with jalali calender. We created this component for the personal use but we decided to publish it on github for other people that feel the need for a persian date picker component like us. Note that we didn't use culture in this calender since it was going to be used only for the jalali/persian calender.

PersianDatePicker | PersianDatePicker |

Prerequisites

Quick Installation Guide

Install Package

Install-Package Blazor_PersianDatePickerZO

Add the following link to index.html (client-side) or _Host.cshtml (server-side) in the head

<link href="_content/Blazor_PersianDatePickerZO/AppDatePickerZeroOne.css" rel="stylesheet" />

Add the following imports to _Imports.razor

@using Blazor_PersianDatePickerZO.Component
@using Blazor_PersianDatePickerZO.Hellper

Usage

Date Picker Usage

< ZeroOneDatePicker PupupDatePickerZO="true OR false" @bind-SelectDate="@value">

@code {
  public DateTime value { get; set; } 
}

Range Date Picker Usage

<ZeroOneDatePickerRange SelectDateFirst="@dateFirst" SelectDateLast="@dateLast"  />

@code {
  public DateTime dateFirst { get; set; } 
  public DateTime dateLast { get; set; } 
}

Theming

use one of the following enum members to change the theme of the date picker

< ZeroOneDatePicker ThemePickerZO="ThemeDatePickerZO.darkblue">
enum ThemeDatePickerZO
{
   lightgreen,
   lightred,
   lightblue,
   lightpurple,
   lightorange,
   lightgray,
   darkgreen,
   darkred,
   darkblue,
   darkpurple,
   darkorange,
   darkgray    
}

Individual Modules

The main date picker consists of multiple components and the components can be used individualy like the samples below

Time Only

There are 2 different time picker components with different looks that can be used in different scenarios

 <TimeZO   @bind-SelectDate="@value"/>
<ClockZO  @bind-SelectDate="@value" />
Day Only
<DayZO  @bind-SelectDate="@value" />
year and month
<YearMonth   @bind-SelectDate="@value" />
chang format

Format="TypeFormat" yyyy/MM/dd Or yy/MM/dd Or MMM Or ddd Or ..

<ZeroOneDatePicker  Format="ddd D MMM سال yyyy ساعت hh:mm:ss"  />
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.8 187 8/29/2024
1.0.6 1,441 10/18/2022