Docs · API reference · Motus.Abstractions
IFileChooser Interface#
Represents a file chooser dialog opened by the page.
public interface IFileChooser
Properties#
Element Property#
Gets the locator for the input element associated with the file chooser.
Motus.Abstractions.ILocator Element { get; }
Property Value#
IsMultiple Property#
Gets whether the file chooser allows multiple file selection.
bool IsMultiple { get; }
Property Value#
Page Property#
Gets the page that this file chooser belongs to.
Motus.Abstractions.IPage Page { get; }
Property Value#
Methods#
SetFilesAsync(IEnumerable<FilePayload>, CancellationToken) Method#
Sets the files for the file chooser.
System.Threading.Tasks.Task SetFilesAsync(System.Collections.Generic.IEnumerable<Motus.Abstractions.FilePayload> files, System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));
Parameters#
files System.Collections.Generic.IEnumerable<FilePayload>
The files to select.
ct System.Threading.CancellationToken
Cancellation token.