You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The web-console provides a console ( like dev tools ) in a webpage
4
+
5
+
6
+
## Include
7
+
8
+
```
9
+
10
+
<web-console component></web-console>
11
+
12
+
```
13
+
14
+
## initmod
15
+
16
+
17
+
name | description
18
+
----------|------------
19
+
$ | the dom helper library
20
+
ace | a global reference to ace editor, otherwise each instance of the web-console will load its own ace editor, specifying this ensures its only loaded once
21
+
embed | allows reading the supported attributes from another node
22
+
config | config parameters, see below
23
+
echo | whether to echo the output to the dev tools console
24
+
25
+
26
+
## api
27
+
28
+
### attribute
29
+
30
+
these attribute can be defined on the html tag itself
31
+
32
+
attribute | description
33
+
--------- |-----------
34
+
fullsize | the console will keep expanding to show all content
35
+
h \| height | sets the height of the console
36
+
37
+
38
+
### module
39
+
40
+
methods without a description are not currently implmented and are passed through to dev tools
41
+
42
+
43
+
name|description
44
+
---|---
45
+
**standard** |
46
+
initmod|standard function for importing local dependencies
47
+
init|standard initialisation function
48
+
initdom|standard function to setup the dom
49
+
|
50
+
**console** |
51
+
assert|
52
+
clear|clear the console
53
+
count|
54
+
countReset|
55
+
debug|write debug information to the console
56
+
dir|
57
+
dirxml|
58
+
error|display error information in the console
59
+
group|
60
+
groupCollapsed|
61
+
groupEnd|
62
+
info|
63
+
log|log data to the console
64
+
profile|
65
+
profileEnd|
66
+
table|
67
+
time|
68
+
timeEnd|
69
+
timeLog|
70
+
timeStamp|
71
+
trace|
72
+
warn|display warn information in the console
73
+
|
74
+
**extended** |
75
+
write|write to the console, without adding a newline character at the end of the output
76
+
json|write json stringified output to the console
77
+
|
78
+
|
79
+
test|display test data in the console, for quick tests
0 commit comments