Preview:
<?=$form->field($model, 'id_indicador')->widget(DepDrop::classname(), [
                                                'options' => ['id' => 'id-indicador', 'onchange' => 'buscarIdentificador(this.value)'],
                                            /* aqui*/'data' => $model->isNewRecord ? [] : ArrayHelper::map(Indicadoresentescon::find()->where(['id_ente' => $model->id_ente])->all(), 'id_indicador', 'nombre_indicador'),
                                                // ensure at least the preselected value is available
                                                'pluginOptions' => [
                                                'depends' => ['id-ente'],
                                                // the id for cat attribute
                                                'placeholder' => 'Seleccione un indicador...',
                                                'url' => Url::to(['indicadores/listar'])
                                                ]
                                        ]); ?>
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter