View unanswered posts | View active topics It is currently 2019-12-10 4:34



Reply to topic  [ 1 post ] 
 如何设置自定义图片显示文本超过长度后以省略号显示? 
Author Message
新手上路

Joined: 2017-11-27 9:04
Posts: 1
Post 如何设置自定义图片显示文本超过长度后以省略号显示?
twaver.Util.registerImage('component', {
w: 180,
h: 32,
v: [{
shape: 'rect',
r: 6,
line: {
width: 2
color: '#0089C1'
}
},
{
shape:'text',
text:'<%=getClient('text')%>'
font:'12px "Microsoft Yahei"' ,
translater:{x:80,y:16} }
]
});



var node=new Twaver.Node("bbbbb")
node.setImage('component')
node.setClient('text','ssssssssssssssssssssssssss') :cry:


2019-08-26 18:03
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 3 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: