Vue-grid-layout: Qustion: how to change the pink color of drag placeholder?

Created on 6 Nov 2017  路  6Comments  路  Source: jbaysolutions/vue-grid-layout

I hope to change the color of the box that shows when drag. It can be done by set css entry?

Thanks in advance.

Terry

question

Most helpful comment

Yes, just set your custom styling for .vue-grid-item.vue-grid-placeholder

All 6 comments

Yes, just set your custom styling for .vue-grid-item.vue-grid-placeholder

I've tried the css entries (with and without !important):
.vue-grid-item.vue-grid-placeholder {background:blue;}
and also
.vue-grid-item.vue-grid-placeholder {background-color:blue;}

However, it is not changing the background. Am I doing something wrong?

Sorry, I figured out what was happening -- the style tag in the component can't be scoped. Is this a bug?

Sorry, I figured out what was happening -- the style tag in the component can't be scoped. Is this a bug?
You need to add '/deep/', if you use vue

I too had this question and could not find the answer in the docs or the examples. It would be helpful to provide reference to all of the style tags in the docs, and show them in the examples.

Started documenting how to customize the styling here, will add more details next week

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spider58 picture spider58  路  5Comments

gmsa picture gmsa  路  8Comments

kennethllamasares picture kennethllamasares  路  3Comments

msiggi picture msiggi  路  5Comments

MLongz picture MLongz  路  7Comments