FlowR.Core/Tags/Controls/Select.cs
/// <summary>
///     Set Option with specific value as selected=true
/// </summary>
/// <param name="value"></param>
/// <returns></returns>
Set Option with specific value as selected=true
Set Option with specific value as selected = true
public Select SetSelectedOption(string value)
        {
            GetChildrenOfType<Option>().ForEach(option =>
            {
                if (option.GetAttribute("value") == value)
                {
                    option.SetSelected();
                    return;
                }
                option.SetSelected(false);
            });
            return this;
        }
public Select SetSelectedOption ( string value ) { GetChildrenOfType < Option > ( ) . ForEach ( option => { if ( option . GetAttribute ( " " ) == value ) { option . SetSelected ( ) ; return ; } option . SetSelected ( false ) ; } ) ; return this ; }
Set Option with specific value as selected=true
Set Option with specific value as selected = true
None
value
string
None