2017 © Pedro Peláez
 

library yii2-jswidget

Outputs javascript code using yii\web\View::registerJs().

image

xbazilio/yii2-jswidget

Outputs javascript code using yii\web\View::registerJs().

  • Friday, December 5, 2014
  • by xBazilio
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

JSWidget for Yii2

What is this?

A simple widget to wrap your javascript code and output it in specified position of the rendered page., (*1)

Installation

composer require "xbazilio/yii2-jswidget":"1.0.0"

Usage

By default it outputs code in the yii\web\View::POS_END. Pass position parameter if you want to change this behaviour., (*2)











If there are two widgets with the same id, the later will take precedence and overwrite the former, (*3)



 'test']); ?>







 'test']); ?>







Only 'test overwritten' will be logged., (*4)

The Versions

05/12 2014

dev-master

9999999-dev

Outputs javascript code using yii\web\View::registerJs().

  Sources   Download

MIT

by Vasiliy Rumyantsev

05/12 2014

1.0.0

1.0.0.0

Outputs javascript code using yii\web\View::registerJs().

  Sources   Download

MIT

by Vasiliy Rumyantsev