55143681 Posted January 21, 2021 Share Posted January 21, 2021 Dear: I am from china, I Use unigui1542 cbuilder, There are some little bugs for UnimSelect,UnimDatePicker,UnimTimePicker, I wish your update version ,Please. Link to comment Share on other sites More sharing options...
55143681 Posted January 21, 2021 Author Share Posted January 21, 2021 1 hour ago, 55143681 said: Dear: I am from china, I Use unigui1542 cbuilder, There are some little bugs for UnimSelect,UnimDatePicker,UnimTimePicker, I wish your update version ,Please. And As you know,add painted code to UnimDatePicker1'sClientEvents->ExtEvents can make the text align center as follow: function painted(sender, eOpts) { var me=sender, picker=me.getPicker(); if (picker) { picker.on('show', function() { picker.element.select('.x-dataview-item').setStyle('text-align', 'center'); }) } } But UnimTimePicker does not have the function, How to make the text align center? Link to comment Share on other sites More sharing options...
Sherzod Posted January 21, 2021 Share Posted January 21, 2021 2 hours ago, 55143681 said: Hello, Can you try this approach? Link to comment Share on other sites More sharing options...
55143681 Posted January 22, 2021 Author Share Posted January 22, 2021 16 hours ago, Sherzod said: Hello, Can you try this approach? I know how to translate "done" to "完成",but I do not know how to make the timetext align center. because UnimTimePicker does not have "painted " function . And As you know,add painted code to UnimDatePicker1'sClientEvents->ExtEvents can make the text align center as follow: function painted(sender, eOpts) { var me=sender, picker=me.getPicker(); if (picker) { picker.on('show', function() { picker.element.select('.x-dataview-item').setStyle('text-align', 'center'); }) } } But UnimTimePicker does not have the function, How to make the text align center? Link to comment Share on other sites More sharing options...
Sherzod Posted January 22, 2021 Share Posted January 22, 2021 3 hours ago, 55143681 said: How to make the text align center? Which text? Link to comment Share on other sites More sharing options...
55143681 Posted February 6, 2021 Author Share Posted February 6, 2021 On 1/22/2021 at 1:41 PM, Sherzod said: Which text? The YYYY MM DD Link to comment Share on other sites More sharing options...
Sherzod Posted February 6, 2021 Share Posted February 6, 2021 7 hours ago, 55143681 said: The YYYY MM DD Hello, Maybe you wanted like this? CustomCSS: .x-picker-item { text-align: center; } Link to comment Share on other sites More sharing options...
55143681 Posted February 7, 2021 Author Share Posted February 7, 2021 10 hours ago, Sherzod said: Hello, Maybe you wanted like this? CustomCSS: .x-picker-item { text-align: center; } Great,thanks. Link to comment Share on other sites More sharing options...
55143681 Posted February 7, 2021 Author Share Posted February 7, 2021 what about UnimSelect? Link to comment Share on other sites More sharing options...
Sherzod Posted February 7, 2021 Share Posted February 7, 2021 23 minutes ago, 55143681 said: what about UnimSelect? Try... .x-picker-item, .x-dataview-item { text-align: center; } Link to comment Share on other sites More sharing options...
55143681 Posted February 7, 2021 Author Share Posted February 7, 2021 2 hours ago, Sherzod said: Try... .x-picker-item, .x-dataview-item { text-align: center; } good.works well,another way: 将UnimSelect的ClientEvents->ExtEvents属性的painted函数增加代码: function painted(sender, eOpts) { var me=sender, picker=me.getPicker(); if (picker) { picker.on('show', function() { picker.element.select('.x-dataview-item').setStyle('text-align', 'center'); }) } } Link to comment Share on other sites More sharing options...
Recommended Posts