I would like to customize the default table context menu to control the visible columns of each table in the application, for reason of convenience I would like to add following items on the top:
select all
deselect all
—separator—
column1
column2
column3
…
Could you please show me how I can make this adjustment.
Thank you for taking the time to answer my question. Your first approach, the customization = overriding of the general table functionality I had in focus because I want all the table views in an app benefit from the change.
To evaluate an adjustment I try to identify the component that is currently responsible for currently implemented logic.
Alternatives like own context menus as described by you or by the documentation are not what I looking for.
I found the class com.haulmont.cuba.web.gui.components.WebAbstractTable which implements the table functionality.
Unfortunately, it is not that easy to customize this menu. Its implementation is located in VScrollTable class of the client-side of Vaadin Framework. Such a customization requires sub classing of many classes of the platform and Vaadin framework.
Moreover, this client-side part is not the public API of Vaadin and could be changed at any time.
Thank you for your reply, as discussed with Aleksey in Berlin last week, there is currently only the “action” alternative. We also discussed the possibility for the Cuba team to make this change. In addition, Aleksey showed me another alternative, a context menu on the tab to edit the table columns. The tab variant we would prefer then, in which platform version can we find this functionality?