I am using angular2-mdl for my project and did not find any way to integrate textarea or select option. How to add select input box and textarea using angular2-mdl?
For now angular2-mdl has no custom way to implement a select element but instead has an extended version which is yet to be released. You can see the project @ www.github.com/mseemann/angular2-mdl-ext
You can implement the default select element for now:
<select>
<option>Mdl</option>
</select>
You can implement a textarea element like this:
<mdl-textfield label="Text..." rows="3" maxrows="3" floating-label></mdl-textfield>
See the e2e test app @ http://mseemann.io/angular2-mdl for more implementation.
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.