mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 06:58:11 +08:00
all or none becomes a checkbox
This commit is contained in:
@@ -26,14 +26,6 @@ class CategoryValue extends React.Component {
|
||||
});
|
||||
}
|
||||
|
||||
toggleOnlyThis() {
|
||||
this.props.dispatch({
|
||||
type: "categorical metadata filter only this",
|
||||
metadataField: this.props.metadataField,
|
||||
value: this.props.value
|
||||
})
|
||||
}
|
||||
|
||||
render () {
|
||||
if (!this.props.categoricalAsBooleansMap) return null
|
||||
|
||||
@@ -66,17 +58,6 @@ class CategoryValue extends React.Component {
|
||||
}}>
|
||||
{this.props.count}
|
||||
</p>
|
||||
<span
|
||||
onClick={this.toggleOnlyThis.bind(this)}
|
||||
style={{
|
||||
fontFamily: globals.accentFont,
|
||||
fontSize: 10,
|
||||
fontWeight: 100,
|
||||
fontStyle: "italic",
|
||||
cursor: "pointer",
|
||||
}}>
|
||||
{"only"}
|
||||
</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -84,6 +65,25 @@ class CategoryValue extends React.Component {
|
||||
|
||||
export default CategoryValue;
|
||||
|
||||
// toggleOnlyThis() {
|
||||
// this.props.dispatch({
|
||||
// type: "categorical metadata filter none of these",
|
||||
// metadataField: this.props.metadataField,
|
||||
// value: this.props.value
|
||||
// })
|
||||
// }
|
||||
// <span
|
||||
// onClick={this.toggleOnlyThis.bind(this)}
|
||||
// style={{
|
||||
// fontFamily: globals.accentFont,
|
||||
// fontSize: 10,
|
||||
// fontWeight: 100,
|
||||
// fontStyle: "italic",
|
||||
// cursor: "pointer",
|
||||
// }}>
|
||||
// {"only"}
|
||||
// </span>
|
||||
|
||||
// onClick={selected ? this.toggleOff.bind(this) : this.toggleOn.bind(this)}
|
||||
// toggleOn() {
|
||||
// this.props.dispatch(
|
||||
|
||||
Reference in New Issue
Block a user