Search in sources :

Example 6 with WXEditText

use of com.taobao.weex.ui.view.WXEditText in project weex-example by KalicyZhou.

the class Textarea method setRows.

@WXComponentProp(name = Constants.Name.ROWS)
public void setRows(int rows) {
    WXEditText text = getHostView();
    if (text == null || rows <= 0) {
        return;
    }
    text.setLines(rows);
}
Also used : WXEditText(com.taobao.weex.ui.view.WXEditText)

Aggregations

WXEditText (com.taobao.weex.ui.view.WXEditText)6 JSMethod (com.taobao.weex.annotation.JSMethod)2 WXSDKInstanceTest (com.taobao.weex.WXSDKInstanceTest)1 Test (org.junit.Test)1 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)1