2017 © Pedro Peláez
 

yii2-extension yii2-textareaautosize

Yii2 textareaautosize Widgets

image

philippfrenzel/yii2-textareaautosize

Yii2 textareaautosize Widgets

  • Thursday, October 8, 2015
  • by philippfrenzel
  • Repository
  • 0 Watchers
  • 0 Stars
  • 654 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 6 Forks
  • 1 Open issues
  • 7 Versions
  • 1 % Grown

The README.md

yii2-textareaautosize

JQuery Fullcalendar Yii2 Extension JQuery from: http://arshaw.com/fullcalendar/ Version 2.1.1 License MIT, (*1)

JQuery Documentation: http://arshaw.com/fullcalendar/docs/ Yii2 Extension by philipp@frenzel.net, (*2)

A tiny sample can be found here: http://yii2textareaautosize.beeye.org, (*3)

Latest Stable Version Build Status Code Climate Version Eye License, (*4)

Installation

Package is although registered at packagist.org - so you can just add one line of code, to let it run!, (*5)

add the following line to your composer.json require section:, (*6)

  "philippfrenzel/yii2-textareaautosize":"*",

And ensure, that you have the follwing plugin installed global:, (*7)

php composer.phar global require "fxp/composer-asset-plugin:~1.0", (*8)

Changelog

29-11-2014 Updated to latest 2.2.3 Version of the library, (*9)

Usage

Quickstart Looks like this:, (*10)

  <?= net\frenzel\textareaautosize\yii2textareaautosize::widget([
      'model'=> $model,
      'attribute' => 'fieldname',
  ]);

  //or to use with form

  echo $form->field($model, 'amount')->widget(net\frenzel\textareaautosize\yii2textareaautosize::classname(), [
      --options--
  ]);

Minimum CSS Requirements

The only requirement is to set box-sizing: border-box and a min-height on the textarea. In the example below, the minimum height is one line of text which is determined from the base font size, line height, and vertical padding and border., (*11)

textarea {
  box-sizing: border-box;
  max-height: 94px; /* optional, but recommended */
  min-height: 31px;
  overflow-x: hidden; /* for Firefox (issue #5) */
}

Increase the min-height to have more initial rows. Once text exceeds that minimum height the textarea will expand naturally. The overflow-x setting is for Firefox to prevent an initial additional line from appearing., (*12)

The Versions

08/10 2015

dev-master

9999999-dev http://www.frenzel.net/

Yii2 textareaautosize Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 textareaautosize

08/10 2015

1.1.2

1.1.2.0 http://www.frenzel.net/

Yii2 textareaautosize Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 textareaautosize

08/10 2015

1.2.0

1.2.0.0 http://www.frenzel.net/

Yii2 textareaautosize Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 textareaautosize

08/10 2015

1.1.1

1.1.1.0 http://www.frenzel.net/

Yii2 textareaautosize Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 textareaautosize

08/10 2015

1.1.0

1.1.0.0 http://www.frenzel.net/

Yii2 textareaautosize Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 textareaautosize

12/03 2015

1.0.0

1.0.0.0 http://www.frenzel.net/

Yii2 textareaautosize Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 textareaautosize

07/03 2015

0.1.0

0.1.0.0 http://www.frenzel.net/

Yii2 textareaautosize Widgets

  Sources   Download

MIT

The Requires

 

The Development Requires

yii2 textareaautosize