Skip to content

Comments

console_table operation#125

Merged
leastbad merged 1 commit intostimulusreflex:masterfrom
leastbad:console_table
May 15, 2021
Merged

console_table operation#125
leastbad merged 1 commit intostimulusreflex:masterfrom
leastbad:console_table

Conversation

@leastbad
Copy link
Contributor

Implements https://developer.mozilla.org/en-US/docs/Web/API/Console/table as an operation.

Options:

  • data
  • columns

Anything passed to data is sent into the table. It expects an array or object, but fails very gracefully.
Columns defaults to [] and must be an array of strings if passed.

cable_ready.console_table(data: [{marco: 5, nate: 2}, {marco:4, nate: 6}], columns: ['marco']).broadcast

chrome_1JoQAFw3hE

Thanks to @MatheusRich for the idea!

@leastbad leastbad added enhancement proposal javascript Pull requests that update Javascript code labels May 15, 2021
Copy link
Contributor

@hopsoft hopsoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it

@leastbad leastbad merged commit 247e09f into stimulusreflex:master May 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement javascript Pull requests that update Javascript code proposal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants