forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInputAttribute.cs
More file actions
27 lines (25 loc) · 928 Bytes
/
Copy pathInputAttribute.cs
File metadata and controls
27 lines (25 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
namespace ServiceStack;
[AttributeUsage(AttributeTargets.Property)]
public class InputAttribute : AttributeBase
{
public string Type { get; set; }
public string Value { get; set; }
public string Placeholder { get; set; }
public string Help { get; set; }
public string Label { get; set; }
public string Title { get; set; }
public string Size { get; set; }
public string Pattern { get; set; }
public bool ReadOnly { get; set; }
public bool Required { get; set; }
public bool Disabled { get; set; }
public string Autocomplete { get; set; }
public string Autofocus { get; set; }
public string Min { get; set; }
public string Max { get; set; }
public int Step { get; set; } = int.MinValue;
public int MinLength { get; set; } = int.MinValue;
public int MaxLength { get; set; } = int.MinValue;
public string[] AllowableValues { get; set; }
}