jquery-archive / jquery-mobile

jQuery Mobile Framework
https://jquerymobile.com
Other
9.68k stars 2.4k forks source link

Listing default properties for jqm widgets in documentation. #8573

Closed ryantheleach closed 7 years ago

ryantheleach commented 7 years ago

https://stackoverflow.com/questions/44298075/how-do-i-find-the-default-properties-to-set-on-jquery-mobile

I'm not sure if this is user error, or if there is an issue with the tool. Any help would be appreciated.

ryantheleach commented 7 years ago

Ok, ended up finding it after some url exploration.

But it didn't help my original question like I thought it was going to.

JQM docs state that defaults should be set using mobileinit event, before jqm is loaded.

$.mobile.page.prototype.options.contentTheme = "z"; for example.

I've been looking for a way to dump all the potential default properties that can be set.

It would be handy, if in the next version there was a page in the documentation detailing all the default properties in one handy location for each of the widgets.

arschmitz commented 7 years ago

http://api.jquerymobile.com/global-config/ has everything already

ryantheleach commented 7 years ago

So I take it that answers like https://stackoverflow.com/questions/4891906/jquery-mobile-default-data-theme are either not intentional, or supposed to be set?

or

$.fn.buttonMarkup.defaults.corners=false;

apsdehal commented 7 years ago

See the link arschmitz mentioned for the options that you can set.