-{"displayName":"TimeField","description":"Form field to handle a time value.\n\nHave a look at `<k-field>`, `<k-input>`\nand `<k-time-input>` for additional information.","tags":{"examples":[{"title":"example","content":"<k-time-field :value=\"time\" @input=\"time = $event\" name=\"time\" label=\"Time\" />"}]},"props":[{"name":"disabled","description":"If `true`, the field is no longer editable and will not be saved","type":{"name":"boolean"}},{"name":"help","description":"Optional help text below the field","type":{"name":"string"}},{"name":"id","description":"A unique ID. The component `_uid` will be used as default.","type":{"name":"number|string"},"defaultValue":{"value":"function() {\n return this._uid;\n}"}},{"name":"label","description":"A descriptive label for the field","type":{"name":"string|boolean"}},{"name":"name","description":"A unique name for the input","type":{"name":"number|string"}},{"name":"required","description":"If `true`, the field has to be filled in correctly to be submitted","type":{"name":"boolean"}},{"name":"counter","type":{"name":"boolean|object"}},{"name":"endpoints","type":{"name":"object"}},{"name":"input","type":{"name":"string|number|boolean"},"defaultValue":{"value":"null"}},{"name":"translate","type":{"name":"boolean"}},{"name":"type","type":{"name":"string"},"defaultValue":{"value":"\"time\""}},{"name":"after","description":"Optional text that will be shown after the input","type":{"name":"string"}},{"name":"before","description":"Optional text that will be shown before the input","type":{"name":"string"}},{"name":"autofocus","type":{"name":"boolean"}},{"name":"icon","type":{"name":"string"},"description":"Icon used for the input (and times dropdown)","defaultValue":{"value":"\"clock\""}},{"name":"value","type":{"name":"string"},"defaultValue":{"value":"null"},"description":"Value must be provided as ISO time string","tags":{"example":[{"description":"`22:33:00`","title":"example"}]}},{"name":"max","description":"The last allowed time as ISO time string","tags":{"example":[{"description":"`22:30:00`","title":"example"}]},"type":{"name":"string"}},{"name":"min","description":"The first allowed time as ISO time string","tags":{"example":[{"description":"`01:30:00`","title":"example"}]},"type":{"name":"string"}},{"name":"display","description":"Format to parse and display the time","tags":{"example":[{"description":"`hh:mm a`","title":"example"}]},"values":["HH","H","hh","h","mm","m","ss","s","a"],"type":{"name":"string"},"defaultValue":{"value":"\"HH:mm\""}},{"name":"step","description":"Rounding to the nearest step.\nRequires an object with a `unit`\nand a `size` key","tags":{"example":[{"description":"{ unit: 'second', size: 15 }","title":"example"}]},"type":{"name":"object"},"defaultValue":{"value":"{\n size: 5,\n unit: \"minute\"\n}"}},{"name":"times","description":"Deactivate the times dropdown or not","type":{"name":"boolean"},"defaultValue":{"value":"true"}}],"events":[{"name":"input","type":{"names":["undefined"]}},{"name":"focus"},{"name":"blur"},{"name":"submit"}],"methods":[{"name":"focus","description":"Focuses the input element","tags":{"access":[{"description":"public"}]}}],"slots":[{"name":"header"},{"name":"label"},{"name":"options"},{"name":"counter"},{"name":"default"},{"name":"footer"},{"name":"help"},{"name":"before"},{"name":"after"},{"name":"icon"}],"component":"k-time-field","sourceFile":"src/components/Forms/Field/TimeField.vue"}
0 commit comments