Mar 16, 2020
TP-Link USB Printer Controller Utility for Windows 7 & 8 users. Go to Support -> Download Center, find your device model, and choose the file for your OS version .
Jun 27, 2019
TP-Link USB Printer Controller Utility for Windows 10 users. Go to Support -> Download Center, find your device model, and choose the file for your OS version .
Sep 13, 2020
Download the setup software TP-Link USB Printer Controller utility from our website: www.tp-link.com. Go to Support ->Download Center, find your .
Sep 13, 2020
Installation - For Windows Vista, XP, 7, 8, 8.1 &10 (For Mac OS). Step 1. Download the setup software TP-Link USB Printer Controller utility .
Category:TP-LinkQ:
[ExtJS]Ext.form.field.Number - dynamic field width
I have number type field. Is there any possibility to set width of a number field dynamically?
I have numberfield on my form and want to change width to 100, when I click on my button. I need to do this, because I have field that shows whole number. I want to show only a part of it in this field.
How can I do it?
A:
I would suggest wrapping your numberfield into an html5-element and change the style for that element. You could for example do this by adding a custom class to your numberfield:
myForm.add({
xtype: 'numberfield',
fieldLabel: '',
fieldStyle: 'width:100px'
});
and then apply it to your field:
var field = Ext.ComponentQuery.query('numberfield[xtype=number]')[0];
field.setStyle('width', '100px');
The idea here is that you add a custom class to your element in the form. This custom class could be a CSS class, or a class which is added automatically by ExtJS. The idea is that ExtJS takes this class, so it can apply the style.
There are various ways to do this, including by ExtJS or just through javascript (maybe add another class to your numberfield in the first place).
A:
You can use the measureText function. be359ba680
Related links:
Comments