ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: SHIN WOOCHUL on September 05, 2019, 11:58:09 am
-
I merged Cell then my inner object like button,check box is located cell top.
I set column style align : center then it moved center, but It still vertical top.
So, I set css like this
.pq-merge-cell {
padding-top : 6vh;
}
but it make cell ugly and It is not same location what height difference;
So If you have good method to set vertical middle
please answer me
-
you can use column render method to add additional internal div to a merge cell and then vertical align with css.
columnTemplate:{render: function(ui){
if(ui.cls.indexOf('pq-merge-cell')>=0) //check for merge cell.
return "<div>"+ui.formatVal+"</div>";
}},
<style>
.pq-merge-cell div{
position: relative;
top: 50%;
transform: translateY(-50%);
}
</style>
-
Thank you so much, It works , Your solution is good!!!
You're advice make me more better programmer