Skip to content

Commit

Permalink
Merge pull request #1211 from codaxy/feat/link-button-target
Browse files Browse the repository at this point in the history
Add support for `target` property
  • Loading branch information
mstijak authored Apr 27, 2024
2 parents 5aa15c3 + 2808d82 commit f868fec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/content/widgets/configs/LinkButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ export default {
</Md></cx>
},

target: {
type: 'string',
key: true,
description: <cx><Md>
This attribute specifies where to open the linked document.
</Md></cx>
},

match: {
type: 'string',
key: true,
Expand Down
1 change: 1 addition & 0 deletions packages/cx/src/widgets/nav/LinkButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class LinkButton extends Button {
{
href: undefined,
url: undefined,
target: undefined,
active: undefined,
activeClass: undefined,
activeStyle: undefined,
Expand Down

0 comments on commit f868fec

Please sign in to comment.