@lucsoft/webgen
Version:
Collection of lucsofts Components
38 lines (37 loc) • 1.09 kB
TypeScript
import { CommonCard } from "../../types/card";
import '../../css/search.webgen.static.css';
export declare type SearchEntry = {
name: string;
icon?: string;
tags?: string[];
category?: string;
suffix?: string;
id: string;
};
export declare const enum SearchMode {
ShowBegin = 0,
HideBegin = 1,
HideWhenEmpty = 2
}
export declare const searchCard: (settings: {
type: "smart" | "default";
maxWidth?: string | undefined;
mode?: SearchMode | undefined;
placeholder?: string | undefined;
notfound?: string | undefined;
icons?: {
edit: string;
close: string;
remove: string;
download: string;
} | undefined;
actions?: {
close?: (() => void) | undefined;
click?: ((arg: SearchEntry) => void) | undefined;
download?: ((arg: SearchEntry) => void) | undefined;
edit?: ((arg: SearchEntry) => void) | undefined;
remove?: ((arg: SearchEntry) => void) | undefined;
} | undefined;
index: SearchEntry[];
width?: number | undefined;
}) => CommonCard;