const { __ } = wp.i18n; // Import __() from wp.i18n const { Component } = wp.element; const { serverSideRender: ServerSideRender } = wp; const { InspectorControls, PanelColorSettings } = wp.editor; const { RangeControl, CheckboxControl, PanelBody, SelectControl, TextControl } = wp.components; import { InspectorContainer } from '../commonComponents/container/container'; /** * The edit function describes the structure of your block in the context of the editor. * This represents what the editor will render when the block is used. * * The "edit" property must be a valid function. * @param {Object} props - attributes * @returns {Node} rendered component */ export default class Edit extends Component { render() { const { className, attributes, setAttributes, } = this.props; return (
setAttributes( { per_page: value } ) } min={ 1 } max={ 100 } help={ __( 'Specify the maximum number of events listed per single page.', 'myticket-events' ) } /> setAttributes( { category } ) } help={ __( 'Restrict all records to certain category. To view categories go to Products > Categories section.', 'myticket-events' ) } /> setAttributes( { type } ) } /> setAttributes( { aspect } ) } /> { return setAttributes( { mainColor: value } ); }, label: __( 'Selected', 'myticket-events' ), }, ] } /> setAttributes( { relation } ) } /> setAttributes( { order } ) } /> {/* setAttributes( { pagination } ) } /> */} setAttributes( { checkFilter } ) } />
); } }