cmv-widgets icon indicating copy to clipboard operation
cmv-widgets copied to clipboard

Can you display an URL field for the Search widget?

Open cmccullough2 opened this issue 8 years ago • 2 comments
trafficstars

What format should an URL field have for the columns section? Media? I cannot find it in the API.

cmccullough2 avatar Dec 29 '16 14:12 cmccullough2

If you have a raw url in a field and need to construct the clickable hyperlink, use the dgrid's formatter attribute for the field's column definition. Here's an example for the dojo datagrid but the concept is the same for the dgrid.

tmcgee avatar Dec 30 '16 10:12 tmcgee

I forgot about this issue. Sorry about the delay. This is what I am talking about. Currently, I have the Identify widget perform the popup window. This result will take you to this website when the ICAO code is provided from the rest service field. https://www.windytv.com/KCDR. I can use this with the WAB eSearch widget. I would prefer to use your widget. "links": { "link": [ { "alias": "Windyty Wind Map Forecasts", "content": "https://www.windyty.com/{ICAO}", "icon": "./images/i_pws.png", "disablelinksifnull": true, "popuptype": "text" } ] }

cmccullough2 avatar Jan 24 '17 21:01 cmccullough2