Here we demonstrate the use of the progressbar gem.
我们在这里演示progressbargem的使用。
The first line of the program requires the progressbar library file.
程序的第一行导入了progressbar库文件。
Using the ProgressBar component in manual mode.
在手动模式使用ProgressBar组件。
Using the ProgressBar component in automatic mode.
在自动模式中使用ProgressBar组件。
It shows use of the ProgressBar in both modes and in different scenarios.
它显示了ProgressBar在两种模式下的使用以及在不同情景下的使用。
Note that the top ProgressBar changes its length when the window is resized.
注意,当窗口大小发生变化时,顶部的ProgressBar会改变它的长度。
First, you need to add a ProgressBar component, using the code that you see in Listing 13.
首先,您要添加一个ProgressBar组件,使用您在列表13中见到的代码。
A ProgressBar is like an output-only Slider in that it can be used to show incremental activity (progress).
ProgressBar 类似于一个只输出的Slider,因为可以用它来展示增量活动(进度)。
Among them is a ProgressBar component that you can use to provide a visual indication that a task is running.
您能使用的是它们之中的ProgressBar组件,它可以提供一个表示任务正在运行的可视化的指示。
SliderBar and ProgressBar - Both of these widgets currently require the use of a global timer, which has performance implications.
SliderBar与ProgressBar——目前这两个widget都需要使用全局定时器,这会导致一定的性能问题。
Therefore, it was appropriate to use an automatic ProgressBar, and it just kept running until the server finished processing the task.
因此,使用一个自动的ProgressBar 是十分恰当的,它将一直保持运行直到服务器完成这项任务。
After you have the current progress updated in the hidden input field, all that's left to do is to update the ProgressBar component accordingly.
当您当前的进度在隐藏的输入域中更新之后,剩余的任务就是更新相应的ProgressBar组件。
After you have the current progress updated in the hidden input field, all that's left to do is to update the ProgressBar component accordingly.
当您当前的进度在隐藏的输入域中更新之后,剩余的任务就是更新相应的ProgressBar组件。
应用推荐