Author Topic: How to make a Toolbar button to open an url?  (Read 2133 times)

emontes

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 8
    • View Profile
How to make a Toolbar button to open an url?
« on: April 30, 2016, 06:12:37 am »
I mean, I need a button in the toolbar to open a news website,  and also In the grid a button to do something like "Show this product page"

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: How to make a Toolbar button to open an url?
« Reply #1 on: May 02, 2016, 08:57:02 am »
Please consult the demos, there are many examples for placing a button in the toolbar and the grid cells.

http://paramquery.com/pro/demos/checkbox_id

http://paramquery.com/pro/demos/editing ( check the code for column.render and column.postRender in last column of colModel )

The code to open a new window/ website can be placed in the button listener callback / click event.