How to hide a wiget?
Hi all,
How can I hide a widget based on a column data with javascript API?
Thanks in advance
-
Hi Javier,
Can you please provide more info on the use case?
There is a script available that will hide a column (for more information on this script please visit here):
widget.on("ready", function(widget, args) {
var CUR_COL_FIND_CRITERIA = "[fidx=0]";
//hide current column and set new width for the pivots
$('[id="' + widget.oid+ '"]').find(CUR_COL_FIND_CRITERIA).html("");
$('[id="' + widget.oid+ '"]').find(CUR_COL_FIND_CRITERIA).css("width", "0px");
});
You can use this script as the foundation and adjust it to achieve the functionality you want.
Please sign in to leave a comment.
Comments
1 comment