# mobile-tab **Repository Path**: echo886/mobile-tab ## Basic Information - **Project Name**: mobile-tab - **Description**: flarum 移动端/手机端 tab 插件 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-05-06 - **Last Updated**: 2023-05-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Mobile Tab Component ![License](https://img.shields.io/badge/license-MIT-blue.svg) [![Latest Stable Version](https://img.shields.io/packagist/v/acpl/mobile-tab.svg)](https://packagist.org/packages/acpl/mobile-tab) [![Total Downloads](https://img.shields.io/packagist/dt/acpl/mobile-tab.svg)](https://packagist.org/packages/acpl/mobile-tab) A [Flarum](https://flarum.org) extension. Adds a bottom tab on mobile. ![Imgur](https://i.imgur.com/QGrWQyP.png) ### Installation Install with composer: ```sh composer require wanecho/mobile-tab:"*" ``` ### Updating ```sh 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/](https://docs.flarum.org/extend/extending-extensions/) Examples: ```js 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', , 90 ); // Add new item using custom HTML items.add('my-item',
...This is my custom item
, 70); // Remove item items.remove('home'); }); }; ``` ### Links - [Packagist](https://packagist.org/packages/wanecho/mobile-tab)