Skip to content

Commit

Permalink
Update field component's supported actions
Browse files Browse the repository at this point in the history
  • Loading branch information
espressoroaster committed Sep 15, 2017
1 parent df652af commit 47deb16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/field/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {DragElementWrapper, DragSource, DragSourceCollector, DragSourceSpec} fro
import * as TetherComponent from 'react-tether';
import {OneOfFilter, RangeFilter} from 'vega-lite/build/src/filter';
import {FilterAction} from '../../actions';
import {CustomWildcardAction} from '../../actions/custom-wildcard-field';
import {DatasetSchemaChangeFieldType} from '../../actions/dataset';
import {ShelfAction} from '../../actions/shelf';
import {FILTER_TOGGLE} from '../../actions/shelf/filter';
Expand Down Expand Up @@ -48,7 +49,8 @@ export interface FieldPropsBase {
/** Remove field event handler. If not provided, remove button will disappear. */
onRemove?: () => void;

handleAction?: (action: FilterAction | ShelfAction | DatasetSchemaChangeFieldType) => void;
handleAction?: (action: CustomWildcardAction | FilterAction |
ShelfAction | DatasetSchemaChangeFieldType) => void;

/**
* If filter button is shown, we need to provide filters to check duplicated filters.
Expand Down

0 comments on commit 47deb16

Please sign in to comment.