Detail Arrows for List Items in Ionic 4's “ios” Mode2019 Community Moderator ElectionAngularJS ng-click to go to another page (with Ionic framework)ionic + android back button + sidemenu isOpen detection - not working reliablyhow to dynamically hide/show navBar in ionic framework?How to get Parse objectId of clicked item on ion-itemion-option-button in protractor test - click not registeredHide ion items in side menu after login in Ionic/AngularJsIonic navigation issue using the ion-nav-back-buttonHow to use Ionic Button to submit change in Checkbox valueIonic3 swipeBack not working across appCreating ionic list with thumbnails, buttons and clickable rows

I got the following comment from a reputed math journal. What does it mean?

Simplify an interface for flexibly applying rules to periods of time

Do I need life insurance if I can cover my own funeral costs?

Why do tuner card drivers fail to build after kernel update to 4.4.0-143-generic?

Why do passenger jet manufacturers design their planes with stall prevention systems?

Fastest way to pop N items from a large dict

Why did it take so long to abandon sail after steamships were demonstrated?

Why does overlay work only on the first tcolorbox?

"of which" is correct here?

When to use a slotted vs. solid turner?

This word with a lot of past tenses

Violin - Can double stops be played when the strings are not next to each other?

What is the relationship between relativity and the Doppler effect?

Relationship between sampajanna definitions in SN 47.2 and SN 47.35

How to explain that I do not want to visit a country due to personal safety concern?

Do I need to be arrogant to get ahead?

How to pronounce "I ♥ Huckabees"?

How are passwords stolen from companies if they only store hashes?

What exactly is this small puffer fish doing and how did it manage to accomplish such a feat?

Time travel from stationary position?

ERC721: How to get the owned tokens of an address

Why do newer 737s use two different styles of split winglets?

What's the meaning of a knight fighting a snail in medieval book illustrations?

World War I as a war of liberals against authoritarians?



Detail Arrows for List Items in Ionic 4's “ios” Mode



2019 Community Moderator ElectionAngularJS ng-click to go to another page (with Ionic framework)ionic + android back button + sidemenu isOpen detection - not working reliablyhow to dynamically hide/show navBar in ionic framework?How to get Parse objectId of clicked item on ion-itemion-option-button in protractor test - click not registeredHide ion items in side menu after login in Ionic/AngularJsIonic navigation issue using the ion-nav-back-buttonHow to use Ionic Button to submit change in Checkbox valueIonic3 swipeBack not working across appCreating ionic list with thumbnails, buttons and clickable rows










0















Got a small problem with list items, using the latest version of Ionic. According to the documentation for ion-item, for the detail property:




If true, a detail arrow will appear on the item. Defaults to false unless the mode is ios and an href, onclick or button property is present.




I am using the default, and this is working fine with href, but when I use (click) it doesn't show up for "ios" mode. The code is:



<ion-item (click)="saveContact()">


Am I doing something wrong to get this to work with click handlers?










share|improve this question






















  • Are you testing on the device or on the browser?

    – Jay Ordway
    Mar 6 at 21:22











  • I'm testing both. In both cases, when ios mode is active, the detail arrows appear when href is used but not for (click).

    – Nigel Peck
    Mar 6 at 23:57















0















Got a small problem with list items, using the latest version of Ionic. According to the documentation for ion-item, for the detail property:




If true, a detail arrow will appear on the item. Defaults to false unless the mode is ios and an href, onclick or button property is present.




I am using the default, and this is working fine with href, but when I use (click) it doesn't show up for "ios" mode. The code is:



<ion-item (click)="saveContact()">


Am I doing something wrong to get this to work with click handlers?










share|improve this question






















  • Are you testing on the device or on the browser?

    – Jay Ordway
    Mar 6 at 21:22











  • I'm testing both. In both cases, when ios mode is active, the detail arrows appear when href is used but not for (click).

    – Nigel Peck
    Mar 6 at 23:57













0












0








0








Got a small problem with list items, using the latest version of Ionic. According to the documentation for ion-item, for the detail property:




If true, a detail arrow will appear on the item. Defaults to false unless the mode is ios and an href, onclick or button property is present.




I am using the default, and this is working fine with href, but when I use (click) it doesn't show up for "ios" mode. The code is:



<ion-item (click)="saveContact()">


Am I doing something wrong to get this to work with click handlers?










share|improve this question














Got a small problem with list items, using the latest version of Ionic. According to the documentation for ion-item, for the detail property:




If true, a detail arrow will appear on the item. Defaults to false unless the mode is ios and an href, onclick or button property is present.




I am using the default, and this is working fine with href, but when I use (click) it doesn't show up for "ios" mode. The code is:



<ion-item (click)="saveContact()">


Am I doing something wrong to get this to work with click handlers?







ionic-framework ionic4






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 6 at 20:57









Nigel PeckNigel Peck

5,22821132




5,22821132












  • Are you testing on the device or on the browser?

    – Jay Ordway
    Mar 6 at 21:22











  • I'm testing both. In both cases, when ios mode is active, the detail arrows appear when href is used but not for (click).

    – Nigel Peck
    Mar 6 at 23:57

















  • Are you testing on the device or on the browser?

    – Jay Ordway
    Mar 6 at 21:22











  • I'm testing both. In both cases, when ios mode is active, the detail arrows appear when href is used but not for (click).

    – Nigel Peck
    Mar 6 at 23:57
















Are you testing on the device or on the browser?

– Jay Ordway
Mar 6 at 21:22





Are you testing on the device or on the browser?

– Jay Ordway
Mar 6 at 21:22













I'm testing both. In both cases, when ios mode is active, the detail arrows appear when href is used but not for (click).

– Nigel Peck
Mar 6 at 23:57





I'm testing both. In both cases, when ios mode is active, the detail arrows appear when href is used but not for (click).

– Nigel Peck
Mar 6 at 23:57












1 Answer
1






active

oldest

votes


















1














I looked into the source code and it appears to be a bug with Ionic (v 4.1.0). This is from the source code, it appears that if the mode is set to "ios" and isClickable, then the detail arrow is shown.



isClickable() appears to be incorrect since it doesn't take into account the "onClick" and just looks for href and if the button attr is set to true. If button is set to true or href is passed, I do see the arrow with ios mode.



 private isClickable(): boolean 


Then in the render method at line 153, when the the showDetail boolean is set (to show the arrow):



const clickable = this.isClickable();
const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div' as any;
const attrs = TagType === 'button' ? type : href ;
const showDetail = detail !== undefined ? detail : mode === 'ios' && clickable;


Reference:



https://github.com/ionic-team/ionic/blob/master/core/src/components/item/item.tsx






share|improve this answer

























  • That's not correct. Including the property means you are explicitly setting it to true, it's just a shorthand for it. I double checked and it just switches it on for all modes, as expected. The only way to get the varied behaviour that is default, is to not set the property at all. Otherwise you're giving it an explicit value one way or the other, for all modes. As I said in the question, it works fine using href, the only problem is when using (click).

    – Nigel Peck
    Mar 7 at 7:28












  • I created a pull request to fix this issue: github.com/ionic-team/ionic/pull/17708

    – Jay Ordway
    Mar 7 at 15:04











  • Nice, thanks, will keep an eye on the PR for more info :)

    – Nigel Peck
    Mar 7 at 17:00










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55032014%2fdetail-arrows-for-list-items-in-ionic-4s-ios-mode%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














I looked into the source code and it appears to be a bug with Ionic (v 4.1.0). This is from the source code, it appears that if the mode is set to "ios" and isClickable, then the detail arrow is shown.



isClickable() appears to be incorrect since it doesn't take into account the "onClick" and just looks for href and if the button attr is set to true. If button is set to true or href is passed, I do see the arrow with ios mode.



 private isClickable(): boolean 


Then in the render method at line 153, when the the showDetail boolean is set (to show the arrow):



const clickable = this.isClickable();
const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div' as any;
const attrs = TagType === 'button' ? type : href ;
const showDetail = detail !== undefined ? detail : mode === 'ios' && clickable;


Reference:



https://github.com/ionic-team/ionic/blob/master/core/src/components/item/item.tsx






share|improve this answer

























  • That's not correct. Including the property means you are explicitly setting it to true, it's just a shorthand for it. I double checked and it just switches it on for all modes, as expected. The only way to get the varied behaviour that is default, is to not set the property at all. Otherwise you're giving it an explicit value one way or the other, for all modes. As I said in the question, it works fine using href, the only problem is when using (click).

    – Nigel Peck
    Mar 7 at 7:28












  • I created a pull request to fix this issue: github.com/ionic-team/ionic/pull/17708

    – Jay Ordway
    Mar 7 at 15:04











  • Nice, thanks, will keep an eye on the PR for more info :)

    – Nigel Peck
    Mar 7 at 17:00















1














I looked into the source code and it appears to be a bug with Ionic (v 4.1.0). This is from the source code, it appears that if the mode is set to "ios" and isClickable, then the detail arrow is shown.



isClickable() appears to be incorrect since it doesn't take into account the "onClick" and just looks for href and if the button attr is set to true. If button is set to true or href is passed, I do see the arrow with ios mode.



 private isClickable(): boolean 


Then in the render method at line 153, when the the showDetail boolean is set (to show the arrow):



const clickable = this.isClickable();
const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div' as any;
const attrs = TagType === 'button' ? type : href ;
const showDetail = detail !== undefined ? detail : mode === 'ios' && clickable;


Reference:



https://github.com/ionic-team/ionic/blob/master/core/src/components/item/item.tsx






share|improve this answer

























  • That's not correct. Including the property means you are explicitly setting it to true, it's just a shorthand for it. I double checked and it just switches it on for all modes, as expected. The only way to get the varied behaviour that is default, is to not set the property at all. Otherwise you're giving it an explicit value one way or the other, for all modes. As I said in the question, it works fine using href, the only problem is when using (click).

    – Nigel Peck
    Mar 7 at 7:28












  • I created a pull request to fix this issue: github.com/ionic-team/ionic/pull/17708

    – Jay Ordway
    Mar 7 at 15:04











  • Nice, thanks, will keep an eye on the PR for more info :)

    – Nigel Peck
    Mar 7 at 17:00













1












1








1







I looked into the source code and it appears to be a bug with Ionic (v 4.1.0). This is from the source code, it appears that if the mode is set to "ios" and isClickable, then the detail arrow is shown.



isClickable() appears to be incorrect since it doesn't take into account the "onClick" and just looks for href and if the button attr is set to true. If button is set to true or href is passed, I do see the arrow with ios mode.



 private isClickable(): boolean 


Then in the render method at line 153, when the the showDetail boolean is set (to show the arrow):



const clickable = this.isClickable();
const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div' as any;
const attrs = TagType === 'button' ? type : href ;
const showDetail = detail !== undefined ? detail : mode === 'ios' && clickable;


Reference:



https://github.com/ionic-team/ionic/blob/master/core/src/components/item/item.tsx






share|improve this answer















I looked into the source code and it appears to be a bug with Ionic (v 4.1.0). This is from the source code, it appears that if the mode is set to "ios" and isClickable, then the detail arrow is shown.



isClickable() appears to be incorrect since it doesn't take into account the "onClick" and just looks for href and if the button attr is set to true. If button is set to true or href is passed, I do see the arrow with ios mode.



 private isClickable(): boolean 


Then in the render method at line 153, when the the showDetail boolean is set (to show the arrow):



const clickable = this.isClickable();
const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div' as any;
const attrs = TagType === 'button' ? type : href ;
const showDetail = detail !== undefined ? detail : mode === 'ios' && clickable;


Reference:



https://github.com/ionic-team/ionic/blob/master/core/src/components/item/item.tsx







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 7 at 8:01

























answered Mar 7 at 3:48









Jay OrdwayJay Ordway

6661325




6661325












  • That's not correct. Including the property means you are explicitly setting it to true, it's just a shorthand for it. I double checked and it just switches it on for all modes, as expected. The only way to get the varied behaviour that is default, is to not set the property at all. Otherwise you're giving it an explicit value one way or the other, for all modes. As I said in the question, it works fine using href, the only problem is when using (click).

    – Nigel Peck
    Mar 7 at 7:28












  • I created a pull request to fix this issue: github.com/ionic-team/ionic/pull/17708

    – Jay Ordway
    Mar 7 at 15:04











  • Nice, thanks, will keep an eye on the PR for more info :)

    – Nigel Peck
    Mar 7 at 17:00

















  • That's not correct. Including the property means you are explicitly setting it to true, it's just a shorthand for it. I double checked and it just switches it on for all modes, as expected. The only way to get the varied behaviour that is default, is to not set the property at all. Otherwise you're giving it an explicit value one way or the other, for all modes. As I said in the question, it works fine using href, the only problem is when using (click).

    – Nigel Peck
    Mar 7 at 7:28












  • I created a pull request to fix this issue: github.com/ionic-team/ionic/pull/17708

    – Jay Ordway
    Mar 7 at 15:04











  • Nice, thanks, will keep an eye on the PR for more info :)

    – Nigel Peck
    Mar 7 at 17:00
















That's not correct. Including the property means you are explicitly setting it to true, it's just a shorthand for it. I double checked and it just switches it on for all modes, as expected. The only way to get the varied behaviour that is default, is to not set the property at all. Otherwise you're giving it an explicit value one way or the other, for all modes. As I said in the question, it works fine using href, the only problem is when using (click).

– Nigel Peck
Mar 7 at 7:28






That's not correct. Including the property means you are explicitly setting it to true, it's just a shorthand for it. I double checked and it just switches it on for all modes, as expected. The only way to get the varied behaviour that is default, is to not set the property at all. Otherwise you're giving it an explicit value one way or the other, for all modes. As I said in the question, it works fine using href, the only problem is when using (click).

– Nigel Peck
Mar 7 at 7:28














I created a pull request to fix this issue: github.com/ionic-team/ionic/pull/17708

– Jay Ordway
Mar 7 at 15:04





I created a pull request to fix this issue: github.com/ionic-team/ionic/pull/17708

– Jay Ordway
Mar 7 at 15:04













Nice, thanks, will keep an eye on the PR for more info :)

– Nigel Peck
Mar 7 at 17:00





Nice, thanks, will keep an eye on the PR for more info :)

– Nigel Peck
Mar 7 at 17:00



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55032014%2fdetail-arrows-for-list-items-in-ionic-4s-ios-mode%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved