Skip to content

Commit a4d8720

Browse files
committed
display popup icon before the column caption
1 parent 86109e0 commit a4d8720

2 files changed

Lines changed: 10 additions & 16 deletions

File tree

public/agileui.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ footer.atk-footer {
7373

7474
// table dropdown menu
7575
.atk-table-dropdown {
76-
margin-top: -10px;
76+
margin-top: -8px;
77+
float: left;
7778
i {
7879
opacity: 0.3;
7980
vertical-align: bottom;
@@ -97,7 +98,6 @@ footer.atk-footer {
9798
}
9899

99100
.atk-table-column-header {
100-
padding-bottom: 4px;
101101
&:after {
102102
//display: none;
103103
font-style: normal;

src/TableColumn/Generic.php

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -331,22 +331,16 @@ public function getHeaderCellHTML(\atk4\data\Field $f = null, $value = null)
331331

332332
if ($this->hasHeaderAction) {
333333
$attr = array_merge($attr, ['id' => $this->name.'_th']);
334-
$tag = $this->getTag(
335-
'head',
336-
[$captionHtmlTag,
337-
$this->headerActionTag,
338-
],
339-
$attr
340-
);
341-
} else {
342-
$tag = $this->getTag(
343-
'head',
344-
[$captionHtmlTag],
345-
$attr
346-
);
334+
335+
//add the action tag to the caption
336+
$captionHtmlTag[2] = [$captionHtmlTag[2], $this->headerActionTag];
347337
}
348338

349-
return $tag;
339+
return $this->getTag(
340+
'head',
341+
[$captionHtmlTag],
342+
$attr
343+
);
350344
}
351345

352346
/**

0 commit comments

Comments
 (0)