Hello
I am trying to find a way to define linkaction's using only a Symb.ly icon.
Is it possible?
In the attached file a sketch of the desired final result.
6 replies to this topic
#2
Posted 04 June 2012 - 02:11 PM
Hi,
You could leave the A tag empty and the CSS would take care of the rest, you'll need to give them class names according to the ones which appear in newui.css around line 5057 (.icon-N).
Have a look at my answer here http://zurmo.org/for...g-class-values/ which gives a more in depth explanation.
You could leave the A tag empty and the CSS would take care of the rest, you'll need to give them class names according to the ones which appear in newui.css around line 5057 (.icon-N).
Have a look at my answer here http://zurmo.org/for...g-class-values/ which gives a more in depth explanation.
#3
Posted 04 June 2012 - 02:37 PM
I do not understand , sorry....
This case is not the same as in the related post (Which I tested and works)
When we create an action the code is something like this
Where exactly have i got to include the class name?
Thanks
This case is not the same as in the related post (Which I tested and works)
When we create an action the code is something like this
class CreateLinkActionElement extends LinkActionElement
{
public function getActionType()
{
return 'Create';
}
protected function getDefaultLabel()
{
return Yii::t('Default', 'Create');
}
protected function getDefaultRoute()
{
$params = array();
if (Yii::app()->request->getParam('redirectUrl') != null)
{
$params = array_merge($params, array('redirectUrl' => Yii::app()->request->getParam('redirectUrl')));
}
elseif ($this->getRedirectUrl() != null)
{
$params = array_merge($params, array('redirectUrl' => $this->getRedirectUrl()));
}
return Yii::app()->createUrl($this->moduleId . '/' . $this->controllerId . '/create/', $params);
}
}
Where exactly have i got to include the class name?
<a class="icon-delete" href="/index.php/home/default/DeleteDashboard?dashboardId=3" id="yt0">Delete Dashboard</a>
Thanks
#4
Posted 05 June 2012 - 12:12 PM
Hello
I tried to change the class attribute in the view , but as soon as the class is different from 'simple-select' the green cross appears at the left of the text but not the expected icon.
but if we inspect the HTML code it seems o.k
Any ideas?
I tried to change the class attribute in the view , but as soon as the class is different from 'simple-select' the green cross appears at the left of the text but not the expected icon.
array('type' => 'ColorDeleteAllFromRelatedListLink'
'htmlOptions' => array
'class' => 'icon-edit')
),
but if we inspect the HTML code it seems o.k
<a id="SelectColorsForColorChartFromRelatedListLinks" class="icon-edit" href="#">seleccionar</a>
Any ideas?
Also tagged with one or more of these keywords: LinkAction, icon, Symb.ly
Zurmo Discussions →
Tips and Tutorials →
Define Icons using class valuesStarted by k1000o, 29 May 2012 |
|
|
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users










