PATH:
home
/
letacommog
/
aperobusiness
/
wp-content
/
plugins
/
the-grid
/
backend
/
assets
/
js
/
gutenberg
/
grid
/** * WordPress dependencies. */ const { __ } = wp.i18n; const { withSelect } = wp.data; const { Spinner, SelectControl } = wp.components; const select = props => { const { options, attributes, setAttributes } = props; const { name } = attributes; return [ options.loading && ( <Spinner/> ), ! options.loading && ( <SelectControl label={ __( 'Please, select a grid', 'tg-text-domain' ) } value={ name || '' } onChange={ ( value ) => setAttributes( { name: value } ) } options={ options } /> ), ]; } export default withSelect( select => { const { getGrids } = select( 'the_grid' ); return { options: getGrids(), }; } )( select )
[+]
..
[-] inspector.js
[edit]
[-] controls.js
[edit]
[-] edit.js
[edit]
[-] select.js
[edit]
[-] index.js
[edit]