fix(cross-filters): add a control panel to range filter (#13692)
This commit is contained in:
parent
69a5ed9a1e
commit
81b64204c7
|
|
@ -16,12 +16,34 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import { ControlPanelConfig, sections } from '@superset-ui/chart-controls';
|
||||
import { t } from '@superset-ui/core';
|
||||
import {
|
||||
ControlPanelConfig,
|
||||
sections,
|
||||
sharedControls,
|
||||
} from '@superset-ui/chart-controls';
|
||||
|
||||
const config: ControlPanelConfig = {
|
||||
// @ts-ignore
|
||||
controlPanelSections: [sections.legacyRegularTime],
|
||||
// TODO: here to add the relevant controls
|
||||
controlPanelSections: [
|
||||
sections.legacyRegularTime,
|
||||
{
|
||||
label: t('Query'),
|
||||
expanded: true,
|
||||
controlSetRows: [
|
||||
[
|
||||
{
|
||||
name: 'groupby',
|
||||
config: {
|
||||
...sharedControls.groupby,
|
||||
label: 'Column',
|
||||
description:
|
||||
'The numeric column based on which to calculate the range',
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
|
|
|||
Loading…
Reference in New Issue