Skip to content

Commit 417f20a

Browse files
committed
feat(PrimeOutputBoolean): Add new Properties trueValue and falseValue
1 parent 0e25c05 commit 417f20a

File tree

1 file changed

+30
-11
lines changed

1 file changed

+30
-11
lines changed

dev/pages/outputs/OutputBoolean.vue

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,47 @@ const schema
77
{
88
$formkit: 'primeOutputBoolean',
99
name: 'trueValue',
10-
label: 'True Example',
11-
prefix: 'MyValue',
12-
iconPrefix: 'pi pi-check',
10+
label: 'Default',
11+
},
12+
{
13+
$formkit: 'primeOutputBoolean',
14+
name: 'trueValue',
15+
prefix: 'Boolean Value:',
16+
},
17+
{
18+
$formkit: 'primeOutputBoolean',
19+
name: 'falseValue',
20+
label: 'False Example',
21+
},
1322
23+
{
24+
$formkit: 'primeOutputBoolean',
25+
name: 'trueValue',
26+
label: 'True with custom Text',
27+
trueValue: 'Sure',
1428
},
1529
{
1630
$formkit: 'primeOutputBoolean',
1731
name: 'falseValue',
18-
label: 'False',
19-
suffix: 'MyValue',
32+
label: 'False with custom Text',
33+
falseValue: 'Never',
34+
},
35+
{
36+
$formkit: 'primeOutputBoolean',
37+
name: 'trueValue',
38+
label: 'Conditional true - only Icon',
39+
if: '$trueValue',
40+
trueValue: '',
2041
iconSuffix: 'pi pi-check',
2142
},
2243
{
2344
$formkit: 'primeOutputBoolean',
2445
name: 'falseValue',
25-
label: 'False',
26-
prefix: 'prefix',
27-
iconPrefix: 'pi pi-check',
28-
suffix: 'suffix',
29-
iconSuffix: 'pi pi-times',
46+
label: 'Conditional false - only Icon',
47+
if: '!$falseValue',
48+
falseValue: '',
49+
iconSuffix: 'pi pi-minus',
3050
},
31-
3251
]
3352
3453
const data = { trueValue: true, falseValue: false }

0 commit comments

Comments
 (0)