linb / crossui Goto Github PK
View Code? Open in Web Editor NEWCrossUI is a free Cross-Browser Javascript framework with cutting-edge functionality for rich web application
Home Page: https://crossui.com
License: MIT License
CrossUI is a free Cross-Browser Javascript framework with cutting-edge functionality for rich web application
Home Page: https://crossui.com
License: MIT License
method setClock() on Label Component always result "02" at minute part
CrossUI 2.4 75.1MB Windows10 open API Document Error!!!
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) {
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?
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
CrossUI v-2.40:
xui.UI.Gallery with image items, if xui.UI.Gallery hidden with component.hide() command, image items still appear.
How to do is css important ???
fill dateEditorTpl in the treeGrid header date type, if run will display the template format instead of cell value
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});
}
}
add multiple???
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.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图片地址,刷新浏览器显示不出来(貌似是第一次加载图片不显示),看资源文件,图片是加载成功的。
xui.request can add headers ?
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.
xui.UI.TreeGrid
.setSelMode("multi")
点击选中后,再次点击不能取消
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!
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
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)
OrdManagement sample downloaded from the website crossui.com
What kind of environment configuration and other suggestions should I use?
Thank you for your attention
Tom. Huang
CrossUI v.2.40
.setType("file")
.setFileMultiple(true)
+
xui.request
Multi file upload, will the dome appear?
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
}
});
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!
APICaller version 3.0
however, on the server side, the accepted parameter is:
abc = "[object Object]"
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:{
}
*/
}
});`
当_.unserialize时,如果有children,而且children设置了events, 其events是无效的.原因是执行回调时是在host中找函数.
建议_.unserialize时对所有子对象统一设置host
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:{
}
*/
}
});`
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);
},
When I installed the demo for development, I found that it would call request.php to generate.html when it was published
excuse me
xui.UI.Widget a source document be out github.com?
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?
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?
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 spans the load module, okay?Xui.showmodule('www.abc.com/j.js')
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.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);
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.
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);
});
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+b.js+c.js=d.min.js
如何通过xui.newModule(cls........)加载这3个class ????????????????
In 3.0, this command triggers an error "Maximum call stack size exceeded"
xui.unserialize('new xui.UI.Button()')
xui.include() can not include target class with header request and async:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.