woltlab-compiler
Version:
A compiler for WoltLab-Package Archives and WoltLab-Package Components
85 lines (84 loc) • 2.2 kB
TypeScript
import { Localization } from "../../Globalization/Localization";
import { BBCodeAttribute } from "./BBCodeAttribute";
import { IBBCodeOptions } from "./IBBCodeOptions";
/**
* Represents a bb-code.
*/
export declare class BBCode {
/**
* The name of the bb-code.
*/
private name;
/**
* The human-readable name of the bb-code.
*/
private displayName;
/**
* The name of a font-awesome icon for the bb-code-button.
*/
private icon;
/**
* The class-name of the bb-code.
*/
private className;
/**
* The name of the HTML-tag.
*/
private tagName;
/**
* A value indicating whether the HTML-tag is self-closing.
*/
private isSelfClosing;
/**
* A value indicating whether the bb-code is a block-element.
*/
private isBlockElement;
/**
* A value indicating whether the content of the bb-code should be parsed.
*/
private parseContent;
/**
* The attributes of the bb-code.
*/
private attributes;
/**
* Initializes a new instance of the `BBCode` class.
*/
constructor(options: IBBCodeOptions);
/**
* Gets or sets the name of the bb-code.
*/
Name: string;
/**
* Gets the human-readable name of the bb-code.
*/
readonly DisplayName: Localization;
/**
* Gets or sets the name of a font-awesome icon for the bb-code-button.
*/
Icon: string;
/**
* Gets or sets the class-name of the bb-code.
*/
ClassName: string;
/**
* Gets or sets the name of the HTML-tag.
*/
TagName: string;
/**
* Gets or sets a value indicating whether the HTML-tag is self-closing.
*/
IsSelfClosing: boolean;
/**
* Gets or sets a value indicating whether the bb-code is a block-element.
*/
IsBlockElement: boolean;
/**
* Gets or sets a value indicating whether the content of the bb-code should be parsed.
*/
ParseContent: boolean;
/**
* Gets the attributes of the bb-code.
*/
readonly Attributes: BBCodeAttribute[];
}