Page 1 of 1

How to define a target attribute of anURL component in a list?

Posted: Thu Jul 03, 2014 5:42 pm
by Alexis Revue

Hi,

My App is reading a RSS flow and I would like to open each link into a new browser (playing with "self", "system", "blank").

I've check the following tutorial:
http://devcenter.appery.io/tutorials/...

If I use URL component, I cannot change the target attribute.

If I use a Label component with a javascript like in the tutorial, I got an issue since the item is stored in a list. As a consequence, the name of the label storing the link is not unique.

How could I open listed links into a browser with target=_blank?

Thank you,

Alexis


How to define a target attribute of anURL component in a list?

Posted: Thu Jul 03, 2014 8:01 pm
by Kateryna Grynko

Hi Alexis,

You can set any attribute using JS:preApperyio("componentName").attr(attrName, attrValue);/pre


How to define a target attribute of anURL component in a list?

Posted: Wed Aug 06, 2014 12:26 am
by Alexis Revue

Thank you