Skip to content

Commit 917a00c

Browse files
save file
1 parent 66551e5 commit 917a00c

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
## Description
2+
3+
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-editor 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+
initmod|standard function for importing local dependencies
46+
init|standard initialisation function
47+
initdom|standard function to setup the dom
48+
|
49+
|
50+
write|write to the console, without adding a newline character at the end of the output
51+
json|write json stringified output to the console
52+
|
53+
|
54+
assert|
55+
clear|clear the console
56+
count|
57+
countReset|
58+
debug|write debug information to the console
59+
dir|
60+
dirxml|
61+
error|display error information in the console
62+
group|
63+
groupCollapsed|
64+
groupEnd|
65+
info|
66+
log|log data to the console
67+
profile|
68+
profileEnd|
69+
table|
70+
time|
71+
timeEnd|
72+
timeLog|
73+
timeStamp|
74+
trace|
75+
warn|display warn information in the console
76+
|
77+
|
78+
test|display test data in the console, for quick tests
79+
80+

0 commit comments

Comments
 (0)