Giter VIP home page Giter VIP logo

linb / crossui Goto Github PK

View Code? Open in Web Editor NEW
1.8K 43.0 38.0 97.13 MB

CrossUI is a free Cross-Browser Javascript framework with cutting-edge functionality for rich web application

Home Page: https://crossui.com

License: MIT License

JavaScript 92.13% HTML 1.03% PHP 4.80% CSS 1.81% C# 0.05% Java 0.12% Batchfile 0.05% ASP.NET 0.01%
crossui rad builder front-end-builder withtout-codeing app-builder ui-designer ide development-environment frontend

crossui's People

Contributors

gt945 avatar indianajava avatar linb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crossui's Issues

CrossUI 2.4

CrossUI 2.4 75.1MB Windows10 open API Document Error!!!

getDirtied() bug

if (ins.getCaption) {
if (key.indexOf(":") != -1) {
keys = key.split(':');
//下拉框始终为空,需要增加一个判断
//今天更新了最新版本,问题依旧;另外新版本Grid行双击事件也跨了,又回滚老版本了,没有深度测试
}
////////////////////////////////////////////////
if (!xui.isEmpty(keys)) {/////////////////
///////////////////////////////////////////////////
if (keys[0] && keys[1]) {
hash[keys[0]] = uv;
hash[keys[1]] = ins.getCaption();
}
} else if (withCaption) {

?_rnd_=38rx56ax How to cancel

xui.include( 'xui.Thread', '../js/clsname.js', function(){
alert( 'success' );
}});

rul>../js/clsname.js?rnd=38rx56ax
rul>../js/clsname.js (I need) How to do?

How to call pseudo code?

Can I access methods from the module function set in the project externally

Let's say I embed a project in an iframe and then access a module function set method through an external project

xui.UI.Gallery Bug

CrossUI v-2.40:
xui.UI.Gallery with image items, if xui.UI.Gallery hidden with component.hide() command, image items still appear.

important

.setCustomStyle({
"INPUT": {
"important": true, //of no avail
"color": "#FFFFFF"
}
});

.setCustomStyle({
"INPUT": {
"color": "#FFFFFF !important" //of no avail
}
});

How to do is css important ???

dateEditorTpl bug

fill dateEditorTpl in the treeGrid header date type, if run will display the template format instead of cell value

Stacks Component: show close button while hover

Scenario: hover handle bar to show close button, and hide while mouseout
these below code don't work:

    _xui_ui_stacks15_beforehovereffect:function(profile, item, e, src, type){
        var ns = this, uictrl = profile.boxing();
        if (type=="mouseover") {
            uictrl.updateItem(item.id, {closeBtn:true});
        } else {
            uictrl.updateItem(item.id, {closeBtn:false});
        }
    }

Packaging error

PC:Windows10;
out: windows 64;
/.settings Folder name error
CrossUI Front-Ent Builder 2.19 free version
look at the picture
QQ截图20190606172339

add multiple

append(
xui.create("xui.UI.ComboInput")
.setHost(host,"xui_ui_comboinput4")
.setLeft("11.666666666666666em")
.setTop("7.5em")
.setWidth("18em")
.setLabelSize("8em")
.setType("file")
);

add multiple???

About OrderManagement(12/18/21)

The examples in the new version of Desktop2.5 have been improved
There are two minor issues:

  1. [New] a order
    If you do not enter the data, cannot exit the (Confirm) screen.
    image

  2. Switch to the runtime from github, Pagegrid still has no display.
    image

Regards,
Tom Huang

hide a dialog, can't show again

version: 1.3

step to reproduction:
1.create a app via xui.ComFactory.newCom, there is only one dialog in this app
2.hide it by call dialog_name.hide();
3.show it by call dialog_name.show();

result:
the dialog can't show again

debug:
when call show, profile.inShowing is set to 1, the profile.inShowing should be deleted in callback but the callback never be called.
then, call hide and call show again, the profile.inShowing is 1 and the function return immediately

xui.UI.Gallery

xui.create("xui.UI.Gallery")
.setHost(host,"xui_ui_gallery3")
.setItems([
{
"id":"a",
"caption":"item 1",
"image":"{/}img/article.png",
"imageClass":"xui-icon-number1",
"itemWidth":"64",
"itemHeight":"64",
"flagText":"荐"
},

调式了很久,发现一个问题。设置image图片地址,刷新浏览器显示不出来(貌似是第一次加载图片不显示),看资源文件,图片是加载成功的。

CheckboxList

Good morning,

I need your help please about how to implement in a table, a component CheckboxList. The idea is that you can select inside a checkbox that belongs to a table, different items and that are shown in the same table. I can select one or more. In advance thank you very much for the help.

treegrod bug

xui.UI.TreeGrid
.setSelMode("multi")

点击选中后,再次点击不能取消

What is the main difference between xui 1.4 and 2.0?

Hi,,

I would like to know what is the difference between version 1.4 and 2.0? Is it possible to reuse the 1.4 version code for 2.0? Do you want to still maintaining th2 1.4 version? could you suggest to migrate from 1.4 version?

Thank you!

Possibility to turn the xui.confirm to SYNC function

Hi,
there is a nice xui.confirm function:

xui.confirm('title','content content content content content content content content content content content content ',function(){
alert('yes')
},
function(){
alert('no')
})

The problem is that I want to write 10 confirm for my app.

How could I reuse this function to iterate 10 confirmations? I suspect that I need to turn is as sync....

Thank you

What kind of environment configuration

I tested Crossu 2 a few years ago (the environment is apach2.4, php5.6, MySQL5.6 & chrome)

The current environment is apach2.4, php7.4, MySQL5.7 & chrome

Anything related to front-end and back-end data, taken from Database or JSON XML
(Crossui desktop RAD Create New Project example LoadData CRUD OrdManagement)
Regardless of whether it is Crossui 3 or desktop RAD runtime, the operation example is not normal. (Or no data is displayed or an error message appears)
image
image

OrdManagement sample downloaded from the website crossui.com
image
image

What kind of environment configuration and other suggestions should I use?

Thank you for your attention

Tom. Huang

Compressed Code & typo

CrossUI v.2.40

  1. some code in code view, still used compressed code, like _page_onmessage, _page_onglobalmessage, _page_onfragmentchanged, etc
  2. typo in xui_debug.js?: beforeUnitUpdated:function(prfole,unit){} and afterUnitUpdated:function(prfole,unit){} (Combo Input EventHandlers), maybe it should be "profile"

xui.fetchClass

xui.Class('App.desktop.main', 'xui.Module', {
Instance: {
events: {"onRender": "_render"},
iniComponents: function () {
const host = this, children = [], append = function (child) {
children.push(child.get(0));
};
append(
xui.create("xui.UI.Gallery")
.setHost(host, "_gl_main")

.setDock("fill")
.onItemSelected("__gl_main_onitemselected")
.beforeHoverEffect("__gl_main_beforehovereffect")
.beforeClickEffect("__gl_main_beforeclickeffect")
);

        return children;
    },

xui.fetchClass("App.desktop.main", function (url, cls) {
cls = xui.SC('App.desktop.main');
if (cls) {

               //this moment How to get Module is  **_gl_main(xui.UI.Gallery)**
               // cls._gl_main    **is wrong**
              // var a =new cls(); a._gl_main     **is wrong** 

            (new cls).show();   //  is ok
        }
    });

Need to use the EURO format for xui.UI.Input

Hi,
I need to use the EURO format for currency: 12.000,34 €
For example, the user puts the 120000 and this value is formated as 12.000,00 €
Is it possible to do for xui.UI.Input?

Thank you!

TreeGrid.setEditMode('inline')

  1. TreeGrid.setEditable(true).setEditMode('inline') not work
  2. API Documentation, click any row in search result dialog, nothing happen
  3. xui.debug.js line 5574 at class xui.MessageService should be "setRecipientType"

Send data as JSON

APICaller version 3.0

  1. send data to server:
    proxyType: Fetch / Ajax
    queryMethod: POST
    requestType: FORM
    queryData: { abc: {def:123} }

however, on the server side, the accepted parameter is:
abc = "[object Object]"

  1. how to send queryArgs { abc: {def:123} } as JSON with queryMethod GET?

Validate Date as "YYYY-MM-DD" in the xui.UI.ComboInput widget with "date" type

Hi,

when I set the value format to "YYYY-MM-DD" using the xui.UI.ComboInput with the "date" type, this validation is not working.... Can you help me to resolve it?

Thank you!

`// The default code is a module class (inherited from xui.Module)
// Ensure that all the value of "key/value pair" does not refer to external variables
Class('App', 'xui.Module',{
Instance:{
// Dependency classes
Dependencies:[],
// Required modules
Required:[],

    // To initialize properties
    properties : {},

    // To initialize instance(e.g. properties)
    initialize : function(){
    },

    // To initialize internal components (mostly UI controls)
    // *** If you're not a skilled, dont modify this function manually ***
    iniComponents : function(){
        // [[Code created by CrossUI RAD Studio
        var host=this, children=[], append=function(child){children.push(child.get(0));};

        append(
            xui.create("xui.UI.ComboInput")
            .setHost(host,"xui_ui_comboinput2")
            .setLeft(240)
            .setTop(190)
            .setWidth(220)
            .setLabelSize(null)
            .setValueFormat("^([0-9]{4})\\-(([0][0-9])|([1][0-2]))\\-([0-3][0-9])$")
            .setType("date")
        );

        return children;
        // ]]Code created by CrossUI RAD Studio
    },

    // Give a chance to determine which UI controls will be appended to parent container
    customAppend : function(parent, subId, left, top){
        // "return false" will cause all the internal UI controls will be added to the parent panel
        return false;
    }
    /*,
    // To determine how properties affects this module
    propSetAction : function(prop){
    },
    // To set all node's style in this modlue
    customStyle:{}
},
//To customize the default properties and event handlers
Static:{
    $DataModel:{
    },
    $EventHandlers:{
    }
*/
}

});`

Ajax problem

  1. xui.Ajax with options.method = 'POST' always send as GET
  2. xui.request can not upload file, because automatically use xui.Ajax instead of xui.XDMI

_.unserialize时, children的events无效

当_.unserialize时,如果有children,而且children设置了events, 其events是无效的.原因是执行回调时是在host中找函数.
建议_.unserialize时对所有子对象统一设置host

Set the scrollbar at the end of the grid

Hello,

Does the grid have the possibility to set the scrollbar, for example, at the end of the grid? This would be useful.

Thank you!

`// The default code is a module class (inherited from xui.Module)
// Ensure that all the value of "key/value pair" does not refer to external variables
Class('App', 'xui.Module',{
Instance:{
// Dependency classes
Dependencies:[],
// Required modules
Required:[],

    // To initialize properties
    properties : {},

    // To initialize instance(e.g. properties)
    initialize : function(){
    },

    // To initialize internal components (mostly UI controls)
    // *** If you're not a skilled, dont modify this function manually ***
    iniComponents : function(){
        // [[Code created by CrossUI RAD Studio
        var host=this, children=[], append=function(child){children.push(child.get(0));};
        
        append(
            xui.create("xui.UI.Pane")
            .setHost(host,"xui_ui_pane6")
            .setLeft(190)
            .setTop(120)
            .setWidth(370)
            .setHeight(220)
        );
        
        host.xui_ui_pane6.append(
            xui.create("xui.UI.TreeGrid")
            .setHost(host,"xui_ui_treegrid2")
            .setLeft(0)
            .setTop(0)
            .setRowNumbered(true)
            .setHeader([{
                "id" : "col1",
                "width" : 80,
                "type" : "input",
                "caption" : "col1"
            },
            {
                "id" : "col2",
                "width" : 80,
                "type" : "input",
                "caption" : "col2"
            },
            {
                "id" : "col3",
                "width" : 80,
                "type" : "input",
                "caption" : "col3"
            },
            {
                "id" : "col4",
                "width" : 80,
                "type" : "input",
                "caption" : "col4"
            }])
            .setRows([{
                "cells" : [{
                    "value" : "row1 col1"
                },
                {
                    "value" : "row1 col2"
                },
                {
                    "value" : "row1 col3"
                },
                {
                    "value" : "row1 col4"
                }]
            },
            {
                "cells" : [{
                    "value" : "row2 col1"
                },
                {
                    "value" : "row2 col2"
                },
                {
                    "value" : "row2 col3"
                },
                {
                    "value" : "row2 col4"
                }]
            },
            {
                "cells" : [{
                    "value" : "row3 col1"
                },
                {
                    "value" : "row3 col2"
                },
                {
                    "value" : "row3 col3"
                },
                {
                    "value" : "row3 col4"
                }],
                "sub" : [{
                    "cells" : ["sub1","sub2","sub3","sub4"]
                }]
            },                {
                "cells" : [{
                    "value" : "row3 col1"
                },
                {
                    "value" : "row3 col2"
                },
                {
                    "value" : "row3 col3"
                },
                {
                    "value" : "row3 col4"
                }],
                "sub" : [{
                    "cells" : ["sub1","sub2","sub3","sub4"]
                }]
            },                {
                "cells" : [{
                    "value" : "row3 col1"
                },
                {
                    "value" : "row3 col2"
                },
                {
                    "value" : "row3 col3"
                },
                {
                    "value" : "row3 col4"
                }],
                "sub" : [{
                    "cells" : ["sub1","sub2","sub3","sub4"]
                }]
            },                {
                "cells" : [{
                    "value" : "row3 col1"
                },
                {
                    "value" : "row3 col2"
                },
                {
                    "value" : "row3 col3"
                },
                {
                    "value" : "row3 col4"
                }],
                "sub" : [{
                    "cells" : ["sub1","sub2","sub3","sub4"]
                }]
            },                {
                "cells" : [{
                    "value" : "row3 col1"
                },
                {
                    "value" : "row3 col2"
                },
                {
                    "value" : "row3 col3"
                },
                {
                    "value" : "row3 col4"
                }],
                "sub" : [{
                    "cells" : ["sub1","sub2","sub3","sub4"]
                }]
            },                {
                "cells" : [{
                    "value" : "row3 col1"
                },
                {
                    "value" : "row3 col2"
                },
                {
                    "value" : "row3 col3"
                },
                {
                    "value" : "row3 col4"
                }],
                "sub" : [{
                    "cells" : ["sub1","sub2","sub3","sub4"]
                }]
            },                {
                "cells" : [{
                    "value" : "row3 col1"
                },
                {
                    "value" : "row3 col2"
                },
                {
                    "value" : "row3 col3"
                },
                {
                    "value" : "row3 col4"
                }],
                "sub" : [{
                    "cells" : ["sub1","sub2","sub3","sub4"]
                }]
            },                {
                "cells" : [{
                    "value" : "row3 col1"
                },
                {
                    "value" : "row3 col2"
                },
                {
                    "value" : "row3 col3"
                },
                {
                    "value" : "row3 col4"
                }],
                "sub" : [{
                    "cells" : ["sub1","sub2","sub3","sub4"]
                }]
            },                {
                "cells" : [{
                    "value" : "row3 col1"
                },
                {
                    "value" : "row3 col2"
                },
                {
                    "value" : "row3 col3"
                },
                {
                    "value" : "row3 col4"
                }],
                "sub" : [{
                    "cells" : ["sub1","sub2","sub3","sub4"]
                }]
            },                {
                "cells" : [{
                    "value" : "row3 col1"
                },
                {
                    "value" : "row3 col2"
                },
                {
                    "value" : "row3 col3"
                },
                {
                    "value" : "row3 col4"
                }],
                "sub" : [{
                    "cells" : ["sub1","sub2","sub3","sub4"]
                }]
            },                {
                "cells" : [{
                    "value" : "row3 col1"
                },
                {
                    "value" : "row3 col2"
                },
                {
                    "value" : "row3 col3"
                },
                {
                    "value" : "row3 col4"
                }],
                "sub" : [{
                    "cells" : ["sub1","sub2","sub3","sub4"]
                }]
            }])
            );
        
        return children;
        // ]]Code created by CrossUI RAD Studio
    },

    // Give a chance to determine which UI controls will be appended to parent container
    customAppend : function(parent, subId, left, top){
        // "return false" will cause all the internal UI controls will be added to the parent panel
        return false;
    }
    /*,
    // To determine how properties affects this module
    propSetAction : function(prop){
    },
    // To set all node's style in this modlue
    customStyle:{}
},
//To customize the default properties and event handlers
Static:{
    $DataModel:{
    },
    $EventHandlers:{
    }
*/
}

});`

SPINNER component resetValue()

CrossUI 2.5 beta version, Component: Spinner
below code generate error "Cannot read property 'tagName' of undefined", in xui-debug line 34289

_page_onready:function(c,d){
this.SPINNER.resetValue(5);
},

How to generate.html

When I installed the demo for development, I found that it would call request.php to generate.html when it was published

xui.UI.Widget

excuse me
xui.UI.Widget a source document be out github.com?

Editor runs slowly

Use App Builder version 2.5 Beta.
I have about 9000 lines code, in code view, if i edit one row and then move cursor to another row to edit it, the editor become slow response. May be caused by new version of JSHINT?

dialog.beforestatuschanged

there is params oldValue and newValue in beforestatuschanged and afterstatuschanged dialog event,
current status of dialog is "normal", and if i click max button, oldValue contain "max" and newValue is "normal".
whether the two values ​​are exchanged?

TreeGrid() question. Any chance to "freeze" the first 3 columns?

I have a TreeGrid related question. To keep always visible the description (for example) of each row, in excel we have the possibility to freeze the columns. Are the possibilities to implement something similar on XUI? I notice that when the rowHandler and rowNumbered are activated, we have the freeze of the first (rowHandler) column. So maybe is it any chance to freeze another columns?

Thank you

xui.showModule

Xui.showmodule spans the load module, okay?Xui.showmodule('www.abc.com/j.js')

xui.getTheme()

CrossUI version 2.40 on localhost: function xui.getTheme() not return current UI Theme id like version before, but now this function return font family name.

xui.fetchClass feel uncertain !!!!!

xui.Class('App.desktop.main', 'xui.Module', {
Instance: {
events: {"onRender": "render"},
iniComponents: function () {
const host = this, children = [], append = function (child) {
children.push(child.get(0));
};
append(
xui.create("xui.UI.Gallery")
**
.setHost(host, "gl_main")**
.setDock("fill")
.onItemSelected("__gl_main_onitemselected")
.beforeHoverEffect("__gl_main_beforehovereffect")
.beforeClickEffect("__gl_main_beforeclickeffect")
);

        return children;
    },

xui.fetchClass('App.desktop.main', function (cls, url) {
cls = xui.SC.get('App.desktop.main');//类名
if (cls) {
const m = cls;

                console.log(m._gl_main);    **//is undefined  ??????????????**

                m.show(function (module) {
                    console.log(module._gl_main);  **//is  undefined  ?????????????**
                });
            }
        }, null, null, true);

setVisibility Bug

CrossUi v-2.40:
There is xui.UI.Block container contains xui.UI.Button,
if button.setVisibility("visible") and block.hide(), button component still appear.

forgotten parameter

At file xui-debug.js -> xui.Class("xui.UI.TreeGrid") -> Static -> _beforeSerialized,
whether the parameter "h" is forgotten?

op.grpCols = xui.clone(pp.grpCols, function(o,i,d){
if(d===2&&i==='width'&& o && o!='auto'){
h[i] = profile.$forceu(o,unit);
return false;
}else
return o!=undefined
});
op.rows = xui.clone(pp.rows, function(o,i,d){
if(d===2&&i==='height'&& o && o!='auto'){
h[i] = profile.$forceu(o,unit);
return false;
}else
return !map[((d===1?o.id:i)+'').charAt(0)] && o!=undefined && ((i=="id"&&typeof(o)=="string")?o.charAt(0)!="-":true);
});

Best strategy to build a grid with > 500 rows

Hi,
First of all, many thanks for your amazing software ans support!
I would like to know what could be the best manner to put about 500 rows without using the pagination
What I really want is the possibility to not get stuck the grid while the rows are building. I don't think that 500 rows is a big data volume for the modern browsers. Is it possible? I don't want to use the pagination.
I saw that google uses, for example, the scroll bars event, so when you get the final of view, it charges more rows....
Thank you!

求助

a.js= xui.Class('App.hr.info.onlogin___a', 'xui.Module'...........................
b.js= xui.Class('App.hr.info.onlogin___b', 'xui.Module'...........................
c.js= xui.Class('App.hr.info.onlogin___c', 'xui.Module'...........................

a.js+b.js+c.js=d.min.js

如何通过xui.newModule(cls........)加载这3个class ????????????????

Include target class

xui.include() can not include target class with header request and async:

  1. xui.include("Module.Script",url+"Script.js",function(rsp){},onFail,FALSE,{header:{key:value}) => script included, asyn, but header not sent
  2. xui.include("Module.Script",url+"Script.js",function(rsp){},onFail,TRUE,{header:{key:value}) => script included, header sent, but not asyn
  3. onSuccess:function(rsp){ } => how to read script target?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.