wanecho/mobile-tab
最新稳定版本:2.0.4
Composer 安装命令:
composer require wanecho/mobile-tab
包简介
关键字:
README 文档
README
A Flarum extension. Adds a bottom tab on mobile.

Installation
Install with composer:
composer require wanecho/mobile-tab:"*"
Updating
composer update wanecho/mobile-tab:"*"
php flarum cache:clear
Extending
You can add, modify and delete items with your own extension. Read: https://docs.flarum.org/extend/extending-extensions/
Examples:
import { components } from '@acpl-mobile-tab';
import { extend } from 'flarum/common/extend';
const { MobileTab, MobileTabItem } = components;
export default () => {
extend(MobileTab.prototype, 'items', (items) => {
// Add new item
items.add(
'following',
<MobileTabItem href={app.route('following')} icon="fas fa-star" label={app.translator.trans('my-ext.forum.my-item')} />,
90
);
// Add new item using custom HTML
items.add('my-item', <div>...This is my custom item</div>, 70);
// Remove item
items.remove('home');
});
};
Links
统计信息
- 总下载量: 747
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-05-06