2017-12-09 21:19:32 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Ooui
|
|
|
|
|
{
|
|
|
|
|
public class Option : Element
|
|
|
|
|
{
|
|
|
|
|
public string Value {
|
2018-02-02 02:43:23 +00:00
|
|
|
|
get => GetStringAttribute ("value", "");
|
|
|
|
|
set => SetAttributeProperty ("value", value ?? "");
|
2017-12-09 21:19:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Label {
|
2018-02-02 02:43:23 +00:00
|
|
|
|
get => GetStringAttribute ("label", "");
|
|
|
|
|
set => SetAttributeProperty ("label", value ?? "");
|
2017-12-09 21:19:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool DefaultSelected {
|
2018-02-02 02:43:23 +00:00
|
|
|
|
get => GetBooleanAttribute ("selected");
|
|
|
|
|
set => SetBooleanAttributeProperty ("selected", value);
|
2017-12-09 21:19:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Option ()
|
|
|
|
|
: base ("option")
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|