mirror of
https://github.com/apache/superset.git
synced 2026-04-27 03:55:47 +00:00
[explorev2] adding support for client side validators on controls (#1920)
* Adding support for client side validators on controls * Applying validators to more fields * Addressing comments
This commit is contained in:
committed by
GitHub
parent
fc74fbeeaa
commit
470a6e9d76
@@ -11,14 +11,12 @@ const propTypes = {
|
||||
|
||||
const defaultProps = {
|
||||
value: false,
|
||||
label: null,
|
||||
description: null,
|
||||
onChange: () => {},
|
||||
};
|
||||
|
||||
export default class CheckboxField extends React.Component {
|
||||
onToggle() {
|
||||
this.props.onChange(this.props.name);
|
||||
this.props.onChange(!this.props.value);
|
||||
}
|
||||
render() {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user