Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要创建具有唯一名称的动态弹性表。
考虑这个例子,
FlexTable ft1= new FlexTable(); FlexTable ft2= new FlexTable(); FlexTable ft3= new FlexTable(); FlexTable ft4= new FlexTable();
我希望使用唯一的名称创建每个弹性表。如何动态完成?
每个小部件的选项:
ft1.getElement().setId("id1"); ft1.getElement().setPropertyString("name", "name1"); ft1.getElement().setAttribute("name", "name1");