{"$schema":"https://yii2-framework.github.io/docs/reference/reference.schema.json","schemaVersion":1,"package":"time-picker","title":"TimePicker","repository":"https://github.com/yii2-extensions/time-picker","ref":"main","commit":"7795b4c3bda0c981c3ac19ad307cadd6babf5298","generatedAt":"2026-12-03","url":"https://yii2-framework.github.io/docs/extensions/time-picker/reference/","types":{"yii2\\extensions\\timepicker\\TimePicker":{"kind":"class","url":"https://yii2-framework.github.io/docs/extensions/time-picker/reference/timepicker/","summary":"Renders a Timepicker bound to a model attribute or a named input.","extends":"yii\\widgets\\InputWidget","implements":["yii\\base\\ViewContextInterface","yii\\base\\Configurable"],"properties":{"addon":{"type":"string|false|null","default":"null","description":"Trusted HTML for the addon, `false` to render no addon, or `null` for the Bootstrap version's clock icon."},"addonOptions":{"type":"array<string, mixed>","default":"[]","description":"Addon attributes, including optional asButton and buttonOptions."},"bsVersion":{"type":"int|string|null","default":"null","description":"Bootstrap major version or dotted version; defaults to the application setting or Bootstrap 3."},"containerOptions":{"type":"array<array-key, mixed>","default":"[]","description":"Outer wrapper attributes."},"defaultOptions":{"type":"array<string, mixed>","default":"[]","description":"Defaults merged before the supplied HTML attributes."},"defaultPluginOptions":{"type":"array<string, mixed>","default":"[]","description":"Defaults merged before the supplied plugin options."},"disabled":{"type":"bool","default":"false","description":"Sets the disabled HTML attribute unless options already specifies it."},"hashVarLoadPosition":{"type":"int","default":"\\yii\\web\\View::POS_HEAD","description":"Yii view position for the JavaScript option variable."},"language":{"type":"string|null","default":"null","description":"Language passed to Yii message translation for the popup opener."},"pjaxContainerId":{"type":"string|null","default":"null","description":"Optional PJAX container ID used to reinitialize replaced fields."},"pluginEvents":{"type":"array<string, string|yii\\web\\JsExpression>","default":"[]","description":"JavaScript callbacks keyed by jQuery event name."},"pluginOptions":{"type":"array<string, mixed>|false","default":"[]","description":"JavaScript options, or false to keep a plain input."},"readonly":{"type":"bool","default":"false","description":"Sets the readonly HTML attribute unless options already specifies it."},"size":{"type":"string|null","default":"null","description":"Bootstrap input sizing suffix."}},"methods":{"init":{"signature":"public function init(): void","summary":"Merges input defaults and resolves the Bootstrap major version.","return":{"type":"void"}},"registerAssets":{"signature":"public function registerAssets(): void","summary":"Registers the local assets and the initial options used by the jQuery and DynamicForm entry points.","return":{"type":"void"}},"renderInput":{"signature":"protected function renderInput(): string","summary":"Renders the Bootstrap version's input group and addon.","return":{"type":"string"},"visibility":"protected"},"run":{"signature":"public function run(): string","summary":"Registers the assets and renders the time picker or a plain text input.","return":{"type":"string"}}},"inherited":{"properties":{"attribute":"yii\\widgets\\InputWidget","autoIdPrefix":"yii\\base\\Widget","behaviors":"yii\\base\\Component","field":"yii\\widgets\\InputWidget","id":"yii\\base\\Widget","model":"yii\\widgets\\InputWidget","name":"yii\\widgets\\InputWidget","options":"yii\\widgets\\InputWidget","value":"yii\\widgets\\InputWidget","view":"yii\\base\\Widget","viewPath":"yii\\base\\Widget"},"methods":{"__call":"yii\\base\\Component","__clone":"yii\\base\\Component","__construct":"yii\\base\\BaseObject","__get":"yii\\base\\Component","__isset":"yii\\base\\Component","__set":"yii\\base\\Component","__unset":"yii\\base\\Component","afterRun":"yii\\base\\Widget","attachBehavior":"yii\\base\\Component","attachBehaviors":"yii\\base\\Component","beforeRun":"yii\\base\\Widget","begin":"yii\\base\\Widget","behaviors":"yii\\base\\Component","canGetProperty":"yii\\base\\Component","canSetProperty":"yii\\base\\Component","className":"yii\\base\\BaseObject","detachBehavior":"yii\\base\\Component","detachBehaviors":"yii\\base\\Component","end":"yii\\base\\Widget","ensureBehaviors":"yii\\base\\Component","getBehavior":"yii\\base\\Component","getBehaviors":"yii\\base\\Component","getId":"yii\\base\\Widget","getView":"yii\\base\\Widget","getViewPath":"yii\\base\\Widget","hasEventHandlers":"yii\\base\\Component","hasMethod":"yii\\base\\Component","hasModel":"yii\\widgets\\InputWidget","hasProperty":"yii\\base\\Component","off":"yii\\base\\Component","on":"yii\\base\\Component","render":"yii\\base\\Widget","renderFile":"yii\\base\\Widget","renderInputHtml":"yii\\widgets\\InputWidget","setId":"yii\\base\\Widget","setView":"yii\\base\\Widget","trigger":"yii\\base\\Component","widget":"yii\\base\\Widget"},"events":{"EVENT_INIT":"yii\\base\\Widget","EVENT_BEFORE_RUN":"yii\\base\\Widget","EVENT_AFTER_RUN":"yii\\base\\Widget"}}},"yii2\\extensions\\timepicker\\TimePickerAsset":{"kind":"class","url":"https://yii2-framework.github.io/docs/extensions/time-picker/reference/timepickerasset/","summary":"Publishes the bundled Timepicker and optionally registers installed Yii Bootstrap assets.","extends":"yii\\web\\AssetBundle","implements":["yii\\base\\Configurable"],"properties":{"bsDependencyEnabled":{"type":"bool|null","default":"null","description":"Whether to register an installed Yii Bootstrap adapter."},"bsPluginEnabled":{"type":"bool","default":"false","description":"Whether to register its JavaScript bundle as well as CSS."},"css":{"default":"self::CSS","description":"CSS files for the asset bundle."},"debug":{"type":"bool|null","default":"null","description":"Overrides Yii debug mode when choosing the bundled asset files."},"depends":{"default":"[\\yii\\web\\YiiAsset::class]","description":"Asset bundles that this bundle depends on."},"js":{"default":"self::JS","description":"JavaScript files for the asset bundle."},"sourcePath":{"default":"__DIR__ . '/assets'","description":"Source path for the asset bundle."}},"methods":{"__construct":{"signature":"public function __construct(array<string, mixed> $config = [])","summary":"Normalizes the legacy empty asset sentinels before Yii configures its file lists.","params":[{"name":"$config","type":"array<string, mixed>","default":"[]","optional":true}]},"init":{"signature":"public function init(): void","summary":"Selects minified assets outside debug mode and normalizes the legacy empty path.","return":{"type":"void"}},"registerBootstrap":{"signature":"public function registerBootstrap(yii\\web\\View $view, 3|4|5 $version): void","summary":"Registers the optional installed Bootstrap adapter for the widget's effective version.","params":[{"name":"$view","type":"yii\\web\\View"},{"name":"$version","type":"3|4|5"}],"return":{"type":"void"}}},"constants":{"EMPTY_ASSET":{"value":"'N0/@$$3T$'","description":"Retained for existing asset manager overrides that disable a file list."},"EMPTY_PATH":{"value":"'N0/P@T#'","description":"Retained for existing asset manager overrides that disable publication."}},"inherited":{"properties":{"basePath":"yii\\web\\AssetBundle","baseUrl":"yii\\web\\AssetBundle","cssOptions":"yii\\web\\AssetBundle","jsOptions":"yii\\web\\AssetBundle","publishOptions":"yii\\web\\AssetBundle"},"methods":{"__call":"yii\\base\\BaseObject","__get":"yii\\base\\BaseObject","__isset":"yii\\base\\BaseObject","__set":"yii\\base\\BaseObject","__unset":"yii\\base\\BaseObject","canGetProperty":"yii\\base\\BaseObject","canSetProperty":"yii\\base\\BaseObject","className":"yii\\base\\BaseObject","hasMethod":"yii\\base\\BaseObject","hasProperty":"yii\\base\\BaseObject","publish":"yii\\web\\AssetBundle","register":"yii\\web\\AssetBundle","registerAssetFiles":"yii\\web\\AssetBundle"}}}}}
