Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Send in column description "role: tooltip" from java #49

Open
GoogleCodeExporter opened this issue May 5, 2015 · 1 comment
Open

Send in column description "role: tooltip" from java #49

GoogleCodeExporter opened this issue May 5, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Hi,

I fill datatable with columns and rows in JAVA and sending it as JSON.
How to specify in column description e.g. "role" ?

Original issue reported on code.google.com by kc.m...@gmail.com on 10 Mar 2014 at 9:17

@HagarJNode
Copy link

Hi,
I'm in the same situation... It looks like one should add both a role of type 'tooltip' and a property telling it to see it as html if one want to use custom tooltips... like ({'type': 'string', 'role': 'tooltip', 'p': {'html': true}})

Using
columnDescription = new ColumnDescription("7", ValueType.TEXT, "tooltip");
columnDescription.setCustomProperty("role", "tooltip");
columnDescription.setCustomProperty("p", "{html:true}");
columnDescriptions.add(columnDescription);

will not work as it comes out like

{ "id": "7", "label": "tooltip", "type": "string", "pattern": "", "p": { "p": "{html:true}", "role": "tooltip" }

Which is wrong... The JsonRenderer and its getPropertiesMapString method should not escape the { } with ", but it does... to me this is a bug. Sadly one has to download and build a new version to fix this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants