Changes to datagrid
This commit is contained in:
@ -1 +1 @@
|
||||
<?php return array('dependencies' => array('react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '81e2f5a896da526cb195');
|
||||
<?php return array('dependencies' => array('react', 'react-dom', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '6c47b2075da54fd439aa');
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -45,6 +45,10 @@
|
||||
"type": "number",
|
||||
"default": 1
|
||||
},
|
||||
"dataTypes" :{
|
||||
"type": "object",
|
||||
"default" :{}
|
||||
},
|
||||
"gridColumnDefinitions": {
|
||||
"type": "array",
|
||||
"default": [
|
||||
|
||||
@ -64,12 +64,12 @@ export default function Edit({ attributes, setAttributes }) {
|
||||
help={__('Select the logic for setting the colors', 'lcp')}
|
||||
value={hierarchicalSource || 'parent'}
|
||||
options={[
|
||||
{ label: 'Parent Column', value: 'parent' },
|
||||
{ label: 'Column Order', value: 'columnOrder' }
|
||||
{ label: 'Color Column', value: 'colorColumn' },
|
||||
{ label: 'Swatch', value: 'swatch' }
|
||||
]}
|
||||
onChange={(value) => setAttributes({ hierarchicalSource: value })}
|
||||
/>
|
||||
{hierarchicalSource === 'columnOrder' && (
|
||||
{hierarchicalSource === 'swatch' && (
|
||||
<TextControl
|
||||
label={__('Hierarchical Column Order', 'lcp')}
|
||||
value={hierarchicalColumnOrder}
|
||||
|
||||
Reference in New Issue
Block a user