angular - 在 ng-pick-datetime 中更改给定日期的样式
问题描述
我在前端使用Angular 日期时间选择器。
我在后端的方法为用户计算所有不可用的日期。我想在用户不可用的每一天更改日历中的颜色。基本上我想找到一种方法来通过在不可用的日子改变颜色来设置组件的样式。
我似乎找不到办法;有人能指出我正确的方向吗?或者甚至可能推荐另一种方法来做到这一点。
解决方案
在这里你可以改变颜色 -----> src\styles.scss
例如
.owl-dt-calendar-table .owl-dt-calendar-cell-in-range {
background: rgba(255, 0, 0, 0.2);
}
.owl-dt-container-info .owl-dt-container-info-active {
color: red;
}
.owl-dt-calendar-table .owl-dt-calendar-cell-selected {
color: rgba(255, 255, 255, .85);
background-color: red;
}
.owl-dt-container-buttons {
color: #3f51b5;
}
推荐阅读
- javascript - 如何使用可用性 reactstrap 验证禁用表单提交按钮
- javascript - 缩短多重和重复属性
- image-processing - Flutter 中的图像 Flood 还是 Bucket 填充哪一个?
- python - 检查列表项是否包含在另一个列表中
- java - Java 垃圾收集器是否特定于主要 GC?
- azure-devops - Get all work items from devops throug rest api
- r - 自动将一个表分成几个表,应用“过滤器”
- kubernetes - Docker 版本警告后,Kubernetes 加入节点预检挂起
- interface - 解决方案检查器在统一接口中的 window.top.close() 问题
- sql - 在我的情况下,如何使用 SQL 连接两列?