Fieldset
<k-fieldset>
This UI component hasn't been finalized yet. The functionality and syntax aren't stable and might be redone in an upcoming release. Only use it at your own risk - breaking changes are likely to occur.
The Fieldset component is a wrapper around manual field component creation. You simply pass it an fields object and a v-model and all field components will automatically be created including a nice field grid. This is the ideal starting point if you want an easy way to create fields without having to deal with a full form element.
Props
Prop | Type | Default | Description |
---|---|---|---|
config |
object |
– |
|
disabled |
boolean |
– |
|
fields |
array |object |
function() { return []; } |
|
novalidate |
boolean |
false |
If
true , form fields won't show their validation status on the fly. |
value |
object |
{} |
|
Methods
Method | Parameters | Description |
---|---|---|
focus |
|
Focus a specific field in the fieldset or the first one if no name is given |
hasField |
|
Check if a field with the given name exists in the fieldset |
hasFieldType |
|
Check if a particular field type exists |
Events
Event | Description | Passes |
---|---|---|
focus |
|
– |
input |
|
– |
invalid |
|
– |
submit |
|
– |