3
是否有可能有一個設置爲data-mode =「reflow」和data-mode =「columntoggle」的表?jQuery Mobile Table Reflow&Column Toggle
或者我猜是否有可能在一個對象上有兩種不同的數據模式?
是否有可能有一個設置爲data-mode =「reflow」和data-mode =「columntoggle」的表?jQuery Mobile Table Reflow&Column Toggle
或者我猜是否有可能在一個對象上有兩種不同的數據模式?
迴流表不需要數據模式屬性,因爲在使用data-role =「table」屬性時它是默認的小部件。
檢查http://api.jquerymobile.com/table-reflow/在部分應用迴流模式,以表
如果指定數據模式=「迴流」,它將具有相同的效果不是書面方式吧。該框架將檢查與reflow或columntoggle匹配的單詞,因此編寫「reflow columntoggle」將不會產生預期的效果。
我認爲問題是迴流和columntoggle是一起使用*還是隻能彼此獨立使用? – nachtigall
@nachtigall JQuery mobile使用嚴格比較'!=='測試widget的模式,這就是爲什麼寫「reflow columntoggle」不起作用。除此之外,「reflow」和「columntoggle」都被定義爲從「mobile.table」小部件繼承的獨立小部件。它們都從父類擴展相同的方法,如'_create'和'_rebuild',所以我不認爲它們的功能組合是可能的。 – devconcept