如何隐藏属性名称

huangapple go评论59阅读模式
英文:

How to hide the Property name

问题

以下是翻译好的代码部分:

<abp-table hoverable-rows="true" responsive-sm="true">
    <tbody>
        <tr>
            <td></td>
            <td>% RINCARO</td>
        </tr>
        <tr>
            <td>SENZA Agente</td>
            <td><abp-input readonly="true" asp-for="@Model.Rincaro.SenzaAgente"></abp-input></td>
        </tr>
        <tr>
            <td>CON Agente</td>
            <td><abp-input readonly="true" asp-for="@Model.Rincaro.ConAgente"></abp-input></td>
        </tr>
    </tbody>
</abp-table>

请注意,已经按原样保留了代码部分,没有进行翻译。

英文:

It's a lot that I used MVC but I need to create a widget using Abp.IO,
What I currently got is

如何隐藏属性名称

But I want to hide this SenzaAgente and ConAgente, I think this is generated since I use abp-input and it get the value of the property, does exist a way of hiding it and gaining the space (The SENZA Agente on the left should be on the same line of the number)

The code I used is

<abp-table hoverable-rows="true" responsive-sm="true">
    <tbody>
        <tr>
            <td></td>
            <td>% RINCARO</td>
        </tr>
        <tr>
            <td>SENZA Agente</td>
            <td><abp-input readonly="true" asp-for="@Model.Rincaro.SenzaAgente"></abp-input></td>
        </tr>
        <tr>
            <td>CON Agente</td>
            <td><abp-input readonly="true" asp-for="@Model.Rincaro.ConAgente"></abp-input></td>
        </tr>
    </tbody>
</abp-table>

答案1

得分: 4

您可以使用 suppress-label="true" 属性
英文:

You can use suppress-label="true" attribute

<abp-table hoverable-rows="true" responsive-sm="true">
    <tbody>
        <tr>
            <td></td>
            <td>% RINCARO</td>
        </tr>
        <tr>
            <td>SENZA Agente</td>
            <td><abp-input suppress-label="true" readonly="true" asp-for="@Model.Rincaro.SenzaAgente"></abp-input></td>
        </tr>
        <tr>
            <td>CON Agente</td>
            <td><abp-input suppress-label="true" readonly="true" asp-for="@Model.Rincaro.ConAgente"></abp-input></td>
        </tr>
    </tbody>
</abp-table>

huangapple
  • 本文由 发表于 2023年2月18日 21:51:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/75493786.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定