Class CreateModalModel.CreatePollViewModel
Inheritance
CreateModalModel.CreatePollViewModel
Assembly: Volo.CmsKit.Pro.Admin.Web.dll
Syntax
public class CreateModalModel.CreatePollViewModel : ExtensibleObject, IHasExtraProperties, IValidatableObject
Constructors
CreatePollViewModel()
Declaration
public CreatePollViewModel()
Properties
AllowMultipleVote
Declaration
public bool AllowMultipleVote { get; set; }
Property Value
Code
Declaration
[ReadOnlyInput]
[Required]
[DynamicMaxLength(typeof(PollConst), "MaxCodeLength")]
[InputInfoText("Poll:CodeIsAUniqueKey")]
public string Code { get; set; }
Property Value
EndDate
Declaration
public DateTime? EndDate { get; set; }
Property Value
Name
Declaration
[DynamicMaxLength(typeof(PollConst), "MaxNameLength")]
[InputInfoText("Poll:NameIsUsedToFilterInAdminSide")]
public string Name { get; set; }
Property Value
PollOptions
Declaration
public PollOptionDto[] PollOptions { get; set; }
Property Value
Question
Declaration
[Required]
[DynamicMaxLength(typeof(PollConst), "MaxQuestionLength")]
public string Question { get; set; }
Property Value
ResultShowingEndDate
Declaration
public DateTime? ResultShowingEndDate { get; set; }
Property Value
ShowHoursLeft
Declaration
public bool ShowHoursLeft { get; set; }
Property Value
ShowResultWithoutGivingVote
Declaration
public bool ShowResultWithoutGivingVote { get; set; }
Property Value
ShowVoteCount
Declaration
public bool ShowVoteCount { get; set; }
Property Value
StartDate
Declaration
[Required]
public DateTime StartDate { get; set; }
Property Value
Widget
Declaration
[SelectItems("Widgets")]
public string Widget { get; set; }
Property Value
Implements
Extension Methods