-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhtml.d.ts
More file actions
87 lines (77 loc) · 2.04 KB
/
Copy pathhtml.d.ts
File metadata and controls
87 lines (77 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/**
*
*/
export declare class HtmlWriter {
/**
* @private
* @type {Array}
*/
public bufferedAttributes: any[];
/**
* @private
* @type {Array}
*/
public bufferedTags: string[];
/**
* and clear buffer
*/
public buffer: string;
/**
* Writes an attribute to an array of attributes that is going to be used in writeBeginTag function
* @param {String} name - The name of the HTML attribute
* @param {String} value - The value of the HTML attribute
* @returns {HtmlWriter}
* @param name
* @param value
* @return
*/
public writeAttribute(name: string, value: string): /* HtmlWriter.prototype.+HtmlWriter */ any;
/**
* Writes an array of attributes to the output buffer. This attributes are going to be rendered after writeBeginTag or WriteFullBeginTag function call.
* @param {Array|Object} obj - An array of attributes or an object that represents an array of attributes
* @returns {HtmlWriter}
* @param obj
* @return
*/
public writeAttributes(obj: any[] | {}): /* !this */ any;
/**
* @param {String} tag
* @returns {HtmlWriter}
* @param tag
* @return
*/
public writeBeginTag(tag: string): /* !this */ any;
/**
* Writes a full begin HTML tag (e.g <div/>).
* @param {String} tag
* @returns {HtmlWriter}
* @param tag
* @return
*/
public writeFullBeginTag(tag: string): /* !this */ any;
/**
* Writes an end HTML tag (e.g </div>) based on the current buffered tags.
* @returns {HtmlWriter}
* @return
*/
public writeEndTag(): /* !this */ any;
/**
* @param {String} s
* @returns {HtmlWriter}
* @param s
* @return
*/
public writeText(s: string): /* !this */ any;
/**
* @param {String} s
* @returns {HtmlWriter}
* @param s
* @return
*/
public write(s: string): /* !this */ any;
/**
* @param {function} fn
* @param fn
*/
public writeTo(fn: any): void;
}