开发者

FullCalendar and qTip. Help with description as array

I have problem with load description. I'm getting answer via ajax this is JSON part information:

{"id":"","start":1282561200,"end":1282564800,"title":"admin admin","description":[["Alcatel-6850, ","Alcatel-6400, "]]}

This is code to rendering event:

eventRender: function(event, element) {
        element.qtip({
            content : event.description,
            position: {
                corner: {
                    tooltip: 'bottomLeft',
                    target: 'topRight'
                }
            },
            style   : {
                width: 200,
                padding: 5,
                //background: '#A2D959',
                color: 'black',
                textAlign: 'center',
                border: {
                    width: 2,
                    radius: 5,
                    color: '#A2D959'
                },
                tip: 'bottomLeft',
                name: 'blue'
            }
        });

How to l开发者_如何学JAVAoad this description array to tooltip.


Here is answer:

content: (event.description.join(", ")),
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜