Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
347 views
in Technique[技术] by (71.8m points)

angular - 根据角度6中的条件隐藏相同的行值?(Hide same row value based on condition in angular 6?)

在此处输入图片说明

code for popup,how to write *ngIf condition to hide same row group and display other group .Here i am passing and displaying group, i just need to hide respective request group.

(弹出代码,如何编写* ng如果条件隐藏同一行组并显示其他组。在这里,我正在传递并显示组,我只需要隐藏相应的请求组。)

GroupRequestDesc have all group values.

(GroupRequestDesc具有所有组值。)

 <tr>
    <td *ngFor="let value of GroupRequestDesc;let $index=index " style="padding-right: 15px;">                             
       <label for="checkbox_group2" class="checkbox cb_pad" style="width: 180px;display:inline-block;">
           <input id="checkbox_group2" type="checkbox" value="{{value.nxReqGroupId}}" (change)="checkboxVisibility(value.ReqGroupId,$event)"/><i class="skin"></i><span>{{value.nxReqGroupDesc}}</span>
       </label>
    </td>
<tr>

And here is my function through which I am passing details to the popup for display:

(这是我要通过的功能,将详细信息传递给弹出窗口以进行显示:)

passReqIdforcopytogroup(nxRequestId,solutionData,groupData){
        this.ReqId = RequestId;
        this.ReqGroupId = groupData;
        this.GroupRequestDesc = groupData;
        this.SolutionId = solutionData.SolutionId;
        this.ReqGroupName = solutionData.ReqGroupName;
    }

Here what i am trying to achieve is that when i click on submit button respective request group should not display in next coming popup rest all other group should display in popup.how can i achieve that please someone help me on this.

(在这里我要实现的是,当我单击“提交”按钮时,相应的请求组不应显示在下一个即将到来的弹出窗口中,其余所有其他组都应显示在popup中。我如何才能实现这一点,请有人帮助我。)

On Click of submit I am displaying popup which should display remain group

(在单击提交时,我正在显示弹出窗口,该窗口应显示剩余组)

  ask by user3239587 translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

您可以为此目的使用ng-if


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...