public object Get(IModelFieldType fieldType) { if (_select.IsMultiple) return fieldType.GetValueFromStrings(_select.AllSelectedOptions.Select(o => o.GetAttribute("value"))); return fieldType.GetValueFromString(_select.SelectedOption.GetAttribute("value")); }
public object Get(IModelFieldType fieldType) { if (_isCheckbox && fieldType.IsBoolean) return _element.Selected; return _element.Selected ? fieldType.GetValueFromString(_element.GetAttribute("value")) : null; }
public object Get(IModelFieldType fieldType) { if (_select.IsMultiple) { return(fieldType.GetValueFromStrings(_select.SelectedOptions.Select(o => o.GetAttribute("value")))); } return(fieldType.GetValueFromString(_select.SelectedOptions.Single().GetAttribute("value"))); }
public object Get(IModelFieldType fieldType) { if (_isCheckbox && fieldType.IsBoolean) { return(_element.IsChecked); } return(_element.IsChecked ? fieldType.GetValueFromString(_element.GetAttribute("value")) : null); }
public object Get(IModelFieldType fieldType) { return fieldType.GetValueFromString(_element.GetAttribute("value")); }
public object Get(IModelFieldType fieldType) { return(fieldType.GetValueFromString(_getter())); }
public object Get(IModelFieldType fieldType) { return(fieldType.GetValueFromString(_element.GetAttribute("value"))); }