UNPKG

leaderboard-table

Version:
22 lines (21 loc) 987 B
import TypographyFactory from "../typography/TypographyFactory"; import DOMController from "../../controllers/DOMController"; import ContainerFactory from "../container/ContainerFactory"; import { CONTAINER_STYLE_CLASS } from "../../common/styleClasses/container.enum"; import { SEMANTIC_CONTAINER_TAGS } from "../../common/semanticTags/container.enum"; /** * @class ElementCreator is facade and it's used whenever is need to create * native DOM elements. */ declare class ElementCreator { DOMController: DOMController; containerFactory: ContainerFactory; typographyFactory: TypographyFactory; constructor(); createContainer(tag: SEMANTIC_CONTAINER_TAGS, containerStyle: CONTAINER_STYLE_CLASS): HTMLElement; createTextPrimary(text: string): HTMLElement; createTextSecondary(text: string): HTMLElement; createHeaderPrimary(text: string): HTMLElement; createHeaderSub(text: string): HTMLElement; } export default ElementCreator;