Kevin5712805
Posts: 0
Joined: Tue Apr 02, 2013 1:07 am

Formatting Output??

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Formatting Output??

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

Kevin5712805
Posts: 0
Joined: Tue Apr 02, 2013 1:07 am

Formatting Output??

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Formatting Output??

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.

Kevin5712805
Posts: 0
Joined: Tue Apr 02, 2013 1:07 am

Formatting Output??

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Formatting Output??

Yes, you can do it by coding with JavaScript.

Kevin5712805
Posts: 0
Joined: Tue Apr 02, 2013 1:07 am

Formatting Output??

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Formatting Output??

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)

Return to “Issues”