2017 © Pedro Peláez
 

yii2-extension yii2-text-area-tokens

Text area with clickable tokens for Yii2 forms

image

mmedojevicbg/yii2-text-area-tokens

Text area with clickable tokens for Yii2 forms

  • Tuesday, February 9, 2016
  • by mmedojevicbg
  • Repository
  • 1 Watchers
  • 3 Stars
  • 107 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

Text Area Tokens - Yii2 extension

This is drop-in replacement for textarea form element. It provides tokens below form element. Text is automatically inserted into textarea by clicking one of tokens., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist mmedojevicbg/yii2-text-area-tokens "dev-master"

or add, (*4)

"mmedojevicbg/yii2-text-area-tokens": "dev-master"

to the require section of your composer.json file., (*5)

Usage

echo TextAreaTokens::widget(['model' => $model,
                             'attribute' => 'textfield1',
                             'tokens' => ['first_name', 'last_name', 'phone_number'],
                             'options' => ['rows' => 8, 'cols' => 100]])

The Versions

09/02 2016

dev-master

9999999-dev

Text area with clickable tokens for Yii2 forms

  Sources   Download

GPL-3.0+

The Requires

 

by Marko Medojevic

extension yii2 form textarea tokens