generoi/wp-gutenberg-hidden-blocks
最新稳定版本:v0.4.0
Composer 安装命令:
composer require generoi/wp-gutenberg-hidden-blocks
包简介
Adds a block setting for specifying screen specific visibillity
关键字:
README 文档
README
Adds a block setting for specifying screen specific visibillity
Installation
composer require generoi/wp-gutenberg-hidden-blocks
Usage
import { addFilter } from '@wordpress/hooks' import { mobile, tablet, desktop } from '@wordpress/icons'; addFilter('wp-gutenberg-hidden-blocks.screenSizes', 'theme/screen-sizes', () => { return [ { name: 'mobile', label: 'Mobile', icon: mobile }, { name: 'tablet', label: 'Tablet', icon: tablet }, { name: 'desktop', label: 'Desktop', icon: desktop }, ]; });
Development
Install dependencies
composer install
npm install
Run the tests
npm run test
Build assets
# Minified assets which are to be committed to git
npm run build:production
# Watch for changes and re-compile while developing the plugin
npm run start
统计信息
- 总下载量: 1.36k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-04-24
