import { bokez } from '../../global' const { __ } = wp.i18n; const { Component } = wp.element; const { PanelColorSettings, InspectorControls, RichText, } = wp.editor; const { RangeControl, } = wp.components; export class Edit extends Component{ render(){ const { isSelected, setAttributes, attributes } = this.props const { progress, textColor, progressColor, backgroundColor, tooltipBackgroundColor, tooltipColor, message, uid, } = attributes; if( uid === '' ){ setAttributes({ uid : bokez.uniqueID() }); } return [ isSelected && (
setAttributes( { progress: newValue + "%" } ) } /> setAttributes( { textColor: newColor } ), } ] } > setAttributes( { backgroundColor: newColor } ), } ] } > setAttributes( { progressColor: newColor } ), } ] } > setAttributes( { tooltipBackgroundColor: newColor } ), } ] } > setAttributes( { tooltipColor: newColor } ), } ] } >
),
setAttributes( { message: newMessage } ) } />
{ progress }
]; } }