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.
Comments
Post a Comment