Thank you @evant! Exactly what I was looking for.
Type: Posts; User: silveralecs
Thank you @evant! Exactly what I was looking for.
I'm trying to read and write data to my server using JSON.
Here's how my model looks like:
Ext.define('App.model.report.Report', {
extend: 'Ext.data.Model',
fields: [
{
@scott: Thank you very much for your in-depth explanation. From what you say is that they exclude each other.
Could you please also explain question 1?
1. Why does viewModel.linkTo('theUser',...
So, you have another issue related to this?
1. Is there a workaround for this bug?
2. Why using an already existing record from the store, makes another read from backend when using...
I have tried to use the Fiddle but it seems a little bit complicated to simulate backend requests.
Instead, I've attached all the necessary files which drives this behaviour.
Summary: The...
Calling method "onCreate"(defined in my ViewController) two times will result in field "name" not having a default value.
And I am guessing that the following happens:
1. The first time onCreate...
@Gary you know how long is going to take until my extenstion is approved in Sencha Market?Thanks
Hi guys,
I'm having a little bit of trouble how the new MVVM pattern works for forms.
Back in the days, I used to do:
var record = grid.getSelectionModel().getSelection()[0]; // get...
This sounds like a bad practice.
Instead, you should use Observer pattern (firing and listening for events).
Check out Listeners and Event Domains. To fire events from your controller use...
Thank you so much. It's perfect
@tosc and @yorl1n: Thank you very much for your help. It would be nice to have a bindable property.
@evant Thanks for your help. From my point of view seems a little misleading having an idProperty for the model and an idParam for the proxy.
ViewModel's linkTo method doesn't take in consideration the idProperty of the model.
Here's my model definition:
Ext.define('App.model.location.Location', {
/**
anyone?
@mitchellsimoens Is there a way to change the parent of the window to be the Viewport? Currently If i declare the xtype of a window, inside a container, the window will be centered inside that...
Is there a way to bind a button from outside the form panel to it's valid state?
I would like to have it disabled when the form is invalid.
I was thinking that I could use something like
{...
I ended up declaring the window with autoShow: false in the view.
From there I can easely use lookupReference() from the controller and the window will be instantiated only once.
Don't forget to...
Thank you very much evant
I have a grid and a button in it's toolbar. I would like to have it enabled when items are checked in the grid.
I've tried using:
{
xtype : 'button',
...
I'm asking this because in the past you could use the `autoCreate` config from `refs`, of the Ext.app.Controller (http://docs.sencha.com/extjs/6.0/6.0.0-classic/#!/api/Ext.app.Controller-cfg-refs).
...
How do you normally initialize windows using the ExtJS's MVVM pattern?
Thanks
Hi guys,
I've worked on a Socket.io provider for ExtJS's Ext.Direct.
It's very simple and extends the current Remoting Provider.
You can find it here:...
I ended up using rsync which works great.
https://docs.vagrantup.com/v2/synced-folders/rsync.html
Awesome! Thank you very much Joel.
Just out of curiosity, where can I find sass files for all the other components?
So you would use something like this?
Ext.define('App.Controller_2', {
extend : 'Ext.app.ViewController',
alias: 'controller.controller2'
onButtonClick: function(){
//...