Tully, always more useful if you post a link to an exhibit demonstrating the problem, so others can look at it in practice.
On 10/25/2015 4:20 AM, Tully Hansen wrote: > Forgive again my resurrecting an old post, but it seems the most > relevant (and searchable) place to ask: should the modern (e.g. > Exhibit 3.0) equivalent of this switching case work? I haven't been > able to get it to do so. > > <div data-ex-select=".type"> > <div data-ex-case="bots">the .type = bots case</div> > <div data-ex-case="botally">the .type = botally case</div> > <div data-ex-case="botmedia">the .type = botmedia case</div> > <div data-ex-case="botmaterials">the .type = botmaterials case</div> > <div>the catchall case</div> > </div> > <div data-ex-content=".type"></div> > > As written, this seems to render only the second top-level div, even > for those entries where .type should match a case. > > Oddly, if I change the cases to check against an expression rather > than a value, I get the catchall case rendered along with the second > top-level div: > > <div data-ex-select=".type"> > <div data-ex-case="contains(.type, 'bots')">the .type = bots case</div> > <div data-ex-case="contains(.type, botally')">the .type = botally > case</div> > <div data-ex-case="contains(.type, 'botmedia')">the .type = > botmedia case</div> > <div data-ex-case="contains(.type, 'botmaterials')">the .type = > botmaterials case</div> > <div>the catchall case</div> > </div> > <div data-ex-content=".type"></div> > > I know very little in the way of Javascript, and am not sure if user > error or removed feature. > -- > You received this message because you are subscribed to the Google > Groups "SIMILE Widgets" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at http://groups.google.com/group/simile-widgets. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/simile-widgets. For more options, visit https://groups.google.com/d/optout.
