-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom icon to FormButton element
Since in this module removed 'fontAwesome' and 'glyphicon' view helpers there are problem with icon assigning to buttons appeared. In this commit i added a support to assign an icon to FormButton element via direct tag providing in element config. Supported 2 variants: 1. By providing a scalar value containing tag 'element' => [ 'name' => 'button', 'type' => Button::class, 'options' => [ 'label' =>'button', 'icon' => '<i class="fas fa-cogs"></i>' ] ] 2. By providing an array: 'element' => [ 'name' => 'button', 'type' => Button::class, 'options' => [ 'label' => 'button', 'icon' => [ 'icon' => '<i class="fas-fa-cogs"></i>', 'position' => 'prepend' ] ] ]
- Loading branch information
Андрей Чешуин
authored and
Андрей Чешуин
committed
Feb 8, 2019
1 parent
71feda8
commit 0a36522
Showing
1 changed file
with
45 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters