Open Hyperlink in new window/tab

QuestionsOpen Hyperlink in new window/tab
NoobMaster69 asked 4 years 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 4 years 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
Grid 4 PHP Framework
 
Your Answer

1 + 0 =

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?