Widget-StdMod.js revision f7d92e8be534f4df53336784ce256933d6375ac6
/**
* @module widget-stdmod
*/
var L = Y.Lang,
EMPTY = "",
HD = "hd",
BD = "bd",
FT = "ft",
HEADER = "header",
BODY = "body",
FOOTER = "footer",
FILL_HEIGHT = "fillHeight",
STDMOD = "stdmod",
PX = "px",
NODE_SUFFIX = "Node",
INNER_HTML = "innerHTML",
FIRST_CHILD = "firstChild",
CONTENT_BOX = "contentBox",
BOUNDING_BOX = "boundingBox",
HEIGHT = "height",
OFFSET_HEIGHT = "offsetHeight",
AUTO = "auto",
HeaderChange = "headerChange",
BodyChange = "bodyChange",
FooterChange = "footerChange",
FillHeightChange = "fillHeightChange",
ContentUpdated = "contentUpdated",
STD_TEMPLATE = "<div></div>",
RENDERUI = "renderUI",
BINDUI = "bindUI",
SYNCUI = "syncUI";
/**
* @class WidgetStdMod
*/
}
header: {},
footer: {},
body: {},
fillHeight: {
return this._validateFillHeight(val);
}
}
};
StdMod.HTML_PARSER = {
header: function(contentBox) {
},
body : function(contentBox) {
},
footer : function(contentBox) {
}
};
StdMod._TEMPLATES = {};
tmpl[STD_HEADER] = {
html : STD_TEMPLATE,
};
html : STD_TEMPLATE,
};
tmpl[STD_FOOTER] = {
html : STD_TEMPLATE,
};
_syncUIStdMod : function() {
},
_renderUIStdMod : function() {
},
_bindUIStdMod : function() {
},
_onHeaderChange : function(e) {
}
},
_onBodyChange : function(e) {
}
},
_onFooterChange : function(e) {
}
},
},
_onFillHeightChange: function (e) {
this._uiSetFillHeight(e.newVal);
},
_validateFillHeight : function(val) {
},
_uiSetFillHeight : function(fillSection) {
var currNode = this._currFillNode;
}
if (fillNode) {
this._currFillNode = fillNode;
}
this._fillHeight();
},
_fillHeight : function() {
if (this.get(FILL_HEIGHT)) {
this.fillHeight(this._currFillNode);
}
}
},
} else {
}
this.fire(ContentUpdated);
},
_renderSection : function(section) {
if (!sectionNode) {
}
return this[section + NODE_SUFFIX];
},
} else {
if (section === STD_HEADER) {
} else {
// BODY
if (footer) {
} else {
}
}
}
},
_getStdModTemplate : function(section) {
cfg;
if (!template) {
}
},
_getStdModClassName : function(section) {
},
} else {
}
},
var append = true;
append = false;
}
}
if (append) {
}
},
_getPreciseHeight : function(node) {
if (node.getBoundingClientRect) {
}
return height;
},
_findStdModSection: function(STD_HEADER) {
return null;
} else {
return sectionNode;
}
},
},
},
},
getStdModNode : function(section) {
return this[section + NODE_SUFFIX];
},
fillHeight : function(node) {
if (node) {
total = 0,
filled = 0,
remaining = 0,
validNode = false;
stdModNode = stdModNodes[i];
if (stdModNode) {
if (stdModNode !== node) {
} else {
validNode = true;
}
}
}
if (validNode) {
// Need to set height to 0, to allow height to be reduced
}
if (remaining >= 0) {
}
// Re-adjust height if required, to account for el padding and border
if (offsetHeight != total) {
}
}
}
}
}
};
Y.WidgetStdMod = StdMod;