PluginProbe
WebberZone Top 10 — Popular Posts / 4.5.1
WebberZone Top 10 — Popular Posts v4.5.1
4.5.1 4.5.0 4.4.3 4.4.2 4.4.1 4.4.0 4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 trunk 1.0 1.0.1 1.1 1.2 1.3 1.4 1.4.1 1.5 1.5.1 1.5.2 1.5.3 1.6 1.6.1 All 117 releases
top-10 / includes / frontend / blocks / src / popular-posts / components / post-display-controls.js

post-display-controls.js in WebberZone Top 10 — Popular Posts 4.5.1, at includes/frontend/blocks/src/popular-posts/components/post-display-controls.js

24 lines 640 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { __ } from '@wordpress/i18n';
2 import { PanelRow, TextControl } from '@wordpress/components';
3
4 export const PostDisplayControls = ( { attributes, onChange } ) => (
5 <>
6 <PanelRow>
7 <TextControl
8 label={ __( 'Number of posts', 'top-10' ) }
9 value={ attributes.limit }
10 onChange={ onChange( 'limit' ) }
11 help={ __( 'Maximum number of posts to display', 'top-10' ) }
12 />
13 </PanelRow>
14 <PanelRow>
15 <TextControl
16 label={ __( 'Offset', 'top-10' ) }
17 value={ attributes.offset }
18 onChange={ onChange( 'offset' ) }
19 help={ __( 'Number of posts to skip from the top', 'top-10' ) }
20 />
21 </PanelRow>
22 </>
23 );
24