@skhemata/skhemata-faq
Version:
Skhemata FAQ Web Component. This web component provides website FAQ functionality with question and answer style of FAQ.
51 lines (50 loc) • 1.27 kB
TypeScript
/**
*
* Lit Faq Post Element
*
*/
import { SkhemataBase, CSSResult } from '@skhemata/skhemata-base';
export declare class SkhemataFaqPost extends SkhemataBase {
apiWordpress: {
url: string;
};
faqPagePath: string;
hasFeaturedImage: boolean;
slug: String | undefined;
private faqPost;
translationData: {
eng: {
SkhemataFaqPost: {
backToFaq: string;
tags: string;
categories: string;
};
};
};
static get styles(): CSSResult[];
static get scopedElements(): {
'fa-icon': any;
};
constructor();
handleGoBack(): void;
/**
* Implement `render` to define a template for your element.
* Use JS template literals
*/
protected render(): import("lit-html").TemplateResult<1>;
/**
* Implement firstUpdated to perform one-time work after
* the element’s template has been created.
*/
firstUpdated(): Promise<void>;
/**
* Fetch a single post based on post id from WP REST API
*/
private getPost;
private formatDate;
/**
* Sets the meta tags for the head
*/
setMetaTags(): void;
filterPostsBy(id: string, queryId: string): void;
}