[pmwiki-users] jquery mobile and skins
vkrishn4 at gmail.com
Tue Sep 18 05:34:21 CDT 2012
On Tuesday, September 18, 2012 06:06:06 AM Petko Yotov wrote:
> Carlos AB writes:
> > I'm trying to figure it out, if it is possible to use wiki styles to put
> > jquery mobile related attributes inside some tags.
> > I'll understand if it is not possible, I'm
> > almost sure it is not completly possible.
> I am almost sure nothing is completely impossible. :-)
> > SDVA($WikiStyleAttr,array(
> > 'data-corners' => 'tag1,tag2',
> > 'data-icon' => 'tag1,tag2,tag3',
> > ));
> Use something like this:
> $WikiStyleAttr['data-corners'] = 'span|a|ul|ol';
> $WikiStyleAttr['data-icon'] = 'li|div|p';
How do we add block inside 'a' ?
> Then, this in a wiki page works:
> * test %list data-corners=false%
> * testtest %item data-icon=home%
> * test %data-corners=true% [[Cookbook/]] %%
> go home!
> This will work for WikiStyles, that is anything applied with %wikistyle%
> or >>divwikistyle<< but not with simple or advanced tables, or (:div2:)
> blocks where you apply attributes directly and not via WikiStyles, and
> until version 2.2.42, dashes are not allowed in direct attributes. We may
> change this.
> Also try to understand how wikistyles are applied, why we have
> %list stuff% in the first item, applied to the whole list <ul> or <ol>
> %item stuff% applied to a list line (item) <li>
> %p stuff% applied to a paragraph <p>
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
More information about the pmwiki-users