以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  输入框组怎么定义 ?  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=175339)

--  作者:wh420
--  发布时间:2022/3/1 16:34:00
--  输入框组怎么定义 ?
怎么定义输入框组?
Dim ipg As wb.AddInputGroup= wb.AddInputGroup("","ipg1","默认")  
--  作者:有点蓝
--  发布时间:2022/3/1 16:36:00
--  
Dim ipg = wb.AddInputGroup("","ipg1","默认")  
--  作者:wh420
--  发布时间:2022/3/1 16:50:00
--  
让两个输入框显示在一行中,代码哪有问题。报404错误
Dim wb As New weui
wb.AddForm("","form1","test.htm")
With wb.AddTable("","Table1")
    .head.AddRow("第一列","第二列")
    Dim ipg = wb.AddInputGroup("","ipg1","默认")
    Dim ipg2 = wb.AddInputGroup("","ipg3","默认")
    ipg.AddInput("xm","户名","text")
    ipg2.AddInput("pw","密码","password")
    .body.AddRow(ipg.BuildHtml,"ipg2.BuildHtml")
End With
    e.WriteString(wb.Build)

--  作者:有点蓝
--  发布时间:2022/3/1 17:10:00
--  
weui没有这种用法
--  作者:wh420
--  发布时间:2022/3/1 17:21:00
--  
扩展的EXWEUI就可以使用啊,我想WEUI应该也可以使用啊,老师帮忙看看。下面代码可以让两个加减控件显示在一行,所以我想输入框应该也可以。
Dim e As RequestEventArgs = args(0)
Dim wb As New weui
wb.AppendHTML("<link rel=\'stylesheet\' href=\'./weui/exweui.css\'/>",True)
wb.AppendHTML("<script src=\'./weui/exweui.js\' ></script>")
\'wb.AppendHTML("<style >#ipg1 .weui_cell_hd{display: none;}</style>")
wb.AppendHTML("<style >#ipg1 .weui_label{Width: 50px;}</style>")
wb.AppendHTML("<style >#ipg3 .weui_label{Width: 50px;}</style>")
wb.AddForm("","form1","test.htm")
With wb.AddTable("","Table1")
.head.AddRow("第一列","第二列")
Dim ipg As ExWeUI.ExInputGroup = ExWeUI.WebUI.AddInputGroup("","ipg1","")
Dim ipg2 As ExWeUI.ExInputGroup = ExWeUI.WebUI.AddInputGroup("","ipg3","")
With ipg.AddSpinner("sp01","数量")
.width=80
.Attribute = "style=""width:40px color:blue"""
End With
With  ipg2.AddSpinner("sp02","价值")
.width=80
.Attribute = "style=""width:40px"""
End With
.body.AddRow(ipg.BuildHtml,ipg2.BuildHtml)
End With
wb.AppendHTML("<script>initExWeUI();</script>")
e.WriteString(wb.Build)

--  作者:有点蓝
--  发布时间:2022/3/1 17:25:00
--  
扩展的EXWEUI和WEUI不是一个东西
--  作者:wh420
--  发布时间:2022/3/1 17:27:00
--  
好吧,明白了。
--  作者:有点蓝
--  发布时间:2022/3/1 20:01:00
--  
如果要用,学会分析网页html代码,打开开发者工具里把需要的内容抠出来自己组合