Skip to content

Commit 0e8db2d

Browse files
committed
refactor(demo): Update Output demos
1 parent 730f20e commit 0e8db2d

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

dev/pages/outputs/OutputLink.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const schema
1212
{
1313
$formkit: 'primeOutputLink',
1414
name: 'link2',
15-
label: 'Ensure protocol with custom title',
15+
label: 'Ensure protocol and use custom title',
1616
title: 'Click me',
1717
},
1818

dev/pages/outputs/OutputReference.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ const schema
1313
{
1414
$formkit: 'primeOutputReference',
1515
name: 'externalValue',
16-
label: 'Another External Link',
16+
label: 'External Link with custom title',
17+
title: 'Show on GitHub',
1718
reference: 'https://github.com/sfxcode/{{valueNameNotImportant}}',
1819
},
1920
{
@@ -23,10 +24,18 @@ const schema
2324
internal: true,
2425
reference: '/outputs/{{value}}',
2526
},
27+
{
28+
$formkit: 'primeOutputReference',
29+
name: 'internalLink',
30+
label: 'Internal Link with custom title',
31+
internal: true,
32+
title: 'Show: {{value}}',
33+
reference: '/outputs/{{value}}',
34+
},
2635
2736
]
2837
29-
const data = { externalId: 42, externalValue: 'formkit', internalLink: 'outputLink' }
38+
const data = { externalId: 42, externalValue: 'formkit-primevue', internalLink: 'outputLink' }
3039
</script>
3140

3241
<template>

0 commit comments

Comments
 (0)