[Common] Disabled style for listview.

This commit is contained in:
Julia Radzhabova 2017-10-11 15:21:31 +03:00
parent 2cacfb9dca
commit b74afc68e5
2 changed files with 21 additions and 9 deletions

View file

@ -473,6 +473,9 @@ define([
}); });
} }
if (this.disabled)
this.setDisabled(this.disabled);
this.attachKeyEvents(); this.attachKeyEvents();
this.lastSelectedRec = null; this.lastSelectedRec = null;
this._layoutParams = undefined; this._layoutParams = undefined;

View file

@ -28,7 +28,9 @@
border-style: solid; border-style: solid;
border-width: 1px 0; border-width: 1px 0;
border-top-color: #fafafa; border-top-color: #fafafa;
}
&:not(.disabled) > .item {
&:hover { &:hover {
background-color: @secondary; background-color: @secondary;
border-color: @secondary; border-color: @secondary;
@ -48,4 +50,11 @@
&.ps-container { &.ps-container {
overflow: hidden; overflow: hidden;
} }
&.disabled {
> .item {
cursor: default;
opacity: 0.5;
}
}
} }