| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/framework7/node_modules/framework7/components/card/ |
Upload File : |
import Framework7, {
CSSSelector,
Framework7EventsClass,
Framework7Plugin,
} from '../app/app-class.js';
export namespace Card {
interface AppMethods {
card: {
/** Open expandable card */
open(cardEl: HTMLElement | CSSSelector, animate?: boolean): void;
/** Close expandable card */
close(cardEl: HTMLElement | CSSSelector, animate?: boolean): void;
/** Toggle expandable card */
toggle(cardEl: HTMLElement | CSSSelector, animate?: boolean): void;
};
}
interface AppParams {
card?:
| {
/** Will hide Navbar on expandable card open. (default true) */
hideNavbarOnOpen?: boolean;
/** Will hide Toolbar on expandable card open. (default true) */
hideToolbarOnOpen?: boolean;
/** Will hide "Statusbar" on expandable card open. (default true) */
hideStatusbarOnOpen?: boolean;
/** Custom scrollable container CSS selector, (default '.card-content') */
scrollableEl?: string;
/** Allows to close expandable card with swipe (default true) */
swipeToClose?: boolean;
/** Enables expandable card backdrop layer (default true) */
backdrop?: boolean;
/** When enabled, expandable card will be closed on backdrop click. (default true) */
closeByBackdropClick?: boolean;
}
| undefined;
}
interface DomEvents {
/** Event will be triggered right before expandable card starts its opening animation. event.detail.prevent contains function that will prevent card from opening when called */
'card:beforeopen': () => void;
/** Event will be triggered when expandable card starts its opening animation */
'card:open': () => void;
/** Event will be triggered after expandable card completes its opening animation */
'card:opened': () => void;
/** Event will be triggered when expandable card starts its closing animation */
'card:close': () => void;
/** Event will be triggered after expandable card completes its closing animation */
'card:closed': () => void;
}
interface AppEvents {
/** Event will be triggered before expandable card content starts its opening animation */
cardBeforeOpen: (el: HTMLElement | CSSSelector, prevent: () => void) => void;
/** Event will be triggered when expandable card content starts its opening animation */
cardOpen: (el: HTMLElement | CSSSelector) => void;
/** Event will be triggered after expandable card content completes its opening animation */
cardOpened: (el: HTMLElement | CSSSelector) => void;
/** Event will be triggered when expandable card content starts its closing animation */
cardClose: (el: HTMLElement | CSSSelector) => void;
/** Event will be triggered after expandable card content completes its closing animation */
cardClosed: (el: HTMLElement | CSSSelector) => void;
}
}
declare const CardComponent: Framework7Plugin;
export default CardComponent;