簡體   English   中英

angular-ui-grid:左側加號圖標(可擴展行)-如何將其更改為右側

[英]angular-ui-grid: plus icon (expandable row) at left side - how to change it to right side

我正在使用具有expandrow功能的ui-grid來自ui-grid網站的演示 )。

因為我的語言是RTL,所以加號圖標顯示在右側

我需要加號圖標的位置在左側(體系結構請求)

任何想法我該怎么做

謝謝

我看了一下github上的源代碼。

您應該嘗試編輯參數: $ scope.gridOptions.rowTemplate

如果您檢查文件@ https://raw.githubusercontent.com/angular-ui/bower-ui-grid/master/ui-grid.js ,您將看到:

  /** * @ngdoc string * @name rowTemplate * @propertyOf ui.grid.class:GridOptions * @description 'ui-grid/ui-grid-row' by default. When provided, this setting uses a * custom row template. Can be set to either the name of a template file: * <pre> $scope.gridOptions.rowTemplate = 'row_template.html';</pre> * inline html * <pre> $scope.gridOptions.rowTemplate = '<div style="background-color: aquamarine" ng-click="grid.appScope.fnOne(row)" ng-repeat="col in colContainer.renderedColumns track by col.colDef.name" class="ui-grid-cell" ui-grid-cell></div>';</pre> * or the id of a precompiled template (TBD how to use this) can be provided. * </br>Refer to the custom row template tutorial for more information. */ baseOptions.rowTemplate = baseOptions.rowTemplate || 'ui-grid/ui-grid-row'; 

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM