Comments (3)
Text before the line
You can add text before the bar by using CSS:
<template>
<v-termynal>
<vt-progress class="uninstall" :progress-length="30" />
</v-termynal>
</template>
<style>
.uninstall::before {
content: "Uninstall in progress:";
padding-right: 5px;
}
</style>
I can add an example to the docs if you think this is a good a solution the problem.
Indeterminate progress
I like the idea of it. We could create a new component for this, and this way the original progress component could stay simpler and the user can import the progress indicator they need.
about the div
The progress line is a <span>
element but with the display: block
style. You can change this with CSS too by overriding the default style of the .vt__line
class.
Let me know if this helped you with your use case!
from vue-termynal.
I tried adding the text before in the CSS, but in my use case it became quickly overwhelming, to many classes as I had several progress components.
I have raised this PR #4 that solves these two topics, using a slot
like for vt-input
, and adding adding the property progress-unknown
to the progress component.
Let me know your thoughts.
from vue-termynal.
You could use the attr() css function to dynamically set the content of the ::before
element, but at this point I agree, that using slot
is simpler and more intuitive.
from vue-termynal.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-termynal.