我是vstify js的新手。我已经开始使用它并需要你的帮助来完成右侧菜单中的子菜单。请参照附件。 我正在向左边的那个人用箭头向下选择它的内容。从这里:“https://vuetifyjs.com/vuetify/quick-start”
离。 Vuetify - > (点击向下箭头) - >贡献
请告诉我怎么做。
由于
答案 0 :(得分:2)
在列表文档中,查看示例#10。这将显示可扩展列表。使用public void writeDataFile(String fileName)
{
try
{
BufferedWriter outFile = new BufferedWriter(new FileWriter("e:\\EmissionsTracker.csv"));
for (int x = 0; x < totalX; x++)
{
for (int y = 0; y < totalY ; y++)
{
outFile.write(fields[0][y].getText() + "," + fields[x][0].getText() + "," + fields[x][y].getText() + ",");
outFile.write(fields[x][y].getBackground() + ",");
outFile.newLine();
}
}
outFile.close();
}
public void saveEmmisionsTableToFile(String fileName)
{
try
{
BufferedWriter outFile = new BufferedWriter(new FileWriter(fileName));
for (int y = 0; y < totalY; y++)
{
for (int x = 0; x < totalX; x++)
{
outFile.write(fields[x][y].getBackground() + "," );
}
outFile.newLine();
}
outFile.close();
}
catch (Exception e)
{
System.err.println("Error: " + e.getMessage());
}
}
private void readDataFile(String fileName)
{
try
{
BufferedReader br = new BufferedReader(new FileReader(fileName));
for (int x = 0; x < totalX; x++)
{
for (int y = 0; y < totalY; y++)
{
String temp[] = br.readLine().split(",");
fields[x][y].setText(temp[5]);
}
}
br.close();
}
catch (Exception e)
{
System.err.println("Error: " + e.getMessage());
}
}
按钮检查示例代码。结合列表和导航抽屉示例并尝试一些东西。
那应该让你成为明星。嘿,这就是我开始的方式:)。