简体   繁体   中英

style input component in kendo-ui for angular2

I'm trying kendo ui for ng2. I've used the numericinput textbox but I can't find a way on how to style it, in particular I'm need to change the with 100%, how is this possible?

           <kendo-numerictextbox   [value]="kendonumericvalue"
                                   formControlName="kendoNumericTextControl" 
                                   [min]="-3"
                                   [max]="10"
                                   [autoCorrect]="true"
                                   style="width: 100%"> //<--not working
           </kendo-numerictextbox>

Seems to be working in this plnkr - http://plnkr.co/edit/TM86TiyFkDQXxXRNIVEv?p=preview

 <kendo-numerictextbox [value]="value"
     [min]="-3"
     [max]="10"
     [autoCorrect]="true"
     style="width: 100%"> //<--applied to the host element
 </kendo-numerictextbox>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM