HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
example.callbacks_passing.php
Go to the documentation of this file.
1 <?php // Basic usage of TbRedactorJs widget
2 $this->widget(
3  'booster.widgets.TbRedactorJs',
4  [
5  'name' => 'fancy_text',
6  'value' => 'Press Enter in here to test the callback.',
7  'editorOptions' => [
8  'enterCallback' => new CJavaScriptExpression(
9  'function (event) {
10  console.debug(event);
11  $.notify("I see you have pressed Enter...", "warning");
12  }'
13  )
14  ],
15  ]
16 );