mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Added a few other field types to test file.
This commit is contained in:
@@ -15,6 +15,9 @@ class AppController {
|
||||
minlength: 3
|
||||
}
|
||||
},
|
||||
{
|
||||
template: '<hr />'
|
||||
},
|
||||
{
|
||||
field: 'project',
|
||||
type: 'input',
|
||||
@@ -25,6 +28,24 @@ class AppController {
|
||||
},
|
||||
{
|
||||
template: () => 'hello'
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
key: 'zip',
|
||||
templateOptions: {
|
||||
type: 'number',
|
||||
label: 'Zip',
|
||||
max: 99999,
|
||||
min: 0,
|
||||
pattern: '\\d{5}'
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'checkbox',
|
||||
key: 'happyUser',
|
||||
templateOptions: {
|
||||
label: 'Are you happy?'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user