Open Hyperlink in new window/tab

QuestionsOpen Hyperlink in new window/tab
NoobMaster69 asked 3 weeks ago

Hi Abu.

 

I was wondering if you can help me.

$col = array();
$col[“title”] = “TITLE”;
$col[“name”] = “titlebd”;
$col[“width”] = “10”;
$col[“editable”] = true;
$col[“default”] = “Capture”;
$col[“align”] = “center”;
$liga = “file_to_open.php?id_file_to_open={id}”;
$col[“link”] = $liga;
$col[“search”] = false;

$cols[] = $col;

 

I would like to know how to open the new grid link on a new tab of the browser.

 

Thanks

1 Answers
Abu Ghufran Staff answered 3 weeks ago

Pasting from docs: http://www.phpgrid.org/docs/column-options/#make-the-data-in-column-as-hyperlink

Set:  $col[“linkoptions”] = “target=’_blank'”;

_________________________
Abu Ghufran - Dev Team
PHP Grid Framework
 
Your Answer

15 + 10 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!