fix(cross-filters): add a control panel to range filter (#13692)

This commit is contained in:
Ville Brofeldt 2021-03-18 19:43:25 +02:00 committed by GitHub
parent 69a5ed9a1e
commit 81b64204c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 4 deletions

View File

@ -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;