PluginProbe
JetFormBuilder — Dynamic Blocks Form Builder / 3.1.0
JetFormBuilder — Dynamic Blocks Form Builder v3.1.0
3.6.5.2 3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 All 130 releases
jetformbuilder / assets / src / editor / blocks / form-break-start / index.js
index.js
37 lines 768 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import FormBreakStart from './edit';
2 import metadata from '@blocks/form-break-start/block.json';
3
4 const { name, icon = '' } = metadata;
5
6 const {
7 __,
8 } = wp.i18n;
9
10 /**
11 * Available items for `useEditProps`:
12 * - uniqKey
13 * - formFields
14 * - blockName
15 * - attrHelp
16 */
17 const settings = {
18 icon: <span dangerouslySetInnerHTML={ { __html: icon } }></span>,
19 description: __(
20 `Add the Form Page Start block after the two first form fields
21 to start the new page not from the form beginning but from the block.`,
22 'jet-form-builder',
23 ),
24 edit: FormBreakStart,
25 useEditProps: [ 'uniqKey', 'attrHelp', 'blockName' ],
26 example: {
27 attributes: {
28 isPreview: true,
29 },
30 },
31 };
32
33 export {
34 metadata,
35 name,
36 settings,
37 };