You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

Blazor_PersianDatePickerZO

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Blazor_PersianDatePickerZO

Persian DatePicker Blazor Library

2.0.1
Source
nugetNuGet
Version published
Maintainers
1
Created
Source

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

  • .NET 8.0

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" />
<script src="_content/Blazor_PersianDatePickerZO/AppDatePickerZeroOne.js"></script>

Add the following imports to _Imports.razor

@using Blazor_PersianDatePickerZO.Component
@using Blazor_PersianDatePickerZO.Hellper

Usage

Date Picker Usage

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

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

Range Date Picker Usage

<DatePickerZORange 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

< DatePickerZO 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

<YearMonthZO   @bind-SelectDate="@value" />

chang format

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

<DatePickerZO  Format="ddd D MMM سال yyyy ساعت hh:mm:ss"  />

Keywords

Blazor

FAQs

Package last updated on 12 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts