* zin: add open-url class to backBtn element.
This commit is contained in:
@@ -45,4 +45,17 @@ class backBtn extends btn
|
||||
$props['data-back'] = $this->prop('back');
|
||||
return $props;
|
||||
}
|
||||
|
||||
/**
|
||||
* Override the getClassList method.
|
||||
*
|
||||
* @access protected
|
||||
* @return array
|
||||
*/
|
||||
protected function getClassList(): array
|
||||
{
|
||||
$classList = parent::getClassList();
|
||||
$classList['open-url'] = true;
|
||||
return $classList;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ class btn extends wg
|
||||
return $children;
|
||||
}
|
||||
|
||||
private function getClassList()
|
||||
protected function getClassList()
|
||||
{
|
||||
list($url, $type, $caret, $text, $icon, $trailingIcon) = $this->prop(array('url', 'type', 'caret', 'text', 'icon', 'trailingIcon'));
|
||||
$onlyCaret = empty($text) && !empty($caret) && empty($icon) && empty($trailingIcon);
|
||||
|
||||
Reference in New Issue
Block a user