mazdik / ng-mazdik

Angular UI component library
https://mazdik.github.io/ng-mazdik
MIT License
89 stars 34 forks source link

cell font-size,can your add font-size&line-height binding? #22

Closed huangwei16800 closed 5 years ago

huangwei16800 commented 5 years ago

can you add @HostBinding('style.font-size.px') and line-height ? we can define the cell font-size and line-height , so ,function same as Powerbuilder ( DataWindow) because I make ng-curd-table to web elements, no need setting global css

dt-body-cell-edit tabindex="-1" ng-reflect-table="[object Object]" ng-reflect-cell="[object Object]" class="datatable-body-cell dt-sticky" role="gridcell" data-column-index="1" data-row-index="0" style="line-height: 1.3;font-size:12px;width: 200px; left: 140px;"

huangwei16800 commented 5 years ago

if not define font-size,default null,use global body.font-size. if define, use body-cell 's font-size style

mazdik commented 5 years ago

try as in these examples: sample1 sample2

<app-crud-table class="your-custom-class" [dataManager]="dataManager"></app-crud-table>
.your-custom-class .datatable-body-cell {}