Search Posts

Category: dynamic

How to display sum of particular column from Array of Object which is having dynamic columns using Angularjs dynamically

How to display sum of particular column from Array of Object which is having dynamic columns using Angularjs dynamicallyDynamic Table Data Earning Columns and deductions heads will be dynamic .. <table> <thead> <tr> <th rowspan=”2″>Sl.No</th> <th rowspan=”2″>Employee Code</th> <th rowspan=”2″>Employee Name</th> <th rowspan=”2″>Worked Days</th> <th rowspan=”2″>Days (LOP)</th> <th colspan=”{{earnlen}}”>Earnings</th> <th rowspan=”2″>Gross Earning</th> <th colspan=”{{dedlen}}”>Deductions</th> <th rowspan=”2″>Gross Deduction</th> <th rowspan=”2″>Net Salary</th> </tr> <tr> <th ng-repeat=”earncolumn in earningheadlist”>{{earncolumn.hrmeD_Name}}</th> <th ng-repeat=”dedcolumn in deductionheadlist”>{{dedcolumn.hrmeD_Name}}</th> </tr> </thead> <tbody> <tr ng-repeat=”employee […]