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;
        }
Beispiel #3
0
        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"));
 }
Beispiel #6
0
 public object Get(IModelFieldType fieldType)
 {
     return(fieldType.GetValueFromString(_getter()));
 }
Beispiel #7
0
 public object Get(IModelFieldType fieldType)
 {
     return(fieldType.GetValueFromString(_element.GetAttribute("value")));
 }