How to use the xui.UI.Input function in xui

To help you get started, we’ve selected a few xui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github linb / CrossUI / xui2.0 / xui / js / UI / FormLayout.js View on Github external
}
                    }

                    if(!inputPrf._attached2cell){
                        //console.log('afterappend',subId);
                        inputPrf._attached2cell = 1;
                        // for form field only
                        // prop and autoexpand
                        if(isFormField){
                            if(show){
                                inputPrf.locked = 1;
                                inputPrf.boxing().setDisplay('');
                                if(target.setLabelPos)  target.setLabelPos('none').setLabelCaption('').setLabelSize('0');
                                if(target.setVAlign)  target.setVAlign('middle');

                                if(target['xui.UI.Input'] 
                                    && target.getMultiLines && target.getMultiLines()
                                    && target.setAutoexpand
                                ){
                                    // use the hidden one: _autoexpand
                                    // once: set minH from subId
                                    if(!parseFloat(inputPrf._autoexpand)){
                                        // need set autoexpand in afterRowResize too
                                        inputPrf._autoexpand = (cell.offsetHeight()-1)+"px";
                                        inputPrf.getSubNode("INPUT").addClass("autoexpand");
                                        inputPrf.$beforeAutoexpand=function(p,h){
                                            h=target.getAutoexpandHeight();
                                            item._child_autoexpandH = h;
                                            if(prf.boxing()._isDesignMode()){
                                                // ensure to trigger table render once
                                                xui.resetRun(prf.getUid("autoex"), function(){
                                                    if(prf.$htable)prf.$htable.render();
github linb / CrossUI / xui2.0 / xui / js / UI / FormLayout.js View on Github external
afterRowResize:function(row, size, dblclick){
                        onLayoutChanged(prf);
                        var cells = this.getCellMetaAtRow(row);
                        for(var i=0, l=cells.length;i