using System;
using System.Text;
using System.Web.Mvc;
namespace Yavsc.Model.FrontOffice
{
///
/// Select input.
///
public class SelectInput: FormInput
{
#region implemented abstract members of FormInput
///
/// Gets the type.
///
/// The type.
public override string Type {
get {
return "select";
}
}
#endregion
///
/// The items.
///
public Option[] Items;
///
/// The index of the selected.
///
public int SelectedIndex;
///
/// Tos the html.
///
/// The html.
public override string ToHtml ()
{
StringBuilder sb = new StringBuilder ();
foreach (Option opt in Items)
sb.Append (opt.ToHtml());
return string.Format ("\n", Id,Name,sb.ToString());
}
}
}