Suggestion: Page transitions / add 'data-transition' to jqmTag/Button

107 views
Skip to first unread message

Anthony

unread,
Apr 28, 2011, 7:32:59 AM4/28/11
to jqmPhp
Hi Bruno

I noticed jqmTag class does not yet support customization of
transitions on buttons / links.

I experimented with adding 'private $transition;' to the jqmTag.php
variables.
In 'function __construct()' I duplicated the code for 'data-theme' and
renamed to 'data-transition'.

The same duplication, I created the get/set 'function transition()' in
the class file, same as theme().
finally in class jqmButton.php in the '__construct()' function
paremeters, added in ' $transition='' '.

Now when calling method 'addButton()' the final parameter can be set
as 'pop','slideup','slidedown',etc to pass as transition attribute
when generating the code.

http://jquerymobile.com/demos/1.0a4.1/#docs/pages/docs-transitions.html

Regards
Anthony
Reply all
Reply to author
Forward
0 new messages