View unanswered posts | View active topics It is currently 2021-04-21 9:22



Reply to topic  [ 1 post ] 
 怎么让label文字竖着排? 
Author Message
TWaver开发组
User avatar

Joined: 2017-02-22 10:01
Posts: 476
Post 怎么让label文字竖着排?
可以重写getLabel方法。
Code:
network.getLabel = function (data) {
    var name = data.getName();
    var result = '';
    for (var i=0; i<name.length; i++) {
        result += name[i];
        if (i !== name.length - 1) {
             result += '\n';
        }
    }
    return result;
};


2017-04-19 15:34
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: