开发者

Custom YUI Carousel

I want to create custom carousel from YUI 2.9

http://developer.yahoo.com/yui/examples/carousel/csl_selection_clean.html

In this I want to hide yui carousel开发者_如何学C nav items , not next and previous buttons.

I can achieve this using CSS, But is there any property available in YUI 2.9?

hideNavigation or somehting


The validation code for Carosel.js appears to require that numVisible > 0 The numVisible parameter is used throughout the code, so it seems like your best bet is to go ahead with the CSS plan and hide the nav items.

_validateNumVisible: function (val) {
    var rv = false;

    if (JS.isNumber(val)) {
        rv = val > 0 && val <= this.get("numItems");
    } else if (JS.isArray(val)) {
        if (JS.isNumber(val[0]) && JS.isNumber(val[1])) {
            rv = val[0] * val[1] > 0 && val.length == 2;
        }
    }

    return rv;
},
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜