We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a view where I use photoshop color picker:
<div class="color-picker"> <photoshop-picker v-model="color"/> </div>
I have an element where I want to change background color:
<textarea name="category-textarea" id="category-textarea" cols="30" rows="1" :style="{ backgroundColor: color }" ></textarea>
I imported it in script area like this:
<script> import { Photoshop } from "vue-color"; export default { components: {"photoshop-picker": Photoshop }, mounted() {}, data() { return { color: "#7163E0" }; } }; </script>
How can I apply color from color picker to background color of textarea?
The text was updated successfully, but these errors were encountered:
try
:style="{ 'background-color': color; }"
(not tested)
Sorry, something went wrong.
No branches or pull requests
I have a view where I use photoshop color picker:
I have an element where I want to change background color:
I imported it in script area like this:
How can I apply color from color picker to background color of textarea?
The text was updated successfully, but these errors were encountered: