ant-design-blazor/components/auto-complete/IAutoCompleteRef.cs

35 lines
827 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
namespace AntDesign
{
public interface IAutoCompleteRef
{
void SetInputComponent(IAutoCompleteInput input);
Task InputFocus(FocusEventArgs e);
Task InputInput(ChangeEventArgs args);
Task InputKeyDown(KeyboardEventArgs args);
void AddOption(AutoCompleteOption option);
void RemoveOption(AutoCompleteOption option);
void SetActiveItem(AutoCompleteOption item);
Task SetSelectedItem(AutoCompleteOption item);
Func<object, object, bool> CompareWith { get; set; }
object SelectedValue { get; set; }
object ActiveValue { get; set; }
}
}