Skip to content

Commit 6460284

Browse files
authored
Merge pull request #6 from snowak-cb/add-setBusy-method
Add setBusy method to block command input programmatically
2 parents 72cdc93 + e509c58 commit 6460284

12 files changed

+14
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Properties you can pass to the console element
7171
| logX | (type: string, ...messages: any)=>void | Log messages of a particular type to the console. The messages will be given the class `react-console-message-{type}`.
7272
| logTable | (tableObject: Object[, type: string])=>void | Log tabular data to the console. `tableObject` has the format `{ headers: ['header 1', 'header 2'], rows: [['row 1, col 1', 'row 1, col 2'], ['row 2, col 1', 'row 2, col 2']]}`. `headers` is optional. Rows can also contain objects which will be output as JSON strings or according to the `type: link` rules listed above. The optional `type` argument will be handled the same as in `logX`
7373
| return | ()=>void | Signal the current command has finished and a new prompt should be displayed.
74+
| setBusy | ()=>void | Block user input as though a command is being handled.
7475
| clearScreen | ()=>void | Clear the visible log in the console. Does not clear command history.
7576

7677

dist/dist-min.tar.gz

110 Bytes
Binary file not shown.

dist/dist-min.zip

117 Bytes
Binary file not shown.

dist/dist-min/react-console.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dist-min/react-console.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dist.tar.gz

74 Bytes
Binary file not shown.

dist/dist.zip

73 Bytes
Binary file not shown.

dist/dist/react-console.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dist/react-console.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react-console.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)