EasyUI Forum
April 28, 2024, 07:37:25 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for Vue / Re: expandAll and collapseAll in Vue EasyUI on: February 03, 2020, 04:49:26 AM
Thank you, Jarry!

In my case
Code:
this.data.forEach(...

BR
2  General Category / EasyUI for Vue / expandAll and collapseAll in Vue EasyUI on: January 31, 2020, 05:20:54 AM
Hi!

Is it possible to make expandAll and collapseAll in EasyUI for Vue tree component?

Or more general question how to call components methods that vue component wrapper doesn't have?

BR
Billy
3  General Category / EasyUI for jQuery / Requirejs vs data-options, on-click etc. on: September 04, 2015, 04:06:07 AM
When I use in Requirejs module productType.js something like

Code:
$("#spa-cntr").panel({
href : '/xxx/forms/productType.html',
onLoad : function() {}
});

I can't write in productType.html nothing like
Code:
<div data-options="iconCls:'icon-add'" onclick="productType.newNode()">New
Node</div>
Error in Chrome looks like
Quote
Uncaught ReferenceError: productType is not defined
I think because parser doesn't put execution of js code there in scope of module.

Everything works fine with
Code:
 $('#btn').bind('click', newNode());

or putting module itself in global context
Code:
window.productType = this;
but is there another way to work with isolated in module functions in html?
4  General Category / EasyUI for jQuery / Re: easyui forms and ajax beforeSend on: August 17, 2015, 05:20:21 AM
Is there any change in this situation last year? I can't find good place to put something like

Code:
xhr.setRequestHeader('X-AUTH-TOKEN', token);

into form definition, only skip all library form component functionality.

Pls help - it is very important for us now!

BR
5  General Category / EasyUI for jQuery / How to use easyui form with servers that return X-Frame-options set to DENY on: July 23, 2015, 06:36:39 AM
Is there any way to use form with DENY if X-Form-options set to DENY in server answer?
I have this message in browser debugger and there is no answer data in parameter of success(data) {}

Quote
Refused to display 'http://localhost:8080/protofront/service/contracts/' in a frame because it set 'X-Frame-Options' to 'DENY'

Everything Ok in case of SAMEORIGIN in X-Form-options
6  General Category / EasyUI for jQuery / Re: How can I set the Accept attribute for FORM submit (problem with IE remote data) on: July 21, 2015, 01:39:53 AM
Stephan, may I ask you

I have same set - Spring controller with EasyUI on client.

Rest controller
Code:
	
@RequestMapping(value = "/", method = RequestMethod.POST, produces = MediaType.TEXT_PLAIN_VALUE )
public @ResponseBody ContractDTO submit(ContractDTO contractDTO) {
Contract contract = mapper.map(contractDTO, Contract.class);
contract = contractService.save(contract);
mapper.map(contract, contractDTO);
return contractDTO;
}

and JS part
Code:
$("#cf").form('submit', {
    success:function(data){
       $("#cf").form('load', JSON.parse(data));
    } // Success
});

Request works fine from Advanced rest client query
But from EasyUI it successfully post a record but data is empty and in Chrom debugger I can see message
Quote
Refused to display 'http://localhost:8080/protofront/service/contracts/' in a frame because it set 'X-Frame-Options' to 'DENY'

Annotated Spring web config looks like
Code:
    @Bean
    public MappingJackson2HttpMessageConverter jackson2Converter() {
        MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter();
        MediaType[] arr = new  MediaType[] { MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN, MediaType.TEXT_HTML };
        converter.setSupportedMediaTypes(Arrays.asList(arr));
        converter.setObjectMapper(objectMapper());
        return converter;
    }


Any help?
BR
7  General Category / EasyUI for jQuery / Re: How to manage datebox with Date as long integer? on: May 08, 2015, 05:47:12 AM
One step more...

How to use datebox2 with input field in form?
I need to extend another editor?

BR
BB
8  General Category / EasyUI for jQuery / Re: How to manage datebox with Date as long integer? on: April 07, 2015, 06:02:55 AM
It works!

Really flexible thing.

formatter/parser was isolated to JS module - my sintax from there

Tnx, indeed!
9  General Category / EasyUI for jQuery / How to manage datebox with Date as long integer? on: April 06, 2015, 07:00:32 AM
Hi, again.
Help me pls Smiley
Server sends me a Date value as long integer. I can format it to show with formatter like
Code:
        
dateFormatter : function(value) {
        var d = new Date(value);
        return d.toLocaleDateString();
}
and edit it with datebox with same formatter and parser like
Code:
dateParser : function(s){
    console.log(s);
        if (!isNaN(s))
  return new Date(s);
        if (!s) return new Date();
        var ss = (s.split('.'));
        var d = parseInt(ss[0],10);
        var m = parseInt(ss[1],10);
        var y = parseInt(ss[2],10);
        if (!isNaN(y) && !isNaN(m) && !isNaN(d)){
                return new Date(y,m-1,d);
        } else {
                return new Date();
        }
},

but since this moment field value is Date (or String) and I can't find how to put it in edited row as Long again before sending it back to server.
What is rigth way to write formatter and parser? Or what is a right strategy at all?

Thanks for any help
10  General Category / EasyUI for jQuery / Re: Any way to use edatagrid with non-POST services (DELETE, PUT etc.? on: April 06, 2015, 05:08:35 AM
Ok, tnx, it works fine with

Code:
		
onDestroy : function(index,row){
$.ajax({
url : "/protofront/service/requests/"+row.orderId,
method : "DELETE"
});
}
11  General Category / EasyUI for jQuery / Any way to use edatagrid with non-POST services (DELETE, PUT etc.? on: April 06, 2015, 12:42:58 AM
Hi!

I have a delete service with request method DELETE. May I tune edatagrid use destroyURL with method="DELETE" or I need define onDestroy with ajax call?

Tnx in advance
bbones
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!