Links
Version 0.3 is under development. Do not use in a production.
Documentation is under development.
To add external or internal links, use the following syntax:
{ text: 'google', link: 'http://google.com' }
{ text: 'Go to page 2', linkToPage: 2 }
{ text: 'Go to Header', linkToDestination: 'header' },
{ text: 'Header content', id: 'header' },
Or link to local computer file:
var dd = {
content: [
{
text: 'link',
link: 'file:///c:/testFile.txt'
}
]
};
Properties
link
(string
) - URL to external sitelinkToPage
(number
) - link to page numberlinkToDestination
(string
) - link to document destination