@skhemata/skhemata-faq
Version:
Skhemata FAQ Web Component. This web component provides website FAQ functionality with question and answer style of FAQ.
58 lines (57 loc) • 1.42 kB
TypeScript
/**
*
* Lit Faq List Element
*
*/
import { SkhemataBase, CSSResult } from '@skhemata/skhemata-base';
import './SkhemataFaqSearch';
export declare class SkhemataFaqList extends SkhemataBase {
apiWordpress: {
url: string;
};
postsPerPage: number;
pagerType: string;
currentPage: number;
faqPagePath: string;
private faqPosts;
totalPages: number;
totalCount: number;
maxLoadCount: number;
private count;
translationData: {
eng: {
SkhemataFaqList: {
showMoreButton: string;
};
};
};
static get styles(): CSSResult[];
static get scopedElements(): {
'fa-icon': any;
};
constructor();
willUpdate(changedProperties: Map<string, any>): void;
/**
* Implement `render` to define a template for your element.
* Use JS template literals
*/
protected render(): import("lit-html").TemplateResult<1>;
navigateToPost(slug: string): void;
/**
* Implement firstUpdated to perform one-time work after
* the element’s template has been created.
*/
firstUpdated(): Promise<void>;
private formatDate;
/**
* Fetch Posts from WP REST API
*/
private getPosts;
/**
* Load more posts event handler
*/
private loadMorePosts;
private goToButtonPage;
private setPageNumber;
private loadPostPage;
}