How to make QProgress shown in the same line?
-
QProgress seems, by default, is a block element as demos in doc:
https://quasar-framework.org/components/progress-bar.htmlI would like to create a status bar with it, how can I make it shown as a inline element to sit aside my other icons?
-
add loading to your q element
:loading="true"
. i dunno how you would want a line progress bar beside an icon since i con is small. adding a :loading prop on let say a button with icon will give it a loading animation until :loading prop becomes false. better give an example maybe on how it should look like. -
@metalsadman the status bar may look like below:
-
@flight9 something like this? https://codesandbox.io/s/pk54042697
-
[Vue warn]: Method "counter" has already been defined as a data property.
is because there is a propertycounter
and a functioncounter
causing a collision. -
@Hawkeye64 @flight9 fixed now, with simulated progress.
-
@metalsadman That looks really good!
-
@metalsadman awesome!
<div class="col-9"> <q-progress :percentage="progress" height="25px"> </q-progress> </div>
these code can make qprogress shown inline, very helpful, thanks!