Page 1 of 1

Formatting Output??

Posted: Tue Apr 02, 2013 1:10 am
by Kevin5712805

How do I format output in tiggzi? I have the user enter information such as Name, Breed, ect. and when the output is displayed it only displays what the user enters. I want to know how I can format so it says Name: "then whatever the user enters", etc.


Formatting Output??

Posted: Tue Apr 02, 2013 1:43 am
by maxkatz

You could program it with JavaScript. This tutorial shows how to do it: http://docs.tiggzi.com/tutorials/buil...


Formatting Output??

Posted: Tue Apr 02, 2013 1:48 am
by Kevin5712805

Is there any sample code you could provide on how to do it?


Formatting Output??

Posted: Tue Apr 02, 2013 2:22 am
by maxkatz

var name = Tiggzi('nameInput').val();
var greeting = "Hello " + name;
Tiggzi('outputLabel').text(greeting).

nameInput - is the name of an input component
outputLabel - is the name of an output component.


Formatting Output??

Posted: Tue Apr 09, 2013 1:27 am
by Kevin5712805

Is there any way to get the output of a label to be displayed inside of a panel???


Formatting Output??

Posted: Tue Apr 09, 2013 1:29 am
by maxkatz

Yes, you can do it by coding with JavaScript.


Formatting Output??

Posted: Tue Apr 09, 2013 1:40 am
by Kevin5712805

Could you provide me some sample code? I am terrible at programming


Formatting Output??

Posted: Tue Apr 09, 2013 2:48 am
by maxkatz

Sorry, I don't have an example off the top of my head. Place a div inside the panel component. In JavaScript, select the div and set its content to the message you need (from Label)