bubasuma\simplechat\ConversationWidget::registerJs PHP Method

registerJs() public method

public registerJs ( )
    public function registerJs()
    {
        $id = $this->options['id'];
        $options = Json::htmlEncode($this->clientOptions);
        $user = Json::htmlEncode($this->user);
        $current = Json::htmlEncode($this->current);
        $view = $this->getView();
        ConversationAsset::register($view);
        $view->registerJs("jQuery('#{$id}').yiiSimpleChatConversations({$user}, {$current}, {$options});");
    }