Skip to content

Commit e169273

Browse files
committed
Update playground
1 parent 056e218 commit e169273

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

docs/src/demos.js

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,18 +292,28 @@ const DEMOS = [
292292
},
293293

294294
{
295-
name: 'Readonly inputs',
296-
slug: 'readonly-inputs',
295+
name: 'Readonly & Hidden inputs',
296+
slug: 'readonly-hidden-inputs',
297297
schema: {
298298
type: 'object',
299299
keys: {
300-
name: {
300+
first_name: {
301301
type: 'string',
302302
placeholder: 'Readonly input',
303303
readonly: true
304+
},
305+
last_name: {
306+
type: 'string',
307+
widget: 'hidden'
304308
}
305309
}
306-
}
310+
},
311+
description: () => (
312+
<div>
313+
The following schema has two inputs.
314+
<code>first_name</code> is readonly and <code>last_name</code> is hidden so it's not visible.
315+
</div>
316+
)
307317
},
308318

309319
{

docs/static/css/docs.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,9 @@ button.rjf-add-button:hover {
567567
display: table;
568568
width: 100%;
569569
}
570+
.rjf-form-row-hidden {
571+
display: none;
572+
}
570573
.rjf-form-row-inner {
571574
display: table;
572575
width: 100%;

docs/static/js/playground.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)