You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
I wanted my default back button to not have any text, just an icon. Turns out you need to add "iconpos='notext'" to a link with no text. Apperantly you can't set this in the options or anything like that. So I put it myself in the code.
I just added to the '_create' function of 'mobile.page' to check if there is no text in the 'backBtnText' variable, then add the iconpos attribute to the a tag.
Perhaps you could use something likewise in a future version?
I wanted my default back button to not have any text, just an icon. Turns out you need to add "iconpos='notext'" to a link with no text. Apperantly you can't set this in the options or anything like that. So I put it myself in the code.
I just added to the '_create' function of 'mobile.page' to check if there is no text in the 'backBtnText' variable, then add the iconpos attribute to the a tag.
Perhaps you could use something likewise in a future version?
I changed
var backBtn = $( "<a href='#' class='ui-btn-left' data-"+ $.mobile.ns +"rel='back' data-"+ $.mobile.ns +"icon='arrow-l'>"+ o.backBtnText +"</a>" ).prependTo( $this );
to
var backBtn = $( "<a href='#' class='ui-btn-left' data-"+ $.mobile.ns +"rel='back' data-"+ $.mobile.ns +"icon='arrow-l' " + (!o.backBtnText ? "data-iconpos='notext'" : "") + ">"+ o.backBtnText +"</a>" ).prependTo( $this );
The text was updated successfully, but these errors were encountered: