angular-xml-editor
Version:
XML editor component for Angular
17 lines (16 loc) • 1.06 kB
TypeScript
import { XmlRules } from '../xml-rules-check/xmlRules.class';
export declare class Xml2htmlAttributeWorker {
rules: XmlRules;
static DataAttribPraefix: string;
constructor(rules: XmlRules);
/** writes the given attributes to the html node in data-attribute-syntax **/
writeAllXmlAttributesToHtml(xmlElement: Element, htmlElement: Element): void;
/** writes the given attribute value to the html node in data-attribute-syntax **/
writeAttributeToHtml(htmlElement: Element, key: string, value: string): void;
/** writes the given attribute value from the html node data-attribute-syntax **/
getAttributeValueFromHtml(htmlElement: Element, key: string): string;
/** writes the given attribute value to the xml node (and gets it from the html node from data-attribute-syntax) **/
writeAllHtmlAttributesToXml(htmlElement: Element, xmlElement: Element): void;
/** updates the 'for human eyes' only description of the attributes inside a html node **/
private updateAttributesDescriptionInHtmlElement;
}