我创造了一张卡片摇动者,这让您通过多张卡片轻弹。
您可以使用(差点?)所有摇动器的所有选项,这些都可以找到在这里。
在repo中可以找到更多信息:https://github.com/bramkragen/custom-ui/tree/master/swipe-card.
下面是一些配置示例:伟德国际官方app下载苹果版
![图像](//www.sz-tiancheng.com/community-assets/original/3X/b/4/b47de8a44b16b15ae03a6998262575632c5349c6.gif)
带滚动条的全宽卡:
- 类型:自定义:刷卡参数:Spacebetween:8 ScrollBar:Wide:False Draggable:True SnaponRelease:True Cards: - 类型:传感器实体:Sensor.Temperature_158D0001720278名称:enterpatuur Line_Width:8 Line_Color:'#FF6384' - 类型:传感器实体:sensor.humity_158d0001720278名称:luchtvochtigheid line_color:'#36a2eb'line_width:8 - 类型:传感器实体:sensor.illumination_f0b429cc4c88名称:licht line_color:'#ffce57'line_width:8 - 类型:传感器实体:sensor.cpressure_158d0001720278名称:DRUK LINE_COLOR:“#4BC0C0”准确度:8 LINE_WIDTH:8
![图像](//www.sz-tiancheng.com/community-assets/original/3X/7/3/7307fce894ab2822640b94f2dfcfd2f2b625b94a.gif)
覆盖流,分页:
- 类型:自定义:刷卡卡_width:'185px'start_card:2参数:效果:'pockfflow'grabcursor:true centredslides:true slidesperview:'auto'coverflowfeffect:旋转:50 stress:0深度:100个修改器:1幻灯片:真正的分页:类型:'bullets'卡: - 类型:传感器实体:sensor.temperature_158d0001720278名称:ermithatuur line_width:8 line_color:'#ff6384' - 类型:传感器实体:sensor.humity_158d0001720278名称:luchtvochtigheid line_color:'#36a2eb'line_width:8 - 类型:传感器实体:Sensor.illumination_f0b429cc4c88名称:licht line_color:'#ffce57'line_width:8 - 类型:传感器实体:sensor.cpressure_158d0001720278名称:druk line_color:“#4bc0c0”准确度:8 line_width:8
![图像](//www.sz-tiancheng.com/community-assets/original/3X/8/1/815c4b7a4fcd5a7b3fee4f0ab99a83508fe385d5.gif)
导航、键盘和进度条:
- type: custom:swipe-card card_width: '80%' parameters: centeredSlides: true slidesPerView: 'auto' spaceBetween: 8 pagination: type: 'progressbar' navigation: keyboard: enabled: true onlyviewport: true cards: - type: sensor entity: sensor。temure_158d0001720278 name: temure_158d0001720278 name: temure_line_width: 8 line_color: '#FF6384' - type:传感器实体:传感器。humidity_158d0001720278 name: Luchtvochtigheid line_color: '#36A2EB' line_width: 8 - type:传感器实体:传感器。illumination_f0b429cc4c88 name: Licht line_color: '#ffce57' line_width: 8 - type:传感器实体:传感器。pressure_158d0001720278 name: Druk line_color: "#4BC0C0" accuracy: 8 line_width: 8
![图像](//www.sz-tiancheng.com/community-assets/original/3X/d/4/d44370a0dcddcc5400a1bb7b3c5c5006cde6224b.gif)
默认:
- 型号:自定义:刷卡卡: - 类型:传感器实体:Sensor.Temperature_158D0001720278名称:ermithatuur Line_Width:8 Line_Color:'#FF6384' - 类型:传感器实体:Sensor.Humity_158D0001720278名称:LuchtvochtigheID Line_Color:'#36a2eb'dine_width:8 - 类型:传感器实体:Sensor.illumination_f0b429cc4c88名称:licht line_color:'#ffce57'line_width:8 - 类型:传感器实体:sensor.cpressure_158d0001720278名称:druk line_color:“#4bc0c0”准确度:8 line_width:8
地方swipe-card.jsIN / CONFIG / www / custom-lovelace / swipe-card /
- URL:/local/custom-lovelace/swipe-card/swipe-card.js?v=3.0.0类型:模块
可选:添加到custom_updater:
https://raw.githubusercontent.com/bramkragten/custom-ui/master/updater.json