Works good :)
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/How-to-use-StyleSheetOptions-with-condition-tp5713879p5713889.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To unsub
To be honest I've never tried it, but it says here it should be okay:
http://en.wikipedia.org/wiki/Conditional_comment
Steve.
On 15 June 2012 00:13, George Christman wrote:
> Thanks Steven, nice to know the condition argument can handle multiple
> conditions.
>
> --
> View this message in con
Thanks Steven, nice to know the condition argument can handle multiple
conditions.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/How-to-use-StyleSheetOptions-with-condition-tp5713879p5713885.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
I was over thinking this, much simpler than I originally thought, Thanks
Taha.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/How-to-use-StyleSheetOptions-with-condition-tp5713879p5713883.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
The clue is in StylesheetLink#add. Try this:
void afterRender() {
js.importStylesheet(new StylesheetLink(ieOnlyStylesheet,
new StylesheetOptions(null).withCondition("(IE 7)|(IE 8)")) );
}
Only the constructor and getter are deprecated.
Steve.
--
Steve Eynon
--
Hi George
@Inject
@Path("ie6.css")
private Asset ie6Stylesheet;
@SetupRender
void addIEScripts()
{
javaScriptSupport.importStylesheet(new StylesheetLink(
ie6Stylesheet,
new StylesheetOptions().withCondition("IE 6")
));
}
regard