Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
feat: make ypostion clearable false
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHuiYYDS committed Sep 13, 2021
1 parent b4eb5d9 commit f6cd254
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import React from 'react';
import { t } from '@superset-ui/core';
import { ControlPanelSectionConfig } from '../types';
import { formatSelectOptions } from '../utils';
const TITLE_MARGIN_OPTIONS: number[] = [0, 15, 30, 50, 75, 100, 125, 150, 200];
const TITLE_MARGIN_OPTIONS: number[] = [15, 30, 50, 75, 100, 125, 150, 200];
const TITLE_POSITION_OPTIONS: string[] = ['Left', 'Top'];
export const titleControls: ControlPanelSectionConfig = {
label: t('Chart Title'),
Expand Down Expand Up @@ -89,7 +89,7 @@ export const titleControls: ControlPanelSectionConfig = {
config: {
type: 'SelectControl',
freeForm: true,
clearable: true,
clearable: false,
label: t('Y AXIS TITLE POSITION'),
renderTrigger: true,
default: TITLE_POSITION_OPTIONS[0],
Expand Down

0 comments on commit f6cd254

Please sign in to comment.