Skip to content
Michal Altair Valášek edited this page May 27, 2024 · 6 revisions

Altairis Validation Toolkit is set of attributes and editor templates for dynamically validating and generating input models for ASP.NET Razor Pages and ASP.NET MVC Core.

About the editor templates

The editor templates evolved from the base templates included in Razor, which are optimized for Bootstrap. My templates are not optimized for Bootstrap (I don't know and use it), but follow the same scheme. Of course, you are welcome and expected to modify the templates to suit your needs.

Included attributes and editor templates

Name Attribute Template Notes
Boolean - yes
Byte - yes
Collection - yes
Color yes yes
Currency - yes [DataType(DataType.Currency)]
CzechBankAccount yes -
Date - yes [DataType(DataType.Date)]
DateOffset yes -
DateTime - yes
Decimal - yes
EmailAddress - yes [DataType(DataType.EmailAddress)]
GreaterThan yes -
HiddenInput - yes [HiddenInput]
Html - yes [DataType(DataType.Html)]
Ico yes yes
IFormFile - yes
IFormFileCollection - yes
Int16 - yes
Int32 - yes
Int64 - yes
Markdown yes yes
MultilineText - yes [DataType(DataType.MultilineText)]
Object - yes
Password - yes [DataType(DataType.Password)]
PhoneNumber - yes [DataType(DataType.PhoneNumber)]
PostalCode - yes [DataType(DataType.PostalCode)]
RequiredEmptyWhen yes -
RequiredWhen yes -
RodneCislo yes yes
Select yes yes
Single - yes
Slider yes yes
String - yes
Text - yes
Time - yes [DataType(DataType.Time)]
UInt16 - yes
UInt32 - yes
UInt64 - yes
Upload - yes
Url - yes [DataType(DataType.Url)]
YearOffset yes -

Clone this wiki locally