Skip to content

Commit

Permalink
v2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslan-garaev committed May 24, 2024
1 parent 8b83c1f commit a923b3b
Show file tree
Hide file tree
Showing 47 changed files with 603 additions and 202 deletions.
17 changes: 14 additions & 3 deletions dist/accordion.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,35 @@ export interface ICollectionItem<T> {
id: string | number;
element: T;
}
export interface IAccordionTreeViewStaticOptions {
}
export interface IAccordionTreeView {
el: HTMLElement | null;
options?: IAccordionTreeViewStaticOptions;
}
export interface IAccordionOptions {
}
export interface IAccordion {
options?: {};
options?: IAccordionOptions;
show(): void;
hide(): void;
}
declare class HSAccordion extends HSBasePlugin<{}> implements IAccordion {
declare class HSAccordion extends HSBasePlugin<IAccordionOptions> implements IAccordion {
private readonly toggle;
content: HTMLElement | null;
private readonly group;
private readonly isAlwaysOpened;
constructor(el: HTMLElement, options?: {}, events?: {});
static selectable: IAccordionTreeView[];
constructor(el: HTMLElement, options?: IAccordionOptions, events?: {});
private init;
show(): boolean;
hide(): boolean;
static getInstance(target: HTMLElement | string, isInstance?: boolean): HTMLElement | ICollectionItem<HSAccordion>;
static show(target: HTMLElement): void;
static hide(target: HTMLElement): void;
static autoInit(): void;
static treeView(): boolean;
static toggleSelected(root: IAccordionTreeView, item: HTMLElement): void;
static on(evt: string, target: HTMLElement, cb: Function): void;
}

Expand Down
2 changes: 1 addition & 1 deletion dist/accordion.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a923b3b

Please sign in to comment.