javascript - material design table component does not make dynamic row selectable -


i'm having problems material design lite's table component. defined class mdl-data-table--selectable should make rows selectable. if statically defined in html, when create nodes dynamically , add table, not become selectable.

please see this fiddle

i did add componenthandler.upgradeelement(tr); not solve problem , throwed exception went on without that.

hi, since can't find answer this, i'm open new suggestions on how can refresh table. currently, removing contents , generating table again requires adding of elements dynamically. suggestions welcome.

from project site:

material design lite automatically register , render elements marked mdl classes upon page load. in case creating dom elements dynamically need register new elements using upgradeelement function.

http://www.getmdl.io/started/index.html#dynamic


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

Maven Javadoc 'Cannot find default setter' and fails -