基于文本框的交叉过滤器过滤器 [英] Crossfilter filter based on textbox
本文介绍了基于文本框的交叉过滤器过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想根据文本框中的输入过滤数据.这可能吗?类似于此,但带有交叉过滤器.
I would like to filter my data based on the input in a textbox. Is this possible? Something like this but with crossfilter.
推荐答案
使用crossfilter
当然可以,只需从原始数据创建dimension
对象,然后根据文本框的输入应用过滤器.
Certainly possible with crossfilter
, just create dimension
objects from your raw data and then apply a filter by the input of the text box.
myDimension.filter(valueFromBox); // selects values who equal the value in the text box
在此处查看 API文档.
这篇关于基于文本框的交叉过滤器过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文