projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
major doc changes
[roojs1]
/
Roo
/
bootstrap
/
nav
/
ProgressBar.js
diff --git
a/Roo/bootstrap/NavProgressBar.js
b/Roo/bootstrap/nav/ProgressBar.js
similarity index 83%
rename from
Roo/bootstrap/NavProgressBar.js
rename to
Roo/bootstrap/nav/ProgressBar.js
index
7afa07c
..
b5da843
100644
(file)
--- a/
Roo/bootstrap/NavProgressBar.js
+++ b/
Roo/bootstrap/nav/ProgressBar.js
@@
-6,42
+6,46
@@
*/
/**
*/
/**
- * @class Roo.bootstrap.
Nav
ProgressBar
+ * @class Roo.bootstrap.
nav.
ProgressBar
* @extends Roo.bootstrap.Component
* @extends Roo.bootstrap.Component
+ * @children Roo.bootstrap.nav.ProgressBarItem
* Bootstrap NavProgressBar class
*
* @constructor
* Bootstrap NavProgressBar class
*
* @constructor
- * Create a new nav progress bar
+ * Create a new nav progress bar
- a bar indicating step along a process
* @param {Object} config The config object
*/
* @param {Object} config The config object
*/
-Roo.bootstrap.
Nav
ProgressBar = function(config){
- Roo.bootstrap.
Nav
ProgressBar.superclass.constructor.call(this, config);
+Roo.bootstrap.
nav.
ProgressBar = function(config){
+ Roo.bootstrap.
nav.
ProgressBar.superclass.constructor.call(this, config);
this.bullets = this.bullets || [];
this.bullets = this.bullets || [];
-// Roo.bootstrap.
Nav
ProgressBar.register(this);
+// Roo.bootstrap.
nav.
ProgressBar.register(this);
this.addEvents({
/**
* @event changed
* Fires when the active item changes
this.addEvents({
/**
* @event changed
* Fires when the active item changes
- * @param {Roo.bootstrap.
Nav
ProgressBar} this
- * @param {Roo.bootstrap.
Nav
ProgressItem} selected The item selected
- * @param {Roo.bootstrap.
Nav
ProgressItem} prev The previously selected item
+ * @param {Roo.bootstrap.
nav.
ProgressBar} this
+ * @param {Roo.bootstrap.
nav.
ProgressItem} selected The item selected
+ * @param {Roo.bootstrap.
nav.
ProgressItem} prev The previously selected item
*/
'changed': true
});
};
*/
'changed': true
});
};
-Roo.extend(Roo.bootstrap.NavProgressBar, Roo.bootstrap.Component, {
-
+Roo.extend(Roo.bootstrap.nav.ProgressBar, Roo.bootstrap.Component, {
+ /**
+ * @cfg {Roo.bootstrap.nav.ProgressItem} NavProgressBar:bullets[]
+ * Bullets for the Nav Progress bar for the toolbar
+ */
bullets : [],
barItems : [],
getAutoCreate : function()
{
bullets : [],
barItems : [],
getAutoCreate : function()
{
- var cfg = Roo.apply({}, Roo.bootstrap.
Nav
ProgressBar.superclass.getAutoCreate.call(this));
+ var cfg = Roo.apply({}, Roo.bootstrap.
nav.
ProgressBar.superclass.getAutoCreate.call(this));
cfg = {
tag : 'div',
cfg = {
tag : 'div',
@@
-81,7
+85,7
@@
Roo.extend(Roo.bootstrap.NavProgressBar, Roo.bootstrap.Component, {
onRender : function(ct, position)
{
onRender : function(ct, position)
{
- Roo.bootstrap.
Nav
ProgressBar.superclass.onRender.call(this, ct, position);
+ Roo.bootstrap.
nav.
ProgressBar.superclass.onRender.call(this, ct, position);
if(this.bullets.length){
Roo.each(this.bullets, function(b){
if(this.bullets.length){
Roo.each(this.bullets, function(b){
@@
-95,7
+99,7
@@
Roo.extend(Roo.bootstrap.NavProgressBar, Roo.bootstrap.Component, {
addItem : function(cfg)
{
addItem : function(cfg)
{
- var item = new Roo.bootstrap.
Nav
ProgressItem(cfg);
+ var item = new Roo.bootstrap.
nav.
ProgressItem(cfg);
item.parentId = this.id;
item.render(this.el.select('.roo-navigation-bar', true).first(), null);
item.parentId = this.id;
item.render(this.el.select('.roo-navigation-bar', true).first(), null);