getAddressLabel();
The getAddressLabel method returns address label object.
To execute the example, in the <head> tag of HTML page add links to the JS and CSS files:
PP.js.
PP.Metabase.js.
PP.App.js.
PP.css.
PP.App.css.
App.resources.ru.js.
Add the onload attribute in the <body> tag:
<body onload="Ready()"> </body>
In the <script> tag add the script for creating the ContactInfo class and getting element data:
function Ready() { // Determine settings settings = { Address: "Perm", PhoneNumbers: ["82736"], FaxNumbers: ["823763"], MailAddress: ["support@fsight.ru"], Site: "http://www.fsight.ru", } // Create a class contact = new PP.Application.ContactInfo(settings); // Get contact objects console.log(contact.getAddressLabel()); console.log(contact.getMailHyperLink()); console.log(contact.getPhonesLabel()); console.log(contact.getSiteHyperLink()); // Open the dialog box with contact data about = new PP.Application.AboutBox({ ContactInfo: contact }); // Display dialog box about.show(); }
After executing the example the page displays the About dialog box, the console displays contact data.
See also: