Skip to content

Commit

Permalink
Added new component console.log().
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Oct 3, 2023
1 parent cb67892 commit a2a10a4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions components/consolelog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<script total>

exports.id = 'consolelog';
exports.name = 'console.log()';
exports.icon = 'ti ti-print';
exports.author = 'Total.js';
exports.version = '1';
exports.group = 'Common';
exports.config = {};
exports.inputs = [{ id: 'input', name: 'Input' }];

exports.make = function(instance) {
instance.message = function($) {
console.log($.data);
$.destroy();
};
};

</script>

<readme>
This component prints a message into the console.
</readme>

<body>
<header>
<i class="ICON"></i>NAME
</header>
</body>

0 comments on commit a2a10a4

Please sign in to comment.