Page 1 of 1

Add text or graphics to mobilefooter of page?

Posted: Wed Jul 08, 2015 6:02 pm
by Chris N

For the mobileheader on a page I can modify the existing title value via jQuery, or insert labels/buttons, etc into the header block. However, I don't seem to be able to add any text (no text box is exposed in the builder UI, and jQuery doesn't populate a text value) or any items to the footer. How can I add dynamic text or graphics to the footer?


Add text or graphics to mobilefooter of page?

Posted: Wed Jul 08, 2015 6:04 pm
by Chris N

To clarify, it looks like I can add buttons to the footer, but the other UI elements (I just want to add a graphic and a dynamic text box) don't seem to be allowed?


Add text or graphics to mobilefooter of page?

Posted: Thu Jul 09, 2015 8:43 am
by Pavel Zarudniy

Hi Chris,
Please see this topic, related to you question - https://getsatisfaction.com/apperyio/topics/adding_content_to_the_footer


Add text or graphics to mobilefooter of page?

Posted: Thu Jul 09, 2015 4:49 pm
by Chris N

Hi Pavel,

That link shows the following code to insert an image in the footer:

code
Tiggzi("mobilefooterName")&#46;html("<img src='" + Tiggzi&#46;getImagePath('pic_name&#46;jpg') + "'>");
/code

I have two questions regarding this example:

  1. Should Tiggzi be replaced with Apperyio?

  2. Can you give an example of how to add a text label in the same way? Normally text labels in Appery are wrapped in a div - do I add another div for a label, or simply the text since there should already be a div for the footer?

    For example would the following be the right way?
    code
    Apperyio('mobilefooterName')&#46;html('<div name="mylabel" data-role="appery_label" class="myclass">My label text<>');
    /code


Add text or graphics to mobilefooter of page?

Posted: Thu Jul 09, 2015 6:14 pm
by Evgene Karachevtsev

Chris,

  1. Yes, you should change it to Appery or Apperyio.
  2. Sorry, I'm not sure I understand you correctly, could you please clarify this question?
    If you want to set the value of a label you may use the following code preApperyio("label_name")&#46;text("text")/pre

Add text or graphics to mobilefooter of page?

Posted: Thu Jul 09, 2015 6:25 pm
by Chris N

Hi Evgene,

Using the Appery interface, I'm unable to add a label to the footer. How can I add a label to the footer using the Appery tools? In my code examples for the previous message I was trying to understand if it was possible to add or "inject" a label into the footer using the .html command.

Thank you,
Chris


Add text or graphics to mobilefooter of page?

Posted: Sat Jul 11, 2015 9:27 am
by Evgene Karachevtsev

Chris,

Please try this code on page load event
precodevar labelName = Appery('mobilelabel_3');
var footer = Appery('mobilefooter');

labelName&#46;appendTo(footer); /code/pre