silbinarywolf/silverstripe-mrfilter
Composer 安装命令:
composer require silbinarywolf/silverstripe-mrfilter
包简介
A filtering form API that's fully configurable in the CMS and has live front-end Google Map filtering.
关键字:
README 文档
README
WARNING: This module is currently undergoing breaking API changes, use at your own risk.
Mr Filter is a filtering form that's configurable in the backend and able to be attached to a Page.
It offers a simple to use API for filtering DataLists in the backend as well as offering flexible front-end filtering logic that is done without using slow backend responses.
Toggling Map View
Occassionally in your front-end code, you'll want the map to start hidden and be toggled on with a button. The following code will ensure that if the map starts hidden, that it won't have an incorrect display once it becomes visible.
$('.js-view-map-button').click(function(e) {
$(this).addClass('is-active');
$('.js-view-map').removeClass('is-hidden');
$('.js-view-listing').addClass('is-hidden');
// Fix Google Map display:none; bug
$('.js-listfilter-widget_googlemap').trigger('GoogleMapRunDrawInit');
});
Requirements
- SilverStripe 3.1 or higher
Installation
composer require silbinarywolf/silverstripe-mrfilter:1.0.*
统计信息
- 总下载量: 4.8k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2016-09-07
