Hi Fola,
Thanks for contacting Syncfusion Support.
Yes. The given scenario “Is it possible to display Illustrator, Photoshop images and add tags to search” is possible.
In the below sample, we have provided an example to obtain the filter results with a button click.
In FileManager component, we have filterFiles() public method. Using this method, you can perform search operations based on your requirement and pass the searchString as parameter. Refer to the below code snippet.
filter(): void {
let obj = { searchString: "1.png" };
this.fileInstance.filterFiles(obj);
} |
In your controller part, you can perform the search operations as shown below.
public object FileOperations([FromBody] FileManagerDirectoryContent args)
{
switch (args.Action)
{
case "filter":
if (args.SearchString == "")
{
// Perform read operation while search string is empty.
return this.operation.ToCamelCase(this.operation.GetFiles(args.Path, args.ShowHiddenItems));
}
else
{
// Perform Search operation while serach string has value.
args.SearchString = args.SearchString + "*";
return this.operation.ToCamelCase(this.operation.Search(args.Path, args.SearchString, args.ShowHiddenItems, args.CaseSensitive));
}
}
return null;
}
|
For your reference, we have prepared a sample.
Note: Run the file manager service application and refer the local hostURL in FileManager sample.
Please let us know, if you need any further assistance.
Regards,
Sharon Sanchez S.