简体   繁体   中英

How to use Dojo Dijit select without tables?

I'm working on some project that uses Dojo dijit.form.Select , that produce some really strange HTML. It's replace standard browser select with table , tr , td and other crap that made it slow (a lot of unnecessary elements), inaccessible (select by letter doesn't work) and very hard to style.

Is there any why to tell Dojo to switch into standards mode?

You probably want to override the template (you can check in dijit/form/template/select.html) You'll need to override it, but keep the attachpoint and vars I guess. I'd recommend checking that and if the original Select.js writes hard coded html which would mean you would also have to override these functions.

In any case, this does not seem like a simple switch off property. In the end you might want to simply call a normal select and handle it with a custom made controller widget...

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