36 $this->_column = $column;
57 $result =
'<div class="admin__grid-control">';
59 :
'<span class="admin__grid-control-value">' . $this->
_getValue($row) .
'</span>';
74 return $this->
render($row);
83 if ($getter = $this->
getColumn()->getGetter()) {
84 if (is_string($getter)) {
85 return $row->{$getter}();
86 }
elseif (is_callable($getter)) {
100 return '<input type="text" class="input-text ' .
105 $this->_getInputValue(
116 return $this->_getValue(
$row);
126 $dir = strtolower($this->
getColumn()->getDir());
127 $nDir = $dir ==
'asc' ?
'desc' :
'asc';
131 $out =
'<th data-sort="' .
133 '" data-direction="' .
135 '" class="data-grid-th _sortable ' .
137 $this->
getColumn()->getHeaderCssClass() .
142 $out =
'<th class="data-grid-th ' .
143 $this->
getColumn()->getHeaderCssClass() .
'"><span>' .
156 $width = $this->_defaultWidth;
159 $customWidth = $this->
getColumn()->getData(
'width');
160 if (
null === $customWidth || preg_match(
'/^[0-9]+%?$/', $customWidth)) {
161 $width = $customWidth;
162 }
elseif (preg_match(
'/^([0-9]+)px$/', $customWidth, $matches)) {
163 $width = (int)$matches[1];
167 if (
null !== $width) {
168 $out .=
' width="' . $width .
'"';
179 return $this->
getColumn()->getCssClass();
elseif(isset( $params[ 'redirect_parent']))
call_user_func($callable, $param)