Pentaho CDE Dashboard Component Style Editing

时间:2015-06-29 10:48:02

标签: javascript pentaho dashboard pentaho-cde

I'm quite new to Pentaho dashboard develop and i have a problem with the component style.

For example, I added a table component to my dashboard.

In the "Advanced Properties -> Style" option of this table component, I select "bootstrap". Okay then the table component is automatically added some bootstrap style classes.

But, I want to remove one of those classes. I want to use jQuery.removeClass() to implement this but I don't know where should I put my js sentences.

Further more, if i want to do some other operation towards the generated table component using js, where should i put my js sentences.

I do not understand the workflow of pentaho cde dashboard so this question may seems a little silly. Thank you for your time!

1 个答案:

答案 0 :(得分:0)

您可以将代码放入绘制功能

=>您使用表组件。通过使用java脚本代码或jquery代码,您可以操作表组件中的数据。

示例:
 1.您想要对行值求和  2.您可以隐藏列和行。

注意:如果你在draw函数中放了一些代码。表组件已将sql结果转换为HTML表。它就像一个普通的HTML表。

谢谢。