Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Button Extension - HTML in buttons text property #629

Closed
wants to merge 2 commits into from

Conversation

yoshi-1
Copy link

@yoshi-1 yoshi-1 commented Jun 8, 2017

Hi,
i suggest to change the default html escaping of the buttons text in the twig template, so that it's possible to use html tags for styling the text eg. with an icon like this:

$this->extensions->set(array(

       		'buttons' => array(
            	'create_buttons' => array(
                	array(
                    	'action' => array(
                        	'template' => ':post:action.js.twig',
                        	//'vars' => array('id' => '2', 'test' => 'new value'),
                    	),
                    	'text' => '<i class="fa fa-plus"></i> New',
                	),
            	),
       		),
        ));

@stephanvierkant
Copy link
Collaborator

You've created a pull request from your master branch, so this PR contains a commit from another one as well.

@yoshi-1
Copy link
Author

yoshi-1 commented Oct 12, 2017

You're right, my fault. I created a new PR #696
Thank you @stephanvierkant

@yoshi-1 yoshi-1 closed this Oct 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants