runopencode/dm-jcarousellite-behavior-plugin
Composer 安装命令:
composer require runopencode/dm-jcarousellite-behavior-plugin
包简介
dmJCarouselLiteBehaviorPlugin - Accordion Front Behavior for Diem Extended
README 文档
README
Author: TheCelavi
Version: 1.0.0
Stability: Stable
Date: December 15th, 2012
Courtesy of Run Open Code
License: Free for all
dmJCarouselLiteBehaviorPlugin for Diem Extended is adaptation of jCarouselLite jQuery plugin.
Note that site is marked as recently marked as mallware. Also note that this can not be upgraded without modifications and adjustments in order for jQuery plugin to work as behavior.
Usage
The simplest and most easiest way to use this carousel is to add widgets into zone, and attach dmJCarouselLiteBehaviorPlugin to the zone. The behavior will make every widget into carousel element.
However, it can work with any HTML element with following structure:
<container>
<carousel-element></carousel-element>
<carousel-element></carousel-element>
<carousel-element></carousel-element>
<carousel-element></carousel-element>
.....
</container>
In order to achieve that, you have to specify the Inner target selector
for <container> tag so carousel can identify its elements.
Note that in this example tags such as container and carousel-element
are just examples, of course, any HTML structure will work, like using DIV or
perhaps UL and LI.
HTML output
The behavior will not change structure whatsoever. It will add navigation and pager if it is set to do so.
Configuration and theming
In dmJCarouselLiteBehaviorPlugin/config/dm/config.yml are configuration parameters
for this behavior.
default:
dmJCarouselLiteBehavior:
defaults: # Default settings for behavior
inner_target: ''
theme: default
item_width: 100
item_height: 100
mouse_wheel: true
auto_scroll: false
auto_scroll_period: 500
hover_pause: true
speed: 500
easing: jswing
is_vertical: false
is_circular: true
visible: 1
scroll: 1
pager: bottom
navigation: bottom
labels:
auto_scroll_period: Auto scroll interval
speed: Scroll speed
hover_pause: Pause on hover
helps:
auto_scroll: Auto scroll items
auto_scroll_period: Interval in ms between two auto scrolling
mouse_wheel: Enable/disable mouse wheel for scrolling
speed: Speed of scrolling animation in ms
scroll: Number of items to scroll at once
hover_pause: Mouse hover pause scrolling when auto scroll is set to true
visible: Number of visible items
themes:
default: 'dmJCarouselLiteBehaviorPlugin.default' # From assets.yml - U can use a path instead
If you have download the behavior via Github, you can modify this file. If you have installed it via Composer, then you have to use Symfony config cascade to override this settings.
Section defaults contains default settings for behavior, which behavior form initially
displays. If you want some other settings to be shown as default, this is the place for
change.
Section labels contains labels for form settings field for behavior, section helps contains
helps for form fields.
Section themes is for theme, and it gets configured as theme_key: path_to_css_file.
If user in behavior form selects a default theme, the accordiong view HTML structure will be:
<div class="dmJCarouselLiteBehaviorPlugin default">
.... other HTML content
</div>
Note that a default class is added, that is, the theme key. Of course, the theme CSS file
will be loaded as well. So, for you is just to theme it.
Default theme
With this behavior, the LESS file is provided with default theme. LESS file provides the insight of structure and it ought to help you with theming.
Important note
The jCarouselLite can be circular or non-circular. The various settings regarding visible
and scroll parameters can lead to various behaviors with pager.
For non-circular, it is important to know that fail-safe strategy is implemented, in situations
when there are less items to scroll then visible. Per example, visible is 6, scroll is 6 and you
have 9 items - the behavior will add 3 more <div class="empty"/> tags.
For circular, this kind of strategy is not implemented which produce glitch in pager when transitioning from first to last and vice versa. The pager will show as it is first page. There is no logic fix for this - what to show, first or last? So, the first is set.
runopencode/dm-jcarousellite-behavior-plugin 适用场景与选型建议
runopencode/dm-jcarousellite-behavior-plugin 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 6 次下载、GitHub Stars 达 1, 最近一次更新时间为 2012 年 12 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「plugin」 「Behavior」 「diem」 「diem extended」 「front behavior」 「dmJCarouselLiteBehaviorPlugin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 runopencode/dm-jcarousellite-behavior-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 runopencode/dm-jcarousellite-behavior-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 runopencode/dm-jcarousellite-behavior-plugin 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
CakePHP 4.x AdminLTE Theme.
A CakePHP plugin to provide easy access to zumba/swivel
This is a set of Yii2 behaviors extensions
Model behaviors for the li₃ PHP framework
A CakePHP behavior to validate foreign keys
Yii2-article is a module offering basic CMS-functionality
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Free
- 更新时间: 2012-12-15