Skip to content

Commit

Permalink
Update doc docs/elements.rst. Aded ref support
Browse files Browse the repository at this point in the history
  • Loading branch information
Adekunle Adekoya authored and Progi1984 committed Aug 12, 2024
1 parent 2a18150 commit 2404cc8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Empty file removed docs/elements.rst
Empty file.
9 changes: 9 additions & 0 deletions docs/usage/elements/field.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Currently the following fields are supported:
- XE
- INDEX
- FILENAME
- REF

``` php
<?php
Expand Down Expand Up @@ -37,4 +38,12 @@ $section->addField('XE', array(), array(), $fieldText);

//this actually adds the index
$section->addField('INDEX', array(), array('\\e " " \\h "A" \\c "3"'), 'right click to update index');

//Adding reference to a bookmark
$fieldText->addField('REF', [
'name' => 'bookmark'
], [
'InsertParagraphNumberRelativeContext',
'CreateHyperLink',
]);
```

0 comments on commit 2404cc8

Please sign in to comment.