Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Collapsible: refresh method missing #3771
jQM Docs say I should be able to update the layout on a collapsible
Trying to update the theme and collapsed data attributes and refreshing/updating the collapsible is not working
First, thanks for the fiddle. It's rare and always appreciated.
In general we support this type of activity through refresh methods triggered through the plugin system:
$( "foo" ).collapsible( "refresh" );
The update layout is meant, I think, mostly for you to bind to to know when you should update custom widgets or components in the page. Not as a mechanism for telling our components to update. Though I can sympathize with the confusion.
To support this we'd have to add a refresh or collapse method to the widget and that's not likely to happen before 1.1 final.
Feel free to weigh in here.
@johnbender Thanks for the update but to my knowledge there is no refresh method on collapsible:
And as for the update layout event I thought this was to tell other elements to adjust there size
Since I wanted to dynamically update the collapsible (collapsible state) and theme (Which the code updates just not the layout)
Trigger "create" works on the container, but not on the element itself.
Changing the title of this ticket (original: Can't set 'data-collapsed' and 'data-theme' dynamically).
referenced this issue
May 10, 2013
@cujomalainey check this fix - theme only - but it doesn't replace methods like refresh and create. http://stackoverflow.com/questions/17174675/how-to-change-the-theme-of-collapsible-set-collapsed-object-in-jquerymobile/17175939#17175939
Mine isn't the theme, its that actual content, I erase and reload my