0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-28 17:13:31 +01:00
wagtail/client
Matt Westcott 0380f01b24 Allow specifying a format for the label of a collapsed StructBlock
Currently, the label shown for a StructBlock's collapsed representation takes its content from the first sub-block of the StructBlock, which isn't always what you want. Add a new `label_format` meta option to StructBlock to allow customising this - e.g. `label_format = "Profile for {first_name} {surname}"`
2021-09-27 19:07:14 +01:00
..
.storybook Use stubs in storybook 2021-05-03 17:05:56 +01:00
scss Make hamburger menu a button for tab accessibility 2021-09-19 14:18:34 +10:00
src Allow specifying a format for the label of a collapsed StructBlock 2021-09-27 19:07:14 +01:00
tests Use stubs in storybook 2021-05-03 17:05:56 +01:00
package-lock.json
README.md
webpack.config.js Make all edit panels collapsible (#7365) 2021-08-30 08:33:43 -07:00

Wagtail client-side components

This library aims to give developers the ability to subclass and configure Wagtail's UI components.

Usage

npm install wagtail
import { Explorer } from 'wagtail';
// [...]
<Explorer />

Development

# From the project root, start the webpack + styles compilation.
npm run start

You will also need:

Releases

The front-end is bundled at the same time as the Wagtail project. This package also aims to be available separately on npm as wagtail.