0.1.1 • Published 5 years ago

flypress-metagroups v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

Flypress Metagroups

A Vue.js plugin for providing admin metagroup and metapanel helper components, designed for use within the Flypress ecosystem.

Installation

The Flypress Metagroups plugin can be installed via npm:

npm install flypress-metagroups

Usage

Include the required resources in your project:

// admin.js

import Vue from 'vue';
import FlypressMetapanels from 'flypress-metapanels';

Vue.use(FlypressMetapanels);

const AdminApp = new Vue({...});

Components

metagroup

The metagroup component acts as a wrapper for a collection of metapanels.

Properties

This component has no custom properties.

Example

<metagroup>
	<metapanel />
  <metapanel />
  <metapanel />
</metagroup>

metapanel

The metapanel component is used to register and display a single metapanel within a metagroup.

Properties

NameTypeRequiredDescription
idstringYesA unique identifier for the metapanel.
labelstringLabel to display in the metagroup navigation. Defaults to id.
iconstringAn icon identifier to display in the metagroup navigation. This should be a dashicons id. e.g. admin-media for the dashicons-admin-media icon.

Example

<metagroup>
	<metapanel id="book-author" label="Author" icon="admin-users">
  	...
  </metapanel>
</metagroup>
0.1.0

5 years ago

0.1.1

5 years ago

0.2.0

5 years ago