Skip to content

Commit

Permalink
add onClearLog
Browse files Browse the repository at this point in the history
  • Loading branch information
Maizify committed Dec 27, 2017
1 parent 81a0e77 commit cb8d301
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/public_properties_methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Key | Type | Optional | Default value
-------------- | -------- | -------- | ------------------------------------------- | -------------------
defaultPlugins | Array | true | ['system', 'network', 'element', 'storage'] | Listed built-in plugins will be inited and loaded into vConsole.
onReady | Function | true | | Trigger after vConsole is inited and default plugins is loaded.
onClearLog | Function | true | | Trigger after click "Clear" button in Log and System panel.
maxLogNumber | Number | true | 1000 | Overflow logs will be removed from log tabs.

Example:
Expand Down
1 change: 1 addition & 0 deletions doc/public_properties_methods_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ vConsole.version // => "3.0.0"
-------------- | -------- | -------- | ------------------------------------------- | -------------------
defaultPlugins | Array | true | ['system', 'network', 'element', 'storage'] | 需要自动初始化并加载的内置插件。
onReady | Function | true | | 回调方法,当 vConsole 完成初始化并加载完内置插件后触发。
onClearLog | Function | true | | 回调方法,点击 Log 或 System 面板的 "Clear" 按钮后出发。
maxLogNumber | Number | true | 1000 | 超出上限的日志会被自动清除。

例子:
Expand Down

0 comments on commit cb8d301

Please sign in to comment.