CreativeIT / getmdl-select

Select for material-design-lite
http://creativeit.github.io/getmdl-select/
MIT License
301 stars 87 forks source link

dynamically usage #9

Closed randrianov closed 8 years ago

randrianov commented 8 years ago

8 Provide public object with method init

mdlSelect.init(cssSelector) or try to subscribe on native mdl event http://www.getmdl.io/started/index.html#dynamic

franckevva commented 8 years ago

For dynamically usage, add getmdlSelect.init(cssSelector) in javascript code, (where cssSelector, for example, is ".getmdl-select" or "#mySelect"), after new item is created.

randrianov commented 8 years ago

@franckevva please add new section ('dynamically usage') to common description with code sample, thanks