simple-details
Version:
simple animated details package
38 lines (32 loc) • 840 B
TypeScript
export type iElementData = {
details: HTMLElement | HTMLDetailsElement,
summary: HTMLElement,
button: HTMLElement | HTMLButtonElement,
content: HTMLElement,
parameters: {
isOpen: boolean,
isClosing: boolean,
isOpening: boolean,
animation?: any
}
}
export type iTheme = 'default' | 'dark' | 'material' | 'cute' | 'sunny' | 'blood dragon' | 'custom'
export type iSelectors = {
details: string,
summary: string,
button: string,
content: string,
scrollbars: {
vertical: string,
}
}
export type iOptions = {
disableAfter: number | null,
preferButtonIfExist: boolean,
selectors: iSelectors,
durationMin: number,
durationMax: number,
durationPerHeight: number,
easing: 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear',
theme: iTheme
}