sharepoint spfx web部分与jquery datatable添加行 [英] sharepoint spfx web part with jquery datatable add row
问题描述
我看过这个教程https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/guidance/migrate-jquery-datatables-script-to-spfx.
我想知道如何将新行添加到jquery数据表中,并从右侧窗格输入数据!
我可以这样做吗?
PS:我使用的是sharepoint online而不是sharepoint 2013
Thk
你的意思是右下方的窗格吗?它用于Web部件属性配置,不用于数据操作。
如果要动态创建新数据行,则应设计数据表单,以便用户可以输入数据然后绑定到数据表(您还需要保存到SharePoint列表)。
以下是供您参考的链接。
http://infra.clarin.eu/content/libs/DataTables-1.10.6/examples/api/add_row.html
最好的问候,
Lee 跨度>
I saw this tutorial https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/guidance/migrate-jquery-datatables-script-to-spfx.
And I wonder how to add new row to jquery datatable with data enter from right pane!
Can I do this?
PS: I used sharepoint online not sharepoint 2013
Thk
Hi,
Do you mean below right pane? It’s used for web part properties configuration, not used for data manipulation.
If you want to create new data row dynamically, you should design a data form so user could input the data and then bind to data table(you need save to SharePoint list also).
Here is one link for your reference.
http://infra.clarin.eu/content/libs/DataTables-1.10.6/examples/api/add_row.html
Best Regards,
Lee
这篇关于sharepoint spfx web部分与jquery datatable添加行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!