网格HTML应用程序 [英] Grid For HTML app

查看:84
本文介绍了网格HTML应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为Android使用PhoneGap,HTML5制作一个应用程序。我需要使用一个应该有一个网格的文本框和一个按钮的UI

I'm trying to make an app for android using PhoneGap,HTML5. I need to use an UI that should have one grid two text boxes and one button

我的方案是textbox1是一个 自动填充 用户可以选择然后在下一个文本框中的一个产品,即textbox2用户应该在该用户应该点击按钮(称为ADD)之后给出数量(选择的产品数量),然后这些项目需要附加到网格,网格应当具有4列( 1.Sl.No,2.Product Name,3.Quanity,4.Delete / Edit

My scenario is textbox1 is an autocomplete which is filled with some product names user can select a product then in the next textbox ie textbox2 user should give the quantity(selected products quantity) after this user should click on the button (called ADD) then these items need to appends to the grid the grid should have 4 columns (1.Sl.No,2.Product Name,3.Quanity,4.Delete/Edit)

我搜索了大部分可用的例子是直接从服务器填充数据。我找不到一个适合我的需要。

I've searched a lot most of the available examples are directly filling data from the server.I couldn't find one suits my needs.

帮助/建议非常感谢

推荐答案

是数据源 textbox1 脚本?无论哪种方式, jQuery UI Autocomplete 将完美匹配您的需求。

Is the datasource textbox1 remote or embedded in your script? Either way, jQuery UI Autocomplete would be a perfect match to your need.

对于你的数据表(又称grid),它似乎没有太多的功能,所以你可以简单地使用< table> 在HTML中并使用jQuery来播放其中的数据。如果您需要更多特色功能第三方数据库(例如 https://www.datatables.net/ )会很好。

For your data table (a.k.a "grid"), it doesn't seem to have much feature so you can simply use a <table> tag in HTML and use jQuery to play with the data inside it. If you need more fancy features a 3rd-party datatable library (e.g. https://www.datatables.net/) would be good.

这篇关于网格HTML应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆