|
@@ -539,7 +539,8 @@ You can :
|
|
- `header_style`: Customize the style of header (width, color, background, align...)
|
|
- `header_style`: Customize the style of header (width, color, background, align...)
|
|
- `header_class`: Customize the class of the header
|
|
- `header_class`: Customize the class of the header
|
|
- `collapse`: Allow to collapse long text fields with a "read more" link
|
|
- `collapse`: Allow to collapse long text fields with a "read more" link
|
|
-- `row_align`: Customize the alignment of the rendered inner cells
|
|
|
|
|
|
+- `row_align`: Customize the alignment of the rendered inner cells
|
|
|
|
+- `label_icon`: Add an icon before label
|
|
|
|
|
|
.. code-block:: php
|
|
.. code-block:: php
|
|
|
|
|
|
@@ -559,6 +560,9 @@ You can :
|
|
'header_style' => 'width: 35%',
|
|
'header_style' => 'width: 35%',
|
|
'collapse' => true
|
|
'collapse' => true
|
|
)
|
|
)
|
|
|
|
+ ->add('upvotes', null, array(
|
|
|
|
+ 'label_icon' => 'fa fa-thumbs-o-up'
|
|
|
|
+ )
|
|
->add('actions', null, array(
|
|
->add('actions', null, array(
|
|
'header_class' => 'customActions',
|
|
'header_class' => 'customActions',
|
|
'row_align' => 'right'
|
|
'row_align' => 'right'
|
|
@@ -583,7 +587,16 @@ If you want to customise the `collapse` option, you can also give an array to ov
|
|
)
|
|
)
|
|
// ...
|
|
// ...
|
|
|
|
|
|
|
|
+If you want to show only the `label_icon`:
|
|
|
|
+
|
|
|
|
+.. code-block:: php
|
|
|
|
|
|
|
|
+ // ...
|
|
|
|
+ ->add('upvotes', null, array(
|
|
|
|
+ 'label' => false,
|
|
|
|
+ 'label_icon' => 'fa fa-thumbs-o-up'
|
|
|
|
+ )
|
|
|
|
+ // ...
|
|
|
|
|
|
.. _`issues on GitHub`: https://github.com/sonata-project/SonataAdminBundle/issues/1519
|
|
.. _`issues on GitHub`: https://github.com/sonata-project/SonataAdminBundle/issues/1519
|
|
|
|
|