zoukankan      html  css  js  c++  java
  • 【新特性速递】数字输入框的前缀和后缀(位于输入框内部)

    FineUIPro/Mvc/Core的下个版本(v6.4.0),我们会为NumberBox控件增加NumberPrefix和NumberSuffix。

    之前的版本是支持表单字段的前缀和后缀,如下所示:

    其中【美元金额】表单字段的标签定义如下所示(注意是:Prefix属性):

    <f:NumberBox Label="美元金额" ID="NumberBox6"
    	NoDecimal="true" NoNegative="true" Required="true" 
    	EnablePrefix="true" Prefix="$" runat="server" />
    

      

    https://pro.fineui.com/#/form/form_prefix_suffix.aspx

    对于数字输入框,如果能把 $ 符号放到输入框内部岂不是更好?这也就有了今天要介绍的更新(注意是:NumberPrefix属性):

    <f:NumberBox Label="美元" ID="NumberBox2" NoDecimal="true" 
    	NoNegative="true" Text="100000" EnableCommas="true" Required="true" 
    	ShowRedStar="true" runat="server" NumberPrefix="$ " />
    

    显示效果如下所示:

    欢迎入伙:https://fineui.com/fans/

    三石出品,必属精品 

  • 相关阅读:
    csp-s模拟103
    csp-s模拟102
    csp-s模拟101
    csp-s模拟100
    csp-s模拟99
    csp-s模拟98
    csp-s模拟97
    csp-s模拟96
    csp-s模拟95
    csp-s模拟94
  • 原文地址:https://www.cnblogs.com/sanshi/p/13152479.html
Copyright © 2011-2022 走看看