Exact difference between Ext.panel.Panel and Ext.Panel in ExtJS
Ext.onReady(function () {
var childPanel1 = Ext.create('Ext.Panel', {
html: 'First Panel'
});
var childPanel2 = Ext.create('Ext.Panel', {
html: 'Another Panel'
});
Ext.create('Ext.panel.Panel', {
renderTo: Ext.getBody(),
width: 100,
height : 100,
border : true,
frame : true,
items: [ childPanel1, childPanel2 ]
});
});
I have above code, and I want to know what does the Ext.Panel
and Ext.panel.Panel
do and what are the differences between them if both are not same.
extjs
add a comment |
Ext.onReady(function () {
var childPanel1 = Ext.create('Ext.Panel', {
html: 'First Panel'
});
var childPanel2 = Ext.create('Ext.Panel', {
html: 'Another Panel'
});
Ext.create('Ext.panel.Panel', {
renderTo: Ext.getBody(),
width: 100,
height : 100,
border : true,
frame : true,
items: [ childPanel1, childPanel2 ]
});
});
I have above code, and I want to know what does the Ext.Panel
and Ext.panel.Panel
do and what are the differences between them if both are not same.
extjs
add a comment |
Ext.onReady(function () {
var childPanel1 = Ext.create('Ext.Panel', {
html: 'First Panel'
});
var childPanel2 = Ext.create('Ext.Panel', {
html: 'Another Panel'
});
Ext.create('Ext.panel.Panel', {
renderTo: Ext.getBody(),
width: 100,
height : 100,
border : true,
frame : true,
items: [ childPanel1, childPanel2 ]
});
});
I have above code, and I want to know what does the Ext.Panel
and Ext.panel.Panel
do and what are the differences between them if both are not same.
extjs
Ext.onReady(function () {
var childPanel1 = Ext.create('Ext.Panel', {
html: 'First Panel'
});
var childPanel2 = Ext.create('Ext.Panel', {
html: 'Another Panel'
});
Ext.create('Ext.panel.Panel', {
renderTo: Ext.getBody(),
width: 100,
height : 100,
border : true,
frame : true,
items: [ childPanel1, childPanel2 ]
});
});
I have above code, and I want to know what does the Ext.Panel
and Ext.panel.Panel
do and what are the differences between them if both are not same.
extjs
extjs
asked Nov 18 '18 at 10:25
Akshit AhujaAkshit Ahuja
267213
267213
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Both have same purpose, but Ext.Panel
is modern toolkit class of panel, while Ext.panel.Panel
is classic toolkit class of panel.You can't run modern toolkit class in classic toolkit and vice versa. Only reason you can run your code in both toolkits without errors is that there is a property alternateClassName
in both codes of these classes, which for Ext.Panel
is Ext.panel.Panel
and vice versa. You can check it below:code of Ext.Panel
code of Ext.panel.Panel
And what about real differences, you can check configs
, properties
, methods
, events
, theme variables
and theme mixins
of both classes.
1
This is wrong. Both modern and classic have aliases for panel, so classic has both AND modern has both. The names are just aliases.
– Evan Trimboli
Nov 18 '18 at 11:30
This is right @beso9595 ! One forclassic
and other formodern
toolkit.
– Daniel da Cunha Bueno
Nov 18 '18 at 11:41
1
Its not "only" about aliases.
– beso9595
Nov 18 '18 at 11:58
It is only about aliases, as you noted they usealternateClassName
to define multiple names for the same class. Not sure why this answer got accepted, it's just flat out wrong.
– Evan Trimboli
Nov 19 '18 at 21:39
add a comment |
They are the same. Ext has functionality built in to the class system to have aliases for class names:
console.log(Ext.panel.Panel === Ext.Panel);
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53359854%2fexact-difference-between-ext-panel-panel-and-ext-panel-in-extjs%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Both have same purpose, but Ext.Panel
is modern toolkit class of panel, while Ext.panel.Panel
is classic toolkit class of panel.You can't run modern toolkit class in classic toolkit and vice versa. Only reason you can run your code in both toolkits without errors is that there is a property alternateClassName
in both codes of these classes, which for Ext.Panel
is Ext.panel.Panel
and vice versa. You can check it below:code of Ext.Panel
code of Ext.panel.Panel
And what about real differences, you can check configs
, properties
, methods
, events
, theme variables
and theme mixins
of both classes.
1
This is wrong. Both modern and classic have aliases for panel, so classic has both AND modern has both. The names are just aliases.
– Evan Trimboli
Nov 18 '18 at 11:30
This is right @beso9595 ! One forclassic
and other formodern
toolkit.
– Daniel da Cunha Bueno
Nov 18 '18 at 11:41
1
Its not "only" about aliases.
– beso9595
Nov 18 '18 at 11:58
It is only about aliases, as you noted they usealternateClassName
to define multiple names for the same class. Not sure why this answer got accepted, it's just flat out wrong.
– Evan Trimboli
Nov 19 '18 at 21:39
add a comment |
Both have same purpose, but Ext.Panel
is modern toolkit class of panel, while Ext.panel.Panel
is classic toolkit class of panel.You can't run modern toolkit class in classic toolkit and vice versa. Only reason you can run your code in both toolkits without errors is that there is a property alternateClassName
in both codes of these classes, which for Ext.Panel
is Ext.panel.Panel
and vice versa. You can check it below:code of Ext.Panel
code of Ext.panel.Panel
And what about real differences, you can check configs
, properties
, methods
, events
, theme variables
and theme mixins
of both classes.
1
This is wrong. Both modern and classic have aliases for panel, so classic has both AND modern has both. The names are just aliases.
– Evan Trimboli
Nov 18 '18 at 11:30
This is right @beso9595 ! One forclassic
and other formodern
toolkit.
– Daniel da Cunha Bueno
Nov 18 '18 at 11:41
1
Its not "only" about aliases.
– beso9595
Nov 18 '18 at 11:58
It is only about aliases, as you noted they usealternateClassName
to define multiple names for the same class. Not sure why this answer got accepted, it's just flat out wrong.
– Evan Trimboli
Nov 19 '18 at 21:39
add a comment |
Both have same purpose, but Ext.Panel
is modern toolkit class of panel, while Ext.panel.Panel
is classic toolkit class of panel.You can't run modern toolkit class in classic toolkit and vice versa. Only reason you can run your code in both toolkits without errors is that there is a property alternateClassName
in both codes of these classes, which for Ext.Panel
is Ext.panel.Panel
and vice versa. You can check it below:code of Ext.Panel
code of Ext.panel.Panel
And what about real differences, you can check configs
, properties
, methods
, events
, theme variables
and theme mixins
of both classes.
Both have same purpose, but Ext.Panel
is modern toolkit class of panel, while Ext.panel.Panel
is classic toolkit class of panel.You can't run modern toolkit class in classic toolkit and vice versa. Only reason you can run your code in both toolkits without errors is that there is a property alternateClassName
in both codes of these classes, which for Ext.Panel
is Ext.panel.Panel
and vice versa. You can check it below:code of Ext.Panel
code of Ext.panel.Panel
And what about real differences, you can check configs
, properties
, methods
, events
, theme variables
and theme mixins
of both classes.
answered Nov 18 '18 at 11:15
beso9595beso9595
1,0421813
1,0421813
1
This is wrong. Both modern and classic have aliases for panel, so classic has both AND modern has both. The names are just aliases.
– Evan Trimboli
Nov 18 '18 at 11:30
This is right @beso9595 ! One forclassic
and other formodern
toolkit.
– Daniel da Cunha Bueno
Nov 18 '18 at 11:41
1
Its not "only" about aliases.
– beso9595
Nov 18 '18 at 11:58
It is only about aliases, as you noted they usealternateClassName
to define multiple names for the same class. Not sure why this answer got accepted, it's just flat out wrong.
– Evan Trimboli
Nov 19 '18 at 21:39
add a comment |
1
This is wrong. Both modern and classic have aliases for panel, so classic has both AND modern has both. The names are just aliases.
– Evan Trimboli
Nov 18 '18 at 11:30
This is right @beso9595 ! One forclassic
and other formodern
toolkit.
– Daniel da Cunha Bueno
Nov 18 '18 at 11:41
1
Its not "only" about aliases.
– beso9595
Nov 18 '18 at 11:58
It is only about aliases, as you noted they usealternateClassName
to define multiple names for the same class. Not sure why this answer got accepted, it's just flat out wrong.
– Evan Trimboli
Nov 19 '18 at 21:39
1
1
This is wrong. Both modern and classic have aliases for panel, so classic has both AND modern has both. The names are just aliases.
– Evan Trimboli
Nov 18 '18 at 11:30
This is wrong. Both modern and classic have aliases for panel, so classic has both AND modern has both. The names are just aliases.
– Evan Trimboli
Nov 18 '18 at 11:30
This is right @beso9595 ! One for
classic
and other for modern
toolkit.– Daniel da Cunha Bueno
Nov 18 '18 at 11:41
This is right @beso9595 ! One for
classic
and other for modern
toolkit.– Daniel da Cunha Bueno
Nov 18 '18 at 11:41
1
1
Its not "only" about aliases.
– beso9595
Nov 18 '18 at 11:58
Its not "only" about aliases.
– beso9595
Nov 18 '18 at 11:58
It is only about aliases, as you noted they use
alternateClassName
to define multiple names for the same class. Not sure why this answer got accepted, it's just flat out wrong.– Evan Trimboli
Nov 19 '18 at 21:39
It is only about aliases, as you noted they use
alternateClassName
to define multiple names for the same class. Not sure why this answer got accepted, it's just flat out wrong.– Evan Trimboli
Nov 19 '18 at 21:39
add a comment |
They are the same. Ext has functionality built in to the class system to have aliases for class names:
console.log(Ext.panel.Panel === Ext.Panel);
add a comment |
They are the same. Ext has functionality built in to the class system to have aliases for class names:
console.log(Ext.panel.Panel === Ext.Panel);
add a comment |
They are the same. Ext has functionality built in to the class system to have aliases for class names:
console.log(Ext.panel.Panel === Ext.Panel);
They are the same. Ext has functionality built in to the class system to have aliases for class names:
console.log(Ext.panel.Panel === Ext.Panel);
answered Nov 18 '18 at 11:13
Evan TrimboliEvan Trimboli
26.4k43453
26.4k43453
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53359854%2fexact-difference-between-ext-panel-panel-and-ext-panel-in-extjs%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown