
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Blazor_PersianDatePickerZO
Advanced tools
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.
|
|
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
< DatePickerZO PupupDatePickerZO="true OR false" @bind-SelectDate="@value">
@code {
public DateTime value { get; set; }
}
<DatePickerZORange SelectDateFirst="@dateFirst" SelectDateLast="@dateLast" />
@code {
public DateTime dateFirst { get; set; }
public DateTime dateLast { get; set; }
}
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
}
The main date picker consists of multiple components and the components can be used individualy like the samples below
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" />
<DayZO @bind-SelectDate="@value" />
<YearMonthZO @bind-SelectDate="@value" />
Format="TypeFormat" yyyy/MM/dd Or yy/MM/dd Or MMM Or ddd Or ..
<DatePickerZO Format="ddd D MMM سال yyyy ساعت hh:mm:ss" />
FAQs
Persian DatePicker Blazor Library
We found that blazor_persiandatepickerzo demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.