Commit Graph

7 Commits

Author SHA1 Message Date
SilverFire - Dmitry Naumenko
24dae19fc8 ListView: PHPDocs and tests enhanced 2016-12-18 10:56:52 +02:00
SilverFire - Dmitry Naumenko
cdabb660d6 Refactored ListView::beforeItem, ::afterItem. Added Unit tests. 2016-12-18 10:52:12 +02:00
SilverFire - Dmitry Naumenko
0261a5498f Simplified ListViewTest 2016-12-05 22:27:38 +02:00
SilverFire - Dmitry Naumenko
25eafa560e Merge branch '11627-document-and-test-empty-listview' of git://github.com/mytskine/yii2 into mytskine-11627-document-and-test-empty-listview
Conflicts:
	framework/widgets/BaseListView.php
	tests/framework/widgets/ListViewTest.php
2016-12-05 22:19:02 +02:00
SilverFire - Dmitry Naumenko
87f843524e Fixed typo 2016-11-08 23:26:46 +02:00
SilverFire - Dmitry Naumenko
24a5532ca9 Added unit tests for #12750 2016-11-08 23:20:42 +02:00
François Gannaz
7669d60df6 Document and test ListView.showOnEmpty
This addresses #11627 by completing the documentation without changing
the behavior. Some basic unit tests are added on ListView to ensure this
won't change unintentionnally.

That means a ListView widget with an empty provider and
`showOnEmpty=true` will still display an empty element (by default, an
empty "div.list-view").
2016-10-14 15:40:23 +02:00