What is Default Header Cell Template of UI-GRID?

。_饼干妹妹 提交于 2019-12-10 03:54:11

问题


The ng-grid documentation contains default Header Cell Templates (as well as other default templates).

What is the default header cell template for ui-grid?


回答1:


Per the githubs https://github.com/angular-ui/ui-grid/tree/master/packages/core/src/templates/ui-grid

The current default header cell template is

<div ng-class="{ 'sortable': sortable }">
  <!-- <div class="ui-grid-vertical-bar">&nbsp;</div> -->
  <div class="ui-grid-cell-contents" col-index="renderIndex" title="TOOLTIP">
    <span>{{ col.displayName CUSTOM_FILTERS }}</span>

    <span ui-grid-visible="col.sort.direction" ng-class="{ 'ui-grid-icon-up-dir': col.sort.direction == asc, 'ui-grid-icon-down-dir': col.sort.direction == desc, 'ui-grid-icon-blank': !col.sort.direction }">
      &nbsp;
    </span>
  </div>

  <div class="ui-grid-column-menu-button" ng-if="grid.options.enableColumnMenus && !col.isRowHeader  && col.colDef.enableColumnMenu !== false" ng-click="toggleMenu($event)" ng-class="{'ui-grid-column-menu-button-last-col': isLastCol}">
    <i class="ui-grid-icon-angle-down">&nbsp;</i>
  </div>

  <div ui-grid-filter></div>
</div>


来源:https://stackoverflow.com/questions/26226428/what-is-default-header-cell-template-of-ui-grid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!